-
-
Save Rapptz/80df031f435e32df2d4b to your computer and use it in GitHub Desktop.
Sky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Form1.h" | |
#include <Windows.h> | |
#include <Math.h> | |
#include <string> | |
using namespace Sky; | |
using namespace std; | |
using namespace System; | |
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, | |
LPSTR lpCmdLine, int nCmdShow) | |
{ | |
Application::EnableVisualStyles(); | |
Application::SetCompatibleTextRenderingDefault(false); | |
Application::Run(gcnew Form1()); | |
Application::Exit(); | |
} | |
/* | |
Warrior,Mage,Archer,Thief,Pirate | |
Mastery = 15% Ranged, 20% Melee, 25% Magic | |
Corsair's primary/secondary values are switched*/ | |
class Job { | |
public: | |
Job(); | |
string name; //Class name | |
int bPrimary; //base primary | |
int bSecondary; //base secondary | |
int bThird; //base tertiary | |
int tPrimary; // total primary before MW | |
int tSecondary; //total secondary before MW | |
int tThird; //total tertiary before MW | |
double ePrimary() { | |
return ((tPrimary/pPercent) - bPrimary); //equip primary | |
} | |
double eSecondary() { | |
return ((tSecondary/sPercent) - bSecondary); //equip secondary | |
} | |
double eThird() { | |
return ((tThird/tPercent)-bThird); //equip tertiary | |
} | |
double sPercent; // Secondary stat% | |
double pPercent; //Primary stat% | |
double tPercent; //Tertiary stat% | |
int Primary() { | |
return floor(((bPrimary*mapleWarrior)+(ePrimary()+skillPrimary))*pPercent); //Total primary with everything | |
} | |
int Secondary() { | |
return floor(((bSecondary*mapleWarrior)+(eSecondary()+skillSecondary))*sPercent); //total secondary with everything | |
} | |
int Tertiary() { | |
return floor(((bThird*mapleWarrior)+(eThird()+skillThird))*tPercent); //total tertiary with everything | |
} | |
int skillPrimary; //Skills that give primary stat | |
int skillSecondary; //Skills that give secondary stat | |
int skillThird; //Skills that give tertiary stat | |
int skill; // skill damage | |
int padX; //Weapon attack from Mastery or AFA | |
double pAttack; //Attack% from passives/weapon potential. | |
double psAttack; //Attack% from active skills. | |
int wAttack; //Weapon attack from weapon | |
int cAttack; //Weapon attack given from skills before 4th job | |
int sAttack; //Weapon attack given from skills at 4th job | |
int paAttack; //Weapon attack given from AFA. Only used if mastery already used. | |
double attack() { | |
return (padX+wAttack+cAttack+sAttack+paAttack)*(pAttack+psAttack); //total attack | |
} | |
double cleanAttack() { | |
return static_cast<double>(padX+wAttack+paAttack)*pAttack; //clean attack for unbuffed range | |
} | |
double skillPercent() { | |
return static_cast<double>(skill)/100; // Skill converted into % | |
} | |
double cIgnore; //Ignore PDR from skills. | |
double wepIgnore; //Ignore PDR from weapons | |
double ignorepdr() { | |
return cIgnore + wepIgnore; //total ignore PDR | |
} | |
double mastery; //weapon mastery% | |
double criticalRate; | |
double criticalMin; | |
double criticalMinCombo; | |
double criticalMax; | |
double criticalDamage() { | |
return 1 + (criticalRate * (((criticalMin + criticalMax)-2) / 2)); | |
} | |
double multiplier; //Weapon multiplier | |
double mapleWarrior; //Maple warrior constant. | |
double cDmgInc; // total damage% (additive) #1 pre-4th job | |
double cDmgInc2; // total damage% (additive) #2 | |
double cDmgInc3; // total damage% (additive) #3 | |
double skillDmg; // total damage% (multiplicative to range) #1 | |
double skillDmg2; // total damage% (multiplicative to range) #2 | |
double skillDmg3; // total damage% (additive to range) #3 | |
double skillDmg4; // total damage% (additive to range) #4 | |
double bossDamage; // boss damage% | |
double dmgMult; //Total damage% (multiplicative with potential) | |
double dmginc() { | |
return (1.0 + bossDamage + cDmgInc + cDmgInc2 + cDmgInc3)*dmgMult;//damage increases to bosses | |
} | |
void reset(); | |
}; | |
Job::Job() { | |
string name = "Mapler"; //Class name | |
bPrimary = 4; //base primary | |
bSecondary = 4; //base secondary | |
bThird = 4; //base tertiary | |
tPrimary = 4; // total primary before MW | |
tSecondary = 4; //total secondary before MW | |
tThird = 4; //total tertiary before MW | |
sPercent = 1.0; // Secondary stat% | |
pPercent = 1.0; //Primary stat% | |
tPercent = 1.0; //Tertiary stat% | |
skillPrimary = 0; //Skills that give primary stat | |
skillSecondary = 0; //Skills that give secondary stat | |
skillThird = 0; //Skills that give tertiary stat | |
skill = 0; // skill damage | |
padX = 0; //Weapon attack from Mastery or AFA | |
pAttack = 1.0; //Attack% | |
psAttack = 0.0; //Attack% from actives | |
wAttack = 0; //Weapon attack from weapon | |
cAttack = 0; //Weapon attack given from skills before 4th job | |
sAttack = 0; //Weapon attack given from skills at 4th job | |
paAttack = 0; //Weapon attack given from AFA. Only used if mastery already used. | |
cIgnore = 0.0; //Ignore PDR from skills. | |
wepIgnore = 0.0; //Ignore PDR from weapons | |
mastery = 0.0; //weapon mastery% | |
criticalRate = .05; | |
criticalMin = 1.2; | |
criticalMinCombo = 0.0; | |
criticalMax = 1.5; | |
multiplier = 1.0; //Weapon multiplier | |
mapleWarrior = 1.0; //Maple warrior constant. | |
cDmgInc = 0.0; // total damage% (additive) #1 pre-4th job | |
cDmgInc2 = 0.0; // total damage% (additive) #2 | |
cDmgInc3 = 0.0; // total damage% (additive) #3 | |
dmgMult = 1.0; | |
skillDmg = 1.0; // total damage% (multiplicative to range) #1 | |
skillDmg2 = 1.0; // total damage% (multiplicative to range) #2 | |
skillDmg3 = 0.0; // total damage% (additive to range) #3 | |
skillDmg4 = 0.0; // total damage% (additive to range) #4 | |
bossDamage = 0.0; // boss damage% | |
} | |
void Job::reset() { | |
string name = "Mapler"; //Class name | |
bPrimary = 4; //base primary | |
bSecondary = 4; //base secondary | |
bThird = 4; //base tertiary | |
tPrimary = 4; // total primary before MW | |
tSecondary = 4; //total secondary before MW | |
tThird = 4; //total tertiary before MW | |
sPercent = 1.0; // Secondary stat% | |
pPercent = 1.0; //Primary stat% | |
tPercent = 1.0; //Tertiary stat% | |
skillPrimary = 0; //Skills that give primary stat | |
skillSecondary = 0; //Skills that give secondary stat | |
skillThird = 0; //Skills that give tertiary stat | |
skill = 0; // skill damage | |
padX = 0; //Weapon attack from Mastery or AFA | |
pAttack = 1.0; //Attack% | |
psAttack = 0.0; //Attack% from actives | |
wAttack = 0; //Weapon attack from weapon | |
cAttack = 0; //Weapon attack given from skills before 4th job | |
sAttack = 0; //Weapon attack given from skills at 4th job | |
paAttack = 0; //Weapon attack given from AFA. Only used if mastery already used. | |
cIgnore = 0.0; //Ignore PDR from skills. | |
wepIgnore = 0.0; //Ignore PDR from weapons | |
mastery = 0.0; //weapon mastery% | |
criticalRate = .05; | |
criticalMin = 1.2; | |
criticalMinCombo = 0.0; | |
criticalMax = 1.5; | |
multiplier = 1.0; //Weapon multiplier | |
mapleWarrior = 1.0; //Maple warrior constant. | |
cDmgInc = 0.0; // total damage% (additive) #1 pre-4th job | |
cDmgInc2 = 0.0; // total damage% (additive) #2 | |
cDmgInc3 = 0.0; // total damage% (additive) #3 | |
dmgMult = 1.0; | |
skillDmg = 1.0; // total damage% (multiplicative to range) #1 | |
skillDmg2 = 1.0; // total damage% (multiplicative to range) #2 | |
skillDmg3 = 0.0; | |
skillDmg4 = 0.0; | |
bossDamage = 0.0; // boss damage% | |
} | |
double mobpdr = 0.0; | |
Job maple; | |
void Form1::mobPDR_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
mobpdr = Convert::ToDouble(this->mobPDR->Value); | |
} | |
void Form1::warriorSelect_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->warriorSelect->Checked) { | |
this->tabControl1->TabPages[1]->Enabled = true; | |
this->tabControl1->TabPages[2]->Enabled = false; | |
this->tabControl1->TabPages[3]->Enabled = false; | |
this->tabControl1->TabPages[4]->Enabled = false; | |
this->tabControl1->TabPages[5]->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
this->baseP->Text = "Base STR"; | |
this->baseS->Text = "Base DEX"; | |
this->totalP->Text = "Total STR"; | |
this->totalS->Text = "Total DEX"; | |
this->pPerc->Text = "STR%"; | |
this->sPerc->Text = "DEX%"; | |
this->label32->Text = "Projected Total STR"; | |
this->progressBar1->Value = 15; | |
} | |
else { | |
this->tabControl1->TabPages[1]->Enabled = false; | |
this->pRage->Checked = false; | |
this->pSharpEyes->Checked = false; | |
this->dSharpEyes->Checked = false; | |
this->pAdvBless->Checked = false; | |
this->dAdvBless->Checked = false; | |
this->pAdvAura->Checked = false; | |
this->pMonkey->Checked = false; | |
this->magicOnyx->Checked = false; | |
this->swissCheese->Checked = false; | |
this->meditation->Checked = false; | |
this->energizer->Checked = false; | |
this->weaponOnyx->Checked = false; | |
this->warriorElixir->Checked = false; | |
this->echo->Checked = false; | |
this->legendPotion->Checked = false; | |
this->polearm->Checked = false; | |
this->twoSword->Checked = false; | |
this->oneMace->Checked = false; | |
this->twoMace->Checked = false; | |
this->oneAxe->Checked = false; | |
this->twoAxe->Checked = false; | |
this->oneSword->Checked = false; | |
this->spear->Checked = false; | |
this->heroEnable->Checked = false; | |
this->aranEnable->Checked = false; | |
this->demonEnable->Checked = false; | |
this->paladinEnable->Checked = false; | |
this->DrKEnable->Checked = false; | |
} | |
} | |
void Form1::mageSelect_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mageSelect->Checked) { | |
this->tabControl1->TabPages[1]->Enabled = false; | |
this->tabControl1->TabPages[2]->Enabled = true; | |
this->tabControl1->TabPages[3]->Enabled = false; | |
this->tabControl1->TabPages[4]->Enabled = false; | |
this->tabControl1->TabPages[5]->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
this->weaponPot->Enabled = false; | |
this->magicPot->Enabled = true; | |
this->baseP->Text = "Base INT"; | |
this->baseS->Text = "Base LUK"; | |
this->totalP->Text = "Total INT"; | |
this->totalS->Text = "Total LUK"; | |
this->pPerc->Text = "INT%"; | |
this->sPerc->Text = "LUK%"; | |
this->label1->Text = "Magic Attack"; | |
this->label13->Text = "Magic Attack%"; | |
this->label32->Text = "Projected Total INT"; | |
this->progressBar1->Value = 15; | |
} | |
else { | |
this->tabControl1->TabPages[2]->Enabled = false; | |
this->label1->Text = "Weapon Attack"; | |
this->label13->Text = "Attack%"; | |
this->magicPot->Enabled = false; | |
this->weaponPot->Enabled = true; | |
this->wand->Checked = false; | |
this->staff->Checked = false; | |
this->iceEnable->Checked = false; | |
this->fireEnable->Checked = false; | |
this->evanEnable->Checked = false; | |
this->bishopEnable->Checked = false; | |
this->BaMEnable->Checked = false; | |
this->pRage->Checked = false; | |
this->pSharpEyes->Checked = false; | |
this->dSharpEyes->Checked = false; | |
this->pAdvBless->Checked = false; | |
this->dAdvBless->Checked = false; | |
this->pAdvAura->Checked = false; | |
this->pMonkey->Checked = false; | |
this->magicOnyx->Checked = false; | |
this->swissCheese->Checked = false; | |
this->meditation->Checked = false; | |
this->energizer->Checked = false; | |
this->weaponOnyx->Checked = false; | |
this->warriorElixir->Checked = false; | |
this->echo->Checked = false; | |
this->legendPotion->Checked = false; | |
} | |
} | |
void Form1::archerSelect_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->archerSelect->Checked) { | |
this->tabControl1->TabPages[1]->Enabled = false; | |
this->tabControl1->TabPages[2]->Enabled = false; | |
this->tabControl1->TabPages[3]->Enabled = true; | |
this->tabControl1->TabPages[4]->Enabled = false; | |
this->tabControl1->TabPages[5]->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
this->baseP->Text = "Base DEX"; | |
this->baseS->Text = "Base STR"; | |
this->totalP->Text = "Total DEX"; | |
this->totalS->Text = "Total STR"; | |
this->pPerc->Text = "DEX%"; | |
this->sPerc->Text = "STR%"; | |
this->label32->Text = "Projected Total DEX"; | |
this->progressBar1->Value = 15; | |
} | |
else { | |
this->tabControl1->TabPages[3]->Enabled = false; | |
this->crossbow->Checked = false; | |
this->bow->Checked = false; | |
this->dualBowgun->Checked = false; | |
this->bmEnable->Checked = false; | |
this->mmEnable->Checked = false; | |
this->whEnable->Checked = false; | |
this->mercEnable->Checked = false; | |
this->pRage->Checked = false; | |
this->pSharpEyes->Checked = false; | |
this->dSharpEyes->Checked = false; | |
this->pAdvBless->Checked = false; | |
this->dAdvBless->Checked = false; | |
this->pAdvAura->Checked = false; | |
this->pMonkey->Checked = false; | |
this->magicOnyx->Checked = false; | |
this->swissCheese->Checked = false; | |
this->meditation->Checked = false; | |
this->energizer->Checked = false; | |
this->weaponOnyx->Checked = false; | |
this->warriorElixir->Checked = false; | |
this->echo->Checked = false; | |
this->legendPotion->Checked = false; | |
} | |
} | |
void Form1::thiefSelect_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->thiefSelect->Checked) { | |
this->tabControl1->TabPages[1]->Enabled = false; | |
this->tabControl1->TabPages[2]->Enabled = false; | |
this->tabControl1->TabPages[3]->Enabled = false; | |
this->tabControl1->TabPages[4]->Enabled = true; | |
this->tabControl1->TabPages[5]->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
this->baseP->Text = "Base LUK"; | |
this->baseS->Text = "Base DEX"; | |
this->totalP->Text = "Total LUK"; | |
this->totalS->Text = "Total DEX"; | |
this->pPerc->Text = "LUK%"; | |
this->sPerc->Text = "DEX%"; | |
this->label32->Text = "Projected Total LUK"; | |
this->baseT->Visible = true; | |
this->totalT->Visible = true; | |
this->tPerc->Visible = true; | |
this->totalThird->Visible = true; | |
this->baseThird->Visible = true; | |
this->thirdPercent->Visible = true; | |
this->progressBar1->Value = 15; | |
} | |
else { | |
this->tabControl1->TabPages[4]->Enabled = false; | |
this->baseT->Visible = false; | |
this->totalT->Visible = false; | |
this->tPerc->Visible = false; | |
this->totalThird->Visible = false; | |
this->baseThird->Visible = false; | |
this->thirdPercent->Visible = false; | |
this->pRage->Checked = false; | |
this->pSharpEyes->Checked = false; | |
this->dSharpEyes->Checked = false; | |
this->pAdvBless->Checked = false; | |
this->dAdvBless->Checked = false; | |
this->pAdvAura->Checked = false; | |
this->pMonkey->Checked = false; | |
this->magicOnyx->Checked = false; | |
this->swissCheese->Checked = false; | |
this->meditation->Checked = false; | |
this->energizer->Checked = false; | |
this->weaponOnyx->Checked = false; | |
this->warriorElixir->Checked = false; | |
this->echo->Checked = false; | |
this->legendPotion->Checked = false; | |
this->claw->Checked = false; | |
this->dagger->Checked = false; | |
this->dbEnable->Checked = false; | |
this->nlEnable->Checked = false; | |
this->shadEnable->Checked = false; | |
} | |
} | |
void Form1::pirateSelect_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pirateSelect->Checked) { | |
this->tabControl1->TabPages[1]->Enabled = false; | |
this->tabControl1->TabPages[2]->Enabled = false; | |
this->tabControl1->TabPages[3]->Enabled = false; | |
this->tabControl1->TabPages[4]->Enabled = false; | |
this->tabControl1->TabPages[5]->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
this->baseP->Text = "Base STR"; | |
this->baseS->Text = "Base DEX"; | |
this->totalP->Text = "Total STR"; | |
this->totalS->Text = "Total DEX"; | |
this->label32->Text = "Projected Total Stat"; | |
this->pPerc->Text = "STR%"; | |
this->sPerc->Text = "DEX%"; | |
this->progressBar1->Value = 15; | |
} | |
else { | |
this->tabControl1->TabPages[5]->Enabled = false; | |
this->Gun->Checked = false; | |
this->cannon->Checked = false; | |
this->knuckle->Checked = false; | |
this->buccEnable->Checked = false; | |
this->sairEnable->Checked = false; | |
this->mechEnable->Checked = false; | |
this->cannonEnable->Checked = false; | |
this->pRage->Checked = false; | |
this->pSharpEyes->Checked = false; | |
this->dSharpEyes->Checked = false; | |
this->pAdvBless->Checked = false; | |
this->dAdvBless->Checked = false; | |
this->pAdvAura->Checked = false; | |
this->pMonkey->Checked = false; | |
this->magicOnyx->Checked = false; | |
this->swissCheese->Checked = false; | |
this->meditation->Checked = false; | |
this->energizer->Checked = false; | |
this->weaponOnyx->Checked = false; | |
this->warriorElixir->Checked = false; | |
this->echo->Checked = false; | |
this->legendPotion->Checked = false; | |
} | |
} | |
void Form1::basePrimary_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.bPrimary = Convert::ToInt32(this->basePrimary->Value); | |
} | |
void Form1::baseSecondary_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.bSecondary = Convert::ToInt32(this->baseSecondary->Value); | |
} | |
void Form1::baseThird_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.bThird = Convert::ToInt32(this->baseThird->Value); | |
} | |
void Form1::totalPrimary_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.tPrimary = Convert::ToInt32(this->totalPrimary->Value); | |
} | |
void Form1::totalSecondary_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.tSecondary = Convert::ToInt32(this->totalSecondary->Value); | |
} | |
void Form1::totalThird_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.tThird = Convert::ToInt32(this->totalThird->Value); | |
} | |
void Form1::primaryPercent_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.pPercent = 1.0 + (Convert::ToDouble(this->primaryPercent->Value)/100); | |
/* if(this->mwLevel->Value == 0) { | |
int projectTotal = maple.tPrimary * maple.pPercent; | |
this->projectedTotal->Text = Convert::ToString(projectTotal); | |
} | |
else { | |
int projectTotal = floor(maple.bPrimary * (Convert::ToDouble(this->mwLevel->Value)/200)) + maple.tPrimary; | |
this->projectedTotal->Text = Convert::ToString(projectTotal); | |
} */ | |
} | |
void Form1::secondaryPercent_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.sPercent = 1.0 + (Convert::ToDouble(this->secondaryPercent->Value)/100); | |
} | |
void Form1::thirdPercent_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.tPercent = 1.0 + (Convert::ToDouble(this->thirdPercent->Value)/100); | |
} | |
void Form1::weaponAttack_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.wAttack = Convert::ToInt32(this->weaponAttack->Value); | |
} | |
void Form1::ignorePDR_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.wepIgnore = Convert::ToDouble(this->ignorePDR->Value)/100; | |
} | |
void Form1::bossDmg_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.bossDamage = Convert::ToDouble(this->bossDmg->Value)/100; | |
} | |
//Attack% | |
void Form1::numericUpDown1_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
maple.pAttack = 1.0 + Convert::ToDouble(this->numericUpDown1->Value)/100; | |
} | |
void Form1::mwLevel_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mwLevel->Value > 0) | |
maple.mapleWarrior = 1.0 + (ceil(Convert::ToDouble(this->mwLevel->Value)/2))/100; | |
else | |
maple.mapleWarrior = 1.0; | |
} | |
/*Multiplier: 1H - 1.2, 2H - 1.32, Spear/PA - 1.49, Staff/Wand = 1.0, | |
Bow/DBG/Dagger/Cane - 1.3, Crossbow - 1.35, Claw - 1.75, Gun = 1.5, | |
Knuckle = 1.7, Cannon = 1.8 | |
*/ | |
void Form1::polearm_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->polearm->Checked) { | |
maple.mastery = .2; | |
maple.multiplier = 1.49; | |
this->progressBar1->Value += 15; | |
this->tabControl2->TabPages[2]->Enabled = true; | |
this->tabControl2->TabPages[3]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value -= 15; | |
this->tabControl2->TabPages[2]->Enabled = false; | |
this->tabControl2->TabPages[3]->Enabled = false; | |
maple.multiplier = 1.0; | |
} | |
} | |
void Form1::twoSword_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->twoSword->Checked) { | |
this->tabControl2->TabPages[0]->Enabled = true; | |
this->tabControl2->TabPages[1]->Enabled = true; | |
this->progressBar1->Value +=15; | |
maple.multiplier = 1.32; | |
maple.mastery = .2; | |
} | |
else { | |
this->tabControl2->TabPages[0]->Enabled = false; | |
this->tabControl2->TabPages[1]->Enabled = false; | |
this->progressBar1->Value -=15; | |
maple.multiplier = 1.0; | |
} | |
} | |
void Form1::oneMace_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->oneMace->Checked) { | |
this->tabControl2->TabPages[1]->Enabled = true; | |
this->tabControl2->TabPages[4]->Enabled = true; | |
this->progressBar1->Value += 15; | |
maple.multiplier = 1.2; | |
maple.mastery = .2; | |
} | |
else { | |
this->tabControl2->TabPages[1]->Enabled = false; | |
this->tabControl2->TabPages[4]->Enabled = false; | |
this->progressBar1->Value -= 15; | |
maple.multiplier = 1.0; | |
} | |
} | |
void Form1::twoMace_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->twoMace->Checked) { | |
this->tabControl2->TabPages[1]->Enabled = true; | |
this->progressBar1->Value += 15; | |
maple.multiplier = 1.32; | |
maple.mastery = .2; | |
} | |
else { | |
this->tabControl2->TabPages[1]->Enabled = false; | |
this->progressBar1->Value -= 15; | |
maple.multiplier = 1.0; | |
} | |
} | |
void Form1::oneAxe_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->oneAxe->Checked) { | |
this->tabControl2->TabPages[0]->Enabled = true; | |
this->tabControl2->TabPages[4]->Enabled = true; | |
this->progressBar1->Value += 15; | |
maple.multiplier = 1.2; | |
maple.mastery = .2; | |
} | |
else { | |
this->tabControl2->TabPages[0]->Enabled = false; | |
this->tabControl2->TabPages[4]->Enabled = false; | |
this->progressBar1->Value -= 15; | |
maple.multiplier = 1.0; | |
} | |
} | |
void Form1::twoAxe_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->twoAxe->Checked) { | |
this->tabControl2->TabPages[0]->Enabled = true; | |
this->progressBar1->Value += 15; | |
maple.multiplier = 1.32; | |
maple.mastery = .2; | |
} | |
else { | |
this->tabControl2->TabPages[0]->Enabled = false; | |
this->progressBar1->Value -= 15; | |
maple.multiplier = 1.0; | |
} | |
} | |
void Form1::oneSword_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->oneSword->Checked) { | |
this->tabControl2->TabPages[0]->Enabled = true; | |
this->tabControl2->TabPages[1]->Enabled = true; | |
this->progressBar1->Value +=15; | |
maple.multiplier = 1.2; | |
maple.mastery = .2; | |
} | |
else { | |
this->tabControl2->TabPages[0]->Enabled = false; | |
this->tabControl2->TabPages[1]->Enabled = false; | |
this->progressBar1->Value -=15; | |
maple.multiplier = 1.0; | |
} | |
} | |
void Form1::spear_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->spear->Checked) { | |
maple.mastery = .2; | |
maple.multiplier = 1.49; | |
this->progressBar1->Value += 15; | |
this->tabControl2->TabPages[2]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value -= 15; | |
this->tabControl2->TabPages[2]->Enabled = false; | |
maple.multiplier = 1.0; | |
} | |
} | |
void Form1::wand_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->wand->Checked) { | |
maple.mastery = .25; | |
maple.multiplier = 1.0; | |
this->progressBar1->Value += 15; | |
for(int i = 0; i<4; i++) | |
this->tabControl3->TabPages[i]->Enabled = true; | |
this->tabControl3->TabPages[4]->Enabled = false; | |
} | |
else { | |
this->progressBar1->Value -= 15; | |
for(int i = 0; i<4; i++) | |
this->tabControl3->TabPages[i]->Enabled = false; | |
this->tabControl3->TabPages[4]->Enabled = true; | |
} | |
} | |
void Form1::staff_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->staff->Checked) { | |
maple.mastery = .25; | |
maple.multiplier = 1.0; | |
this->progressBar1->Value += 15; | |
for(int i = 0; i< 5; i++) | |
this->tabControl3->TabPages[i]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value -= 15; | |
this->tabControl3->TabPages[4]->Enabled = false; | |
} | |
} | |
void Form1::crossbow_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->crossbow->Checked) { | |
maple.mastery = .15; | |
maple.multiplier = 1.35; | |
this->progressBar1->Value += 15; | |
this->tabControl4->TabPages[1]->Enabled = true; | |
this->tabControl4->TabPages[3]->Enabled = true; | |
} | |
else { | |
maple.multiplier = 1.0; | |
this->progressBar1->Value -= 15; | |
this->tabControl4->TabPages[1]->Enabled = false; | |
this->tabControl4->TabPages[3]->Enabled = false; | |
} | |
} | |
void Form1::bow_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bow->Checked) { | |
maple.mastery = .15; | |
maple.multiplier = 1.3; | |
this->progressBar1->Value += 15; | |
this->tabControl4->TabPages[0]->Enabled = true; | |
} | |
else { | |
maple.multiplier = 1.0; | |
this->progressBar1->Value -= 15; | |
this->tabControl4->TabPages[0]->Enabled = false; | |
} | |
} | |
void Form1::dualBowgun_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->dualBowgun->Checked) { | |
maple.mastery = .15; | |
maple.multiplier = 1.3; | |
this->progressBar1->Value += 15; | |
this->tabControl4->TabPages[2]->Enabled = true; | |
} | |
else { | |
this->tabControl4->TabPages[2]->Enabled = false; | |
maple.multiplier = 1.0; | |
this->progressBar1->Value -= 15; | |
} | |
} | |
void Form1::claw_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->claw->Checked) { | |
maple.mastery = .15; | |
maple.multiplier = 1.75; | |
this->progressBar1->Value += 15; | |
this->tabControl5->TabPages[0]->Enabled = true; | |
} | |
else { | |
maple.multiplier = 1.0; | |
this->progressBar1->Value -= 15; | |
this->tabControl5->TabPages[0]->Enabled = false; | |
} | |
} | |
void Form1::dagger_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->dagger->Checked) { | |
maple.mastery = .2; | |
maple.multiplier = 1.3; | |
this->progressBar1->Value += 15; | |
this->tabControl5->TabPages[1]->Enabled = true; | |
this->tabControl5->TabPages[2]->Enabled = true; | |
} | |
else { | |
maple.multiplier = 1.0; | |
this->progressBar1->Value -= 15; | |
this->tabControl5->TabPages[1]->Enabled = false; | |
this->tabControl5->TabPages[2]->Enabled = false; | |
} | |
} | |
void Form1::cannon_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->cannon->Checked) { | |
maple.mastery = .2; | |
maple.multiplier = 1.8; | |
this->progressBar1->Value += 15; | |
this->tabControl6->TabPages[2]->Enabled = true; | |
} | |
else { | |
maple.multiplier = 1.0; | |
this->progressBar1->Value -= 15; | |
this->tabControl6->TabPages[2]->Enabled = false; | |
} | |
} | |
void Form1::Gun_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->Gun->Checked) { | |
maple.mastery = .15; | |
maple.multiplier = 1.5; | |
this->progressBar1->Value += 15; | |
this->tabControl6->TabPages[1]->Enabled = true; | |
this->tabControl6->TabPages[3]->Enabled = true; | |
} | |
else { | |
maple.multiplier = 1.0; | |
this->progressBar1->Value -= 15; | |
this->tabControl6->TabPages[1]->Enabled = false; | |
this->tabControl6->TabPages[3]->Enabled = false; | |
} | |
} | |
void Form1::knuckle_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->knuckle->Checked) { | |
maple.multiplier = 1.7; | |
maple.mastery = .2; | |
this->progressBar1->Value += 15; | |
this->tabControl6->TabPages[0]->Enabled = true; | |
} | |
else { | |
maple.multiplier = 1.0; | |
this->progressBar1->Value -= 15; | |
this->tabControl6->TabPages[0]->Enabled = false; | |
} | |
} | |
//Hero | |
void Form1::heroEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->heroEnable->Checked) { | |
maple.name = "Hero"; | |
maple.mastery+=.5; | |
this->groupBox4->Visible = true; | |
this->groupBox4->Enabled = true; | |
this->groupBox3->Enabled = false; | |
this->progressBar1->Value += 20; | |
this->heroSubmit->Visible = true; | |
this->pRage->Enabled = false; | |
this->pRage->Checked = false; | |
this->tabControl2->TabPages[1]->Enabled = false; | |
if(this->oneAxe->Checked) | |
this->tabControl2->TabPages[4]->Enabled = false; | |
maple.cAttack += 30; | |
maple.cDmgInc += .25; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery-=.5; | |
this->groupBox4->Visible = false; | |
this->heroSubmit->Visible = false; | |
this->groupBox3->Enabled = true; | |
this->pRage->Enabled = true; | |
this->progressBar1->Value -= 20; | |
if(!((this->oneAxe->Checked) || (this->twoAxe->Checked))) | |
this->tabControl2->TabPages[1]->Enabled = true; | |
if(this->oneAxe->Checked) | |
this->tabControl2->TabPages[4]->Enabled = true; | |
maple.cAttack -= 30; | |
maple.cDmgInc -= .25; | |
this->intrepidSlash->Value = 0; | |
this->advFAH->Value = 0; | |
this->combatMastery->Value = 0; | |
this->enrage->Value = 0; | |
this->advCombo->Value = 0; | |
this->heroSubmit->Text = "Submit"; | |
} | |
} | |
void Form1::intrepidSlash_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->intrepidSlash->Value > 0) | |
maple.skill = 150 + (5 * Convert::ToInt32(this->intrepidSlash->Value)); | |
else | |
maple.skill = 0; | |
} | |
void Form1::advFAH_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advFAH->Value > 0) | |
maple.padX = Convert::ToInt32(this->advFAH->Value); | |
else | |
maple.padX = 0; | |
} | |
void Form1::combatMastery_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->combatMastery->Value > 0) | |
maple.cIgnore = 4*Convert::ToDouble(this->combatMastery->Value)/100; | |
else | |
maple.cIgnore = 0.0; | |
} | |
void Form1::enrage_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->enrage->Value > 0) { | |
maple.criticalRate = .15 + ceil(Convert::ToDouble(this->enrage->Value)/3)/100; | |
maple.criticalMin = 1.2 + ceil(Convert::ToDouble(this->enrage->Value)/2)/100; | |
maple.cDmgInc2 = (2.0*Convert::ToDouble(this->enrage->Value))/100; | |
} | |
else | |
maple.cDmgInc2 = 0.0; | |
} | |
void Form1::advCombo_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advCombo->Value > 0) { | |
maple.cDmgInc3 = ((5+floor(Convert::ToDouble(this->advCombo->Value)/6))*(5+floor(Convert::ToDouble(this->advCombo->Value)/6)))/100; | |
maple.criticalMinCombo = ((5+floor(Convert::ToDouble(this->advCombo->Value)/6))*(5+floor(Convert::ToDouble(this->advCombo->Value)/6)))/100; | |
maple.criticalMax = 1.5 + ((5+floor(Convert::ToDouble(this->advCombo->Value)/6))*(5+floor(Convert::ToDouble(this->advCombo->Value)/6)))/100; | |
} | |
} | |
void Form1::heroSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->heroSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->heroSubmit->Text = "Press Calculator Tab"; | |
this->groupBox4->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->heroSubmit->Text = "Submit"; | |
this->groupBox4->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Paladin | |
void Form1::paladinEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->paladinEnable->Checked) { | |
maple.name = "Paladin"; | |
maple.mastery+=.5; | |
this->groupBox5->Visible = true; | |
this->groupBox5->Enabled = true; | |
this->paladinSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
this->groupBox3->Enabled = false; | |
this->tabControl2->TabPages[0]->Enabled = false; | |
this->tabControl2->TabPages[4]->Enabled = false; | |
mobpdr= floor(Convert::ToDouble(this->mobPDR->Value)-(Convert::ToDouble(this->mobPDR->Value)*.3)); | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery-=.5; | |
this->groupBox5->Visible = false; | |
this->paladinSubmit->Visible = false; | |
this->groupBox3->Enabled = true; | |
if(!(this->oneMace->Checked)) | |
this->tabControl2->TabPages[0]->Enabled = true; | |
this->tabControl2->TabPages[4]->Enabled = true; | |
this->progressBar1->Value -= 20; | |
mobpdr = Convert::ToDouble(this->mobPDR->Value); | |
this->divineCharge->Value = 0; | |
this->divineShield->Value = 0; | |
this->advCharge->Value = 0; | |
this->blast->Value = 0; | |
this->paladinSubmit->Text = "Submit"; | |
} | |
} | |
void Form1::paladinSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->paladinSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->paladinSubmit->Text = "Press Calculator Tab"; | |
this->groupBox5->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->paladinSubmit->Text = "Submit"; | |
this->groupBox5->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
void Form1::divineCharge_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->divineCharge->Value > 0) | |
maple.cDmgInc3 = .3 + Convert::ToDouble(this->divineCharge->Value)/100; | |
else | |
maple.cDmgInc3 = 0.0; | |
} | |
void Form1::divineShield_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->divineShield->Value > 0) | |
maple.sAttack = 10 + Convert::ToInt32(this->divineShield->Value)*2; | |
else | |
maple.sAttack = 0; | |
} | |
void Form1::advCharge_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advCharge->Value > 0) | |
maple.mastery = .72+(Convert::ToDouble(this->advCharge->Value)*2)/100; | |
else | |
maple.mastery = .7; | |
} | |
void Form1::blast_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->blast->Value > 0) { | |
maple.skill = 250+(3*Convert::ToInt32(this->blast->Value)); | |
maple.cIgnore = .15+(ceil(Convert::ToDouble(this->blast->Value)/2))/100; | |
maple.criticalRate = .25 + Convert::ToDouble(this->blast->Value)/100; | |
maple.criticalMin = 1.25 + (ceil(Convert::ToDouble(this->blast->Value)/2))/100; | |
} | |
else { | |
maple.skill = 0; | |
maple.cIgnore = 0.0; | |
} | |
} | |
//Dark Knight | |
void Form1::DrKEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->DrKEnable->Checked) { | |
if(this->polearm->Checked) | |
this->tabControl2->TabPages[3]->Enabled = false; | |
this->groupBox6->Visible = true; | |
this->groupBox6->Enabled = true; | |
this->DrKSubmit->Visible = true; | |
this->groupBox3->Enabled = false; | |
this->progressBar1->Value += 20; | |
maple.mastery += .5; | |
maple.skillPrimary = 60; | |
maple.criticalRate += .3; | |
maple.criticalMin += .15; | |
} | |
else { | |
if(this->polearm->Checked) | |
this->tabControl2->TabPages[3]->Enabled = true; | |
this->groupBox6->Visible = false; | |
this->DrKSubmit->Visible = false; | |
this->groupBox3->Enabled = true; | |
this->progressBar1->Value -= 20; | |
maple.mastery -= .5; | |
maple.skillPrimary = 0; | |
maple.criticalRate -= .3; | |
maple.criticalMin -= .15; | |
this->beholder->Value = 0; | |
this->darkImpale->Value = 0; | |
this->beholderHex->Value = 0; | |
this->beserk->Value = 0; | |
this->DrKSubmit->Text = "Submit"; | |
} | |
} | |
void Form1::beholder_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->beholder->Value > 0) | |
maple.mastery = .70 + Convert::ToDouble(this->beholder->Value)/100; | |
else | |
maple.mastery = .70; | |
} | |
void Form1::darkImpale_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->darkImpale->Value > 0) { | |
maple.skill = 120 + 2*Convert::ToInt32(this->darkImpale->Value); | |
maple.cIgnore = .05 + ceil(Convert::ToDouble(this->darkImpale->Value)/2)/100; | |
} | |
else { | |
maple.skill = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::beholderHex_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->beholderHex->Value > 0) | |
maple.sAttack = 5+3*ceil(Convert::ToDouble(this->beholderHex->Value)/2); | |
else | |
maple.sAttack = 0; | |
} | |
void Form1::beserk_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->beserk->Value > 0) { | |
maple.cDmgInc = .3 + Convert::ToDouble(this->beserk->Value)/100; | |
maple.criticalRate = .35 + ceil(Convert::ToDouble(this->beserk->Value)/3)/100; | |
maple.criticalMin = 1.35 + ceil(Convert::ToDouble(this->beserk->Value)/2)/100; | |
} | |
else | |
maple.cDmgInc = 0.0; | |
} | |
void Form1::DrKSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->DrKSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->DrKSubmit->Text = "Press Calculator Tab"; | |
this->groupBox6->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->DrKSubmit->Text = "Submit"; | |
this->groupBox6->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Aran | |
void Form1::aranEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->aranEnable->Checked) { | |
maple.name = "Aran"; | |
maple.mastery += .5; | |
maple.skillDmg += .35; | |
maple.bossDamage += .2; | |
mobpdr= floor(Convert::ToDouble(this->mobPDR->Value)-(Convert::ToDouble(this->mobPDR->Value)*.4)); | |
maple.cAttack += 55; | |
maple.criticalRate = .25; | |
maple.criticalMax = 1.7; | |
this->groupBox3->Enabled = false; | |
this->groupBox7->Visible = true; | |
this->groupBox7->Enabled = true; | |
this->aranSubmit->Visible = true; | |
this->tabControl2->TabPages[2]->Enabled = false; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.skillDmg -= .35; | |
maple.bossDamage -= .2; | |
mobpdr = Convert::ToDouble(this->mobPDR->Value); | |
maple.cAttack -= 55; | |
maple.criticalRate = .05; | |
maple.criticalMax = 1.5; | |
this->groupBox7->Visible = false; | |
this->aranSubmit->Visible = false; | |
this->groupBox3->Enabled = true; | |
this->tabControl2->TabPages[2]->Enabled = true; | |
this->progressBar1->Value -= 20; | |
this->highMastery->Value = 0; | |
this->advFAA->Value = 0; | |
this->comboRecharge->Checked = false; | |
this->overSwing->Value = 0; | |
this->aranSubmit->Text = "Submit"; | |
} | |
} | |
void Form1::highMastery_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->highMastery->Value > 0) { | |
maple.padX = 10 + Convert::ToInt32(this->highMastery->Value); | |
maple.criticalMin = 1.2 + ceil(Convert::ToDouble(this->highMastery->Value)*.75)/100; | |
} | |
else | |
maple.padX = 0; | |
} | |
void Form1::advFAA_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advFAA->Value > 0) | |
maple.paAttack = Convert::ToInt32(this->advFAA->Value); | |
else | |
maple.paAttack = 0; | |
} | |
void Form1::comboRecharge_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->comboRecharge->Checked) { | |
this->comboRecharge->Text = "Enabled"; | |
maple.cAttack += 30; | |
maple.criticalRate += .3; | |
} | |
else { | |
maple.cAttack -= 30; | |
maple.criticalRate -= .3; | |
this->comboRecharge->Text = "Disabled"; | |
} | |
} | |
void Form1::overSwing_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->overSwing->Value > 0) | |
maple.skill = 310 + (6 * Convert::ToInt32(this->overSwing->Value)); | |
else | |
maple.skill = 0; | |
} | |
void Form1::aranSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->aranSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->aranSubmit->Text = "Press Calculator Tab"; | |
this->groupBox7->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->aranSubmit->Text = "Submit"; | |
this->groupBox7->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Demon Slayer | |
void Form1::demonEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->demonEnable->Checked) { | |
maple.name = "Demon Slayer"; | |
maple.cAttack = 25; | |
maple.criticalRate = .30; | |
maple.mastery += .5; | |
maple.skillDmg += .25; | |
maple.cDmgInc += .15; | |
if(this->oneMace->Checked) | |
this->tabControl2->TabPages[1]->Enabled = false; | |
if(this->oneAxe->Checked) | |
this->tabControl2->TabPages[0]->Enabled = false; | |
this->groupBox3->Enabled = false; | |
this->groupBox8->Visible = true; | |
this->groupBox8->Enabled = true; | |
this->demonSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.cAttack -= 25; | |
maple.criticalRate = .05; | |
maple.mastery -= .5; | |
maple.skillDmg -= .25; | |
maple.cDmgInc -= .15; | |
if(this->oneMace->Checked) | |
this->tabControl2->TabPages[1]->Enabled = true; | |
if(this->oneAxe->Checked) | |
this->tabControl2->TabPages[0]->Enabled = true; | |
this->groupBox3->Enabled = true; | |
this->groupBox8->Visible = false; | |
this->demonSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->demonImpact->Value = 0; | |
this->demonMastery->Value = 0; | |
this->demonCry->Value = 0; | |
this->metamorph->Value = 0; | |
this->demonSubmit->Text = "Submit"; | |
} | |
} | |
void Form1::demonImpact_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->demonImpact->Value > 0) { | |
maple.cDmgInc2 = Convert::ToDouble(this->demonImpact->Value)/100; | |
maple.cIgnore = Convert::ToInt32(this->demonImpact->Value)+Convert::ToInt32(this->darkBind->Value); | |
maple.skill = 180+2*Convert::ToInt32(this->demonImpact->Value); | |
} | |
else { | |
maple.cDmgInc2 = 0; | |
maple.cIgnore = 0; | |
maple.skill = 0; | |
} | |
} | |
void Form1::demonMastery_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->demonMastery->Value > 0) { | |
maple.mastery = .2 + (55+ceil((Convert::ToDouble(this->demonMastery->Value))/2))/100; | |
maple.padX = Convert::ToInt32(this->demonMastery->Value); | |
maple.criticalMin = 1.2 + (ceil(Convert::ToDouble(this->demonMastery->Value)/2)/100); | |
} | |
else { | |
maple.mastery = .7; | |
maple.padX = 0; | |
} | |
} | |
void Form1::demonCry_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
mobpdr= floor(Convert::ToDouble(this->mobPDR->Value)-(Convert::ToDouble(this->mobPDR->Value)*((ceil(Convert::ToDouble(this->demonCry->Value)/2))/100))); | |
} | |
void Form1::metamorph_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->metamorph->Value > 0) | |
maple.skillDmg2 = 1.05 + Convert::ToDouble(this->metamorph->Value)/100; | |
else | |
maple.skillDmg2 = 1.0; | |
} | |
void Form1::demonSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->demonSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->demonSubmit->Text = "Press Calculator Tab"; | |
this->groupBox8->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->demonSubmit->Text = "Submit"; | |
this->groupBox8->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
void Form1::darkBind_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->darkBind->Value > 0) | |
maple.cIgnore = Convert::ToInt32(this->demonImpact->Value)+Convert::ToInt32(this->darkBind->Value); | |
else | |
maple.cIgnore = 0; | |
} | |
//Ice Lightning | |
void Form1::iceEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->iceEnable->Checked) { | |
maple.name = "Ice Lightning"; | |
maple.cAttack += 30; | |
maple.mastery+= .5; | |
maple.paAttack += 10; | |
maple.cDmgInc += .1; | |
maple.dmgMult = 1.5; | |
for(int i = 1; i<5; i++) | |
this->tabControl3->TabPages[i]->Enabled = false; | |
this->groupBox9->Enabled = false; | |
this->groupBox10->Visible = true; | |
this->groupBox10->Enabled = true; | |
this->iceSubmit->Visible = true; | |
this->meditation->Checked = false; | |
this->meditation->Enabled = false; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.cAttack -= 30; | |
maple.mastery -= .5; | |
maple.paAttack -= 10; | |
maple.cDmgInc -= .1; | |
maple.dmgMult = 1.0; | |
for(int i = 1; i<4; i++) | |
this->tabControl3->TabPages[i]->Enabled = true; | |
if(this->staff->Checked) | |
this->tabControl3->TabPages[4]->Enabled = true; | |
this->groupBox9->Enabled = true; | |
this->meditation->Enabled = true; | |
this->groupBox10->Visible = false; | |
this->iceSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->infinityIL->Value = 0; | |
this->buffMasteryIL->Value = 0; | |
this->arcaneAimIL->Value = 0; | |
this->chainLightning->Value = 0; | |
this->iceSubmit->Text = "Submit"; | |
} | |
} | |
void Form1::infinityIL_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->infinityIL->Value > 0) | |
maple.cDmgInc2 = (ceil((Convert::ToDouble(this->infinityIL->Value)+10)/4)*ceil(Convert::ToDouble(this->infinityIL->Value)/3))/100; | |
else | |
maple.cDmgInc2 = 0.0; | |
} | |
void Form1::buffMasteryIL_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->buffMasteryIL->Value > 0) | |
maple.padX = Convert::ToInt32(this->buffMasteryIL->Value)*3; | |
else | |
maple.padX = 0; | |
} | |
void Form1::arcaneAimIL_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->arcaneAimIL->Value > 0) { | |
maple.cDmgInc3 = (5*(2+floor(Convert::ToDouble(this->arcaneAimIL->Value)/5)))/100; | |
maple.cIgnore = (5+ceil(Convert::ToDouble(this->arcaneAimIL->Value)/2))/100; | |
} | |
else { | |
maple.cDmgInc3 = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::chainLightning_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->chainLightning->Value > 0) | |
maple.skill = 140 + 2*Convert::ToInt32(this->chainLightning->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::iceSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->iceSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->iceSubmit->Text = "Press Calculator Tab"; | |
this->groupBox10->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->iceSubmit->Text = "Submit"; | |
this->groupBox10->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Fire Poison | |
void Form1::fireEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->fireEnable->Checked) { | |
maple.name = "Fire Poison"; | |
maple.cAttack += 30; | |
maple.mastery+= .5; | |
maple.paAttack += 10; | |
maple.cDmgInc += .1; | |
maple.dmgMult = 1.5; | |
this->tabControl3->TabPages[0]->Enabled = false; | |
for(int i = 2; i<5; i++) | |
this->tabControl3->TabPages[i]->Enabled = false; | |
this->groupBox9->Enabled = false; | |
this->groupBox11->Enabled = true; | |
this->groupBox11->Visible = true; | |
this->meditation->Enabled = false; | |
this->meditation->Checked = false; | |
this->fireSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.cAttack -= 30; | |
maple.mastery -= .5; | |
maple.paAttack -= 10; | |
maple.cDmgInc -= .1; | |
maple.dmgMult = 1.0; | |
this->meditation->Enabled = true; | |
this->tabControl3->TabPages[0]->Enabled = true; | |
for(int i = 1; i<4; i++) | |
this->tabControl3->TabPages[i]->Enabled = true; | |
if(this->staff->Checked) | |
this->tabControl3->TabPages[4]->Enabled = true; | |
this->groupBox9->Enabled = true; | |
this->groupBox11->Visible = false; | |
this->fireSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->infinityFP->Value = 0; | |
this->buffMasteryFP->Value = 0; | |
this->arcaneAimFP->Value = 0; | |
this->paralyze->Value = 0; | |
this->fireSubmit->Text = "Submit"; | |
} | |
} | |
void Form1::buffMasteryFP_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->buffMasteryFP->Value > 0) | |
maple.padX = Convert::ToInt32(this->buffMasteryFP->Value)*3; | |
else | |
maple.padX = 0; | |
} | |
void Form1::infinityFP_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->infinityFP->Value > 0) | |
maple.cDmgInc2 = (ceil((Convert::ToDouble(this->infinityFP->Value)+10)/4)*ceil(Convert::ToDouble(this->infinityFP->Value)/3))/100; | |
else | |
maple.cDmgInc2 = 0.0; | |
} | |
void Form1::arcaneAimFP_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->arcaneAimFP->Value > 0) { | |
maple.cDmgInc3 = (5*(2+floor(Convert::ToDouble(this->arcaneAimFP->Value)/5)))/100; | |
maple.cIgnore = (5+ceil(Convert::ToDouble(this->arcaneAimFP->Value)/2))/100; | |
} | |
else { | |
maple.cDmgInc3 = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::paralyze_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->paralyze->Value > 0) | |
maple.skill = 140 + 2*Convert::ToInt32(this->paralyze->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::fireSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->fireSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->fireSubmit->Text = "Press Calculator Tab"; | |
this->groupBox11->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->fireSubmit->Text = "Submit"; | |
this->groupBox11->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Bishop | |
void Form1::bishopEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bishopEnable->Checked) { | |
maple.name = "Bishop"; | |
maple.mastery+= .65; | |
maple.paAttack += 10; | |
this->tabControl3->TabPages[0]->Enabled = false; | |
this->tabControl3->TabPages[1]->Enabled = false; | |
for(int i = 3; i<5; i++) | |
this->tabControl3->TabPages[i]->Enabled = false; | |
this->groupBox9->Enabled = false; | |
this->groupBox12->Visible = true; | |
this->groupBox12->Enabled = true; | |
this->pAdvBless->Enabled = false; | |
this->pAdvBless->Checked = false; | |
this->bishopSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .65; | |
maple.paAttack -= 10; | |
this->bishopSubmit->Text = "Submit"; | |
this->pAdvBless->Enabled = true; | |
this->tabControl3->TabPages[0]->Enabled = true; | |
for(int i = 1; i<4; i++) | |
this->tabControl3->TabPages[i]->Enabled = true; | |
if(this->staff->Checked) | |
this->tabControl3->TabPages[4]->Enabled = true; | |
this->groupBox9->Enabled = true; | |
this->groupBox12->Visible = false; | |
this->bishopSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->infinityBishop->Value = 0; | |
this->buffMasteryBishop->Value = 0; | |
this->arcaneAimBishop->Value = 0; | |
this->angelRay->Value = 0; | |
this->advBless->Value = 0; | |
} | |
} | |
void Form1::buffMasteryBishop_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->buffMasteryBishop->Value > 0) | |
maple.padX = Convert::ToInt32(this->buffMasteryBishop->Value)*3; | |
else | |
maple.padX = 0; | |
} | |
void Form1::angelRay_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->angelRay->Value > 0) | |
maple.skill = 225 + 5*Convert::ToInt32(this->angelRay->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::arcaneAimBishop_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->arcaneAimBishop->Value > 0) { | |
maple.cDmgInc3 = (5*(2+floor(Convert::ToDouble(this->arcaneAimBishop->Value)/5)))/100; | |
maple.cIgnore = (5+ceil(Convert::ToDouble(this->arcaneAimBishop->Value)/2))/100; | |
} | |
else { | |
maple.cDmgInc3 = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::infinityBishop_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->infinityBishop->Value > 0) | |
maple.cDmgInc2 = (ceil((Convert::ToDouble(this->infinityBishop->Value)+10)/4)*ceil(Convert::ToDouble(this->infinityBishop->Value)/3))/100; | |
else | |
maple.cDmgInc2 = 0.0; | |
} | |
void Form1::advBless_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advBless->Value > 0) | |
maple.sAttack = 15 + ceil(Convert::ToDouble(this->advBless->Value)/2); | |
else | |
maple.sAttack = 0; | |
} | |
void Form1::bishopSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bishopSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->bishopSubmit->Text = "Press Calculator Tab"; | |
this->groupBox12->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->bishopSubmit->Text = "Submit"; | |
this->groupBox12->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Evans | |
void Form1::evanEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->evanEnable->Checked) { | |
maple.name = "Evan"; | |
maple.mastery += .5; | |
maple.paAttack += 30; | |
maple.dmgMult = 1.5; | |
maple.pAttack += .35; | |
maple.cDmgInc += .2; | |
this->groupBox13->Visible = true; | |
this->groupBox13->Enabled = true; | |
this->evanSubmit->Visible = true; | |
for(int i = 0; i<3; i++) | |
this->tabControl3->TabPages[i]->Enabled = false; | |
this->tabControl3->TabPages[4]->Enabled = false; | |
this->progressBar1->Value += 20; | |
this->groupBox9->Enabled = false; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.paAttack -= 30; | |
maple.dmgMult = 1.0; | |
maple.mastery -= .5; | |
maple.pAttack -= .35; | |
maple.cDmgInc -= .2; | |
this->evanSubmit->Text = "Submit"; | |
this->groupBox13->Visible = false; | |
this->evanSubmit->Visible = false; | |
for(int i = 0; i<3; i++) | |
this->tabControl3->TabPages[i]->Enabled = true; | |
if(this->staff->Checked) | |
this->tabControl3->TabPages[4]->Enabled = true; | |
this->progressBar1->Value -= 20; | |
this->groupBox9->Enabled = true; | |
this->illusionEnable->Checked = false; | |
this->blazeEnable->Checked = false; | |
this->onyxBlessing->Value = 0; | |
this->magicMastery->Value = 0; | |
this->blaze->Value = 0; | |
this->illusion->Value = 0; | |
} | |
} | |
void Form1::illusionEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->illusionEnable->Checked) { | |
this->illusion->Enabled = true; | |
this->blaze->Value = 0; | |
} | |
else { | |
this->illusion->Enabled = false; | |
this->illusion->Value = 0; | |
} | |
} | |
void Form1::blazeEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->blazeEnable->Checked) { | |
this->blaze->Enabled = true; | |
this->illusion->Value = 0; | |
} | |
else { | |
this->blaze->Enabled = false; | |
this->blaze->Value = 0; | |
} | |
} | |
void Form1::illusion_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->illusion->Value > 0) { | |
maple.skill = 260 + 4*Convert::ToInt32(this->illusion->Value); | |
maple.cIgnore = .05 + ceil(Convert::ToDouble(this->illusion->Value)/2)/100; | |
} | |
else { | |
maple.skill = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::onyxBlessing_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->onyxBlessing->Value > 0) | |
maple.sAttack = 10 + Convert::ToInt32(this->onyxBlessing->Value); | |
else | |
maple.sAttack = 0; | |
} | |
void Form1::magicMastery_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->magicMastery->Value > 0) { | |
maple.padX = Convert::ToInt32(this->magicMastery->Value); | |
maple.mastery = .80 + ceil(Convert::ToDouble(this->magicMastery->Value)/2)/100; | |
} | |
else { | |
maple.padX = 0; | |
maple.mastery = .75; | |
} | |
} | |
void Form1::blaze_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->blaze->Value > 0) { | |
maple.skill = 300 + 4*Convert::ToInt32(this->blaze->Value); | |
maple.cIgnore = .05 + Convert::ToDouble(this->blaze->Value)/100; | |
} | |
else { | |
maple.skill = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::evanSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->evanSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->evanSubmit->Text = "Press Calculator Tab"; | |
this->groupBox13->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->evanSubmit->Text = "Submit"; | |
this->groupBox13->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Battle Mages | |
void Form1::BaMEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->BaMEnable->Checked) { | |
maple.name = "Battle Mage"; | |
maple.mastery += .5; | |
maple.paAttack += 10; | |
maple.skillDmg += .3; | |
this->pAdvAura->Enabled = false; | |
this->pAdvAura->Checked = false; | |
for(int i = 0; i<4; i++) | |
this->tabControl3->TabPages[i]->Enabled = false; | |
this->BaMSubmit->Visible = true; | |
this->groupBox14->Visible = true; | |
this->groupBox14->Enabled = true; | |
this->groupBox9->Enabled = false; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.paAttack -= 10; | |
maple.skillDmg -= .3; | |
this->BaMSubmit->Text = "Submit"; | |
for(int i = 0; i<4; i++) | |
this->tabControl3->TabPages[i]->Enabled = true; | |
this->pAdvAura->Enabled = true; | |
this->BaMSubmit->Visible = false; | |
this->groupBox14->Visible = false; | |
this->groupBox9->Enabled = true; | |
this->progressBar1->Value -= 20; | |
this->bodyBoost->Checked = false; | |
this->advDA->Value = 0; | |
this->finishBlow->Value = 0; | |
} | |
} | |
void Form1::advDA_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advDA->Value > 0) { | |
maple.padX = Convert::ToInt32(this->advDA->Value); | |
maple.psAttack = .10 + ceil(Convert::ToDouble(this->advDA->Value)/3)/100; | |
} | |
else { | |
maple.padX = 0; | |
maple.psAttack = 0.0; | |
} | |
} | |
void Form1::finishBlow_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->finishBlow->Value > 0) { | |
maple.skill = 120 + 2*Convert::ToInt32(this->finishBlow->Value); | |
maple.cIgnore = Convert::ToDouble(this->finishBlow->Value)/100; | |
} | |
else { | |
maple.skill = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::bodyBoost_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bodyBoost->Checked) { | |
maple.psAttack += .4; | |
this->bodyBoost->Text = "Enabled"; | |
} | |
else { | |
maple.psAttack -= .4; | |
this->bodyBoost->Text = "Disabled"; | |
} | |
} | |
void Form1::BaMSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->BaMSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->BaMSubmit->Text = "Press Calculator Tab"; | |
this->groupBox14->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->BaMSubmit->Text = "Submit"; | |
this->groupBox14->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Bowmasters | |
void Form1::bmEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bmEnable->Checked) { | |
maple.name = "Bowmaster"; | |
maple.mastery += .5; | |
maple.cAttack += 20; | |
this->groupBox15->Enabled = false; | |
this->groupBox16->Visible = true; | |
this->groupBox16->Enabled = true; | |
this->bmSubmit->Visible = true; | |
this->pSharpEyes->Enabled = false; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.cAttack -= 20; | |
this->bmSubmit->Text = "Submit"; | |
this->groupBox15->Enabled = true; | |
this->groupBox16->Visible = false; | |
this->bmSubmit->Visible = false; | |
this->pSharpEyes->Enabled = true; | |
this->progressBar1->Value -= 20; | |
this->bowExpert->Value = 0; | |
this->marksmanshipBM->Value = 0; | |
this->hurricane->Value = 0; | |
this->illusionStep->Value = 0; | |
this->advFABM->Value = 0; | |
this->spiritLinkBM->Value = 0; | |
} | |
} | |
void Form1::bowExpert_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bowExpert->Value > 0) { | |
maple.padX = Convert::ToInt32(this->bowExpert->Value); | |
maple.mastery = .70 + ceil(Convert::ToDouble(this->bowExpert->Value)/2)/100; | |
} | |
else { | |
maple.padX = 0; | |
maple.mastery = .65; | |
} | |
} | |
void Form1::marksmanshipBM_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->marksmanshipBM->Value > 0) | |
maple.cIgnore = .05 + (2*Convert::ToDouble(this->marksmanshipBM->Value))/100; | |
else | |
maple.cIgnore = 0; | |
} | |
void Form1::hurricane_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->hurricane->Value > 0) | |
maple.skill = 160 + 3*Convert::ToInt32(this->hurricane->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::illusionStep_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->illusionStep->Value > 0) | |
maple.skillPrimary = 10 + Convert::ToInt32(this->illusionStep->Value); | |
else | |
maple.skillPrimary = 0; | |
} | |
void Form1::advFABM_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advFABM->Value > 0) | |
maple.paAttack = 5 + ceil(Convert::ToDouble(this->advFABM->Value)/2); | |
else | |
maple.paAttack = 0; | |
} | |
void Form1::spiritLinkBM_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->spiritLinkBM->Value > 0) | |
maple.skillDmg = 1.0 + ceil(Convert::ToDouble(this->spiritLinkBM->Value)/2)/100; | |
else | |
maple.skillDmg = 1.0; | |
} | |
void Form1::bmSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bmSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->bmSubmit->Text = "Press Calculator Tab"; | |
this->groupBox16->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->bmSubmit->Text = "Submit"; | |
this->groupBox16->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
void Form1::sharpEyesBM_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->sharpEyesBM->Value > 0) | |
maple.criticalMax = 1.5 + (Convert::ToDouble(this->sharpEyesBM->Value))/100; | |
else | |
maple.criticalMax = 1.5; | |
} | |
//Marksmen | |
void Form1::mmEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mmEnable->Checked) { | |
maple.name = "Marksman"; | |
maple.mastery += .5; | |
maple.cAttack += 20; | |
this->groupBox15->Enabled = false; | |
this->groupBox17->Visible = true; | |
this->groupBox17->Enabled = true; | |
this->pSharpEyes->Enabled = false; | |
this->mmSubmit->Visible = true; | |
this->tabControl4->TabPages[3]->Enabled = false; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.cAttack -= 20; | |
this->mmSubmit->Text = "Submit"; | |
this->tabControl4->TabPages[3]->Enabled = true; | |
this->groupBox15->Enabled = true; | |
this->groupBox17->Visible = false; | |
this->pSharpEyes->Enabled = true; | |
this->mmSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->mmBoost->Value = 0; | |
this->marksmanshipMM->Value = 0; | |
this->ultimateStrafe->Value = 0; | |
this->illusionStepMM->Value = 0; | |
this->spiritLinkMM->Value = 0; | |
} | |
} | |
void Form1::marksmanshipMM_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->marksmanshipMM->Value > 0) | |
maple.cIgnore = .05 + (2*Convert::ToDouble(this->marksmanshipMM->Value))/100; | |
else | |
maple.cIgnore = 0; | |
} | |
void Form1::ultimateStrafe_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->ultimateStrafe->Value > 0) | |
maple.skill = 210 + 6*Convert::ToInt32(this->ultimateStrafe->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::illusionStepMM_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->illusionStepMM->Value > 0) | |
maple.skillPrimary = 10 + Convert::ToInt32(this->illusionStepMM->Value); | |
else | |
maple.skillPrimary = 0; | |
} | |
void Form1::spiritLinkMM_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->spiritLinkMM->Value > 0) | |
maple.skillDmg = 1.0 + ceil(Convert::ToDouble(this->spiritLinkMM->Value)/2)/100; | |
else | |
maple.skillDmg = 1.0; | |
} | |
void Form1::mmBoost_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mmBoost->Value > 0) { | |
maple.padX = Convert::ToInt32(this->mmBoost->Value); | |
maple.mastery = .70 + ceil(Convert::ToDouble(this->mmBoost->Value)/2)/100; | |
} | |
else { | |
maple.padX = 0; | |
maple.mastery = .65; | |
} | |
} | |
void Form1::mmSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mmSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->mmSubmit->Text = "Press Calculator Tab"; | |
this->groupBox17->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->mmSubmit->Text = "Submit"; | |
this->groupBox17->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
void Form1::sharpEyesMM_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->sharpEyesMM->Value > 0) | |
maple.criticalMax = 1.5 + (Convert::ToDouble(this->sharpEyesMM->Value))/100; | |
else | |
maple.criticalMax = 1.5; | |
} | |
//Mercedes | |
void Form1::mercEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mercEnable->Checked) { | |
maple.name = "Mercedes"; | |
maple.mastery += .5; | |
maple.skillDmg2 = 1.15; | |
maple.cAttack += 40; | |
this->groupBox15->Enabled = false; | |
this->groupBox18->Visible = true; | |
this->groupBox18->Enabled = true; | |
this->mercSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.skillDmg2 = 1.0; | |
maple.cAttack -= 40; | |
this->groupBox15->Enabled = true; | |
this->groupBox18->Visible = false; | |
this->mercSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->dbgExpert->Value = 0; | |
this->legendarySpear->Value = 0; | |
this->ishtarRing->Value = 0; | |
this->advFAMerc->Value = 0; | |
this->ancientWarding->Value = 0; | |
this->mercSubmit->Text = "Submit"; | |
} | |
} | |
void Form1::dbgExpert_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->dbgExpert->Value > 0) { | |
maple.padX = Convert::ToInt32(this->dbgExpert->Value); | |
maple.mastery = .70 + ceil(Convert::ToDouble(this->dbgExpert->Value)/2)/100; | |
} | |
else { | |
maple.padX = 0; | |
maple.mastery = .65; | |
} | |
} | |
void Form1::legendarySpear_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->legendarySpear->Value > 0) | |
mobpdr= floor(Convert::ToDouble(this->mobPDR->Value)-(Convert::ToDouble(this->mobPDR->Value)*(Convert::ToDouble(this->legendarySpear->Value)/100))); | |
else | |
mobpdr = Convert::ToDouble(this->mobPDR->Value); | |
} | |
void Form1::ishtarRing_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->ishtarRing->Value > 0) | |
maple.skill = 80 + Convert::ToInt32(this->ishtarRing->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::advFAMerc_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advFAMerc->Value > 0) | |
maple.paAttack = 5 + ceil(Convert::ToDouble(this->advFAMerc->Value)/2); | |
else | |
maple.paAttack = 0; | |
} | |
void Form1::ancientWarding_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->ancientWarding->Value > 0) | |
maple.skillDmg3 = Convert::ToDouble(this->ancientWarding->Value)/100; | |
else | |
maple.skillDmg3 = 0; | |
} | |
void Form1::mercSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mercSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->mercSubmit->Text = "Press Calculator Tab"; | |
this->groupBox18->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->mercSubmit->Text = "Submit"; | |
this->groupBox18->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Wild Hunters | |
void Form1::whEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->whEnable->Checked) { | |
maple.name = "Wild Hunter"; | |
maple.mastery += .5; | |
maple.psAttack += .2; | |
this->groupBox15->Enabled = false; | |
this->groupBox19->Visible = true; | |
this->groupBox19->Enabled = true; | |
this->pSharpEyes->Enabled = false; | |
this->whSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
this->tabControl4->TabPages[1]->Enabled = false; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.psAttack -= .2; | |
this->whSubmit->Text = "Submit"; | |
this->tabControl4->TabPages[1]->Enabled = true; | |
this->pSharpEyes->Enabled = true; | |
this->groupBox15->Enabled = true; | |
this->groupBox19->Visible = false; | |
this->whSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->whExpert->Value = 0; | |
this->wildInstinct->Value = 0; | |
this->wildArrow->Value = 0; | |
this->advFAWH->Value = 0; | |
this->sharpEyesWH->Value = 0; | |
} | |
} | |
void Form1::whExpert_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->whExpert->Value > 0) { | |
maple.padX = Convert::ToInt32(this->whExpert->Value); | |
maple.mastery = .70 + ceil(Convert::ToDouble(this->whExpert->Value)/2)/100; | |
} | |
else { | |
maple.padX = 0; | |
maple.mastery = .65; | |
} | |
} | |
void Form1::wildInstinct_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->wildInstinct->Value > 0) | |
maple.cIgnore = 2* Convert::ToDouble(this->wildInstinct->Value)/100; | |
else | |
maple.cIgnore = 0; | |
} | |
void Form1::wildArrow_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->wildArrow->Value > 0) | |
maple.skill = 180 + 3*Convert::ToInt32(this->wildArrow->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::sharpEyesWH_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->sharpEyesWH->Value > 0) | |
maple.criticalMax = 1.5 + (Convert::ToDouble(this->sharpEyesWH->Value))/100; | |
else | |
maple.criticalMax = 1.5; | |
} | |
void Form1::advFAWH_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->advFAWH->Value > 0) | |
maple.paAttack = 5 + ceil(Convert::ToDouble(this->advFAWH->Value)/2); | |
else | |
maple.paAttack = 0; | |
} | |
void Form1::whSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->whSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->whSubmit->Text = "Press Calculator Tab"; | |
this->groupBox19->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->whSubmit->Text = "Submit"; | |
this->groupBox19->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Night Lord | |
void Form1::nlEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->nlEnable->Checked) { | |
maple.name = "Night Lord"; | |
maple.mastery += .5; | |
this->groupBox20->Enabled = false; | |
this->groupBox21->Visible = true; | |
this->groupBox21->Enabled = true; | |
this->nlSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
this->groupBox20->Enabled = true; | |
this->groupBox21->Visible = false; | |
this->nlSubmit->Visible = false; | |
this->nlSubmit->Text = "Submit"; | |
this->progressBar1->Value -= 20; | |
this->starExpert->Value = 0; | |
this->purgeArea->Value = 0; | |
this->quadThrow->Value = 0; | |
this->darkSerenity->Value = 0; | |
} | |
} | |
void Form1::starExpert_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->starExpert->Value > 0) { | |
maple.padX = Convert::ToInt32(this->starExpert->Value); | |
maple.mastery = .70 + ceil(Convert::ToDouble(this->starExpert->Value)/2)/100; | |
} | |
else { | |
maple.padX = 0; | |
maple.mastery = .65; | |
} | |
} | |
void Form1::purgeArea_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->purgeArea->Value > 0) | |
mobpdr= floor(Convert::ToDouble(this->mobPDR->Value)-(Convert::ToDouble(this->mobPDR->Value)*(Convert::ToDouble(this->purgeArea->Value)/100))); | |
else | |
mobpdr = Convert::ToDouble(this->mobPDR->Value); | |
} | |
void Form1::quadThrow_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->quadThrow->Value > 0) | |
maple.skill = 173 + 4*Convert::ToInt32(this->quadThrow->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::darkSerenity_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->darkSerenity->Value > 0) { | |
maple.cIgnore = Convert::ToDouble(this->darkSerenity->Value)/100; | |
maple.sAttack = 10 + Convert::ToInt32(this->darkSerenity->Value)/100; | |
} | |
else { | |
maple.cIgnore = 0; | |
maple.sAttack = 0; | |
} | |
} | |
void Form1::nlSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->nlSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->nlSubmit->Text = "Press Calculator Tab"; | |
this->groupBox21->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->nlSubmit->Text = "Submit"; | |
this->groupBox21->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Shadowers | |
void Form1::shadEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->shadEnable->Checked) { | |
maple.name = "Shadower"; | |
maple.mastery += .5; | |
maple.cAttack += 30; | |
this->groupBox20->Enabled = false; | |
this->groupBox22->Visible = true; | |
this->shadSubmit->Visible = true; | |
this->groupBox22->Enabled = true; | |
this->tabControl5->TabPages[2]->Enabled = false; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.cAttack -= 30; | |
this->groupBox20->Enabled = true; | |
this->groupBox22->Visible = false; | |
this->shadSubmit->Visible = false; | |
this->shadSubmit->Text = "Submit"; | |
this->tabControl5->TabPages[2]->Enabled = true; | |
this->progressBar1->Value -= 20; | |
this->meEnable->Checked = false; | |
this->nateEnable->Checked = false; | |
this->bStepEnable->Checked = false; | |
this->daggerExpert->Value = 0; | |
this->shadowInstinct->Value = 0; | |
this->killPoints->Value = 0; | |
this->assassinate->Value = 0; | |
this->smokescreen->Value = 0; | |
this->bStep->Value = 0; | |
} | |
} | |
void Form1::meEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->meEnable->Checked) { | |
this->assassinate->Value = 0; | |
this->bStep->Value = 0; | |
maple.skill = 297; | |
} | |
else { | |
maple.skill = 0; | |
} | |
} | |
void Form1::nateEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->nateEnable->Checked) { | |
this->bStep->Value = 0; | |
this->bStep->Enabled = false; | |
this->assassinate->Enabled = true; | |
} | |
else { | |
this->assassinate->Enabled = false; | |
this->assassinate->Value = 0; | |
} | |
} | |
void Form1::bStepEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bStepEnable->Checked) { | |
this->assassinate->Value = 0; | |
this->assassinate->Enabled = false; | |
this->bStep->Enabled = true; | |
} | |
else { | |
this->bStep->Enabled = false; | |
this->bStep->Value = 0; | |
} | |
} | |
void Form1::daggerExpert_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->daggerExpert->Value > 0) { | |
maple.padX = Convert::ToInt32(this->daggerExpert->Value); | |
maple.mastery = .75 + ceil(Convert::ToDouble(this->daggerExpert->Value)/2)/100; | |
} | |
else { | |
maple.padX = 0; | |
maple.mastery = .70; | |
} | |
} | |
void Form1::shadowInstinct_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->shadowInstinct->Value > 0) { | |
maple.sAttack = Convert::ToInt32(this->shadowInstinct->Value) + (6 * Convert::ToInt32(this->killPoints->Value)); | |
maple.cIgnore = Convert::ToDouble(this->shadowInstinct->Value)/100; | |
} | |
else { | |
maple.sAttack = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::smokescreen_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->smokescreen->Value > 0) | |
maple.criticalMax = 1.5 + (2*ceil(Convert::ToDouble(this->smokescreen->Value)/3))/100; | |
else | |
maple.criticalMax = 1.5; | |
} | |
void Form1::killPoints_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->shadowInstinct->Value > 0) { | |
maple.sAttack = Convert::ToInt32(this->shadowInstinct->Value) + (6 * Convert::ToInt32(this->killPoints->Value)); | |
maple.cIgnore = Convert::ToDouble(this->shadowInstinct->Value)/100; | |
} | |
else if(this->shadowInstinct->Value == 0) { | |
maple.sAttack = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::bStep_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->bStep->Value > 0) | |
maple.skill = 590 + 4*Convert::ToInt32(this->bStep->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::darkSight_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->darkSight->Checked) { | |
this->darkSight->Text = "Enabled"; | |
} | |
else { | |
this->darkSight->Text = "Disabled"; | |
} | |
} | |
void Form1::assassinate_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->assassinate->Value > 0) { | |
if((this->darkSight->Checked) && (this->killPoints->Value == 5)) | |
maple.skill = 500+4*Convert::ToInt32(this->assassinate->Value)+(30+4*Convert::ToInt32(this->assassinate->Value))+150; | |
else if((this->darkSight->Checked) && (this->killPoints->Value < 5)) | |
maple.skill = 500+4*Convert::ToInt32(this->assassinate->Value)+(30+4*Convert::ToInt32(this->assassinate->Value)); | |
else | |
maple.skill = 500+4*Convert::ToInt32(this->assassinate->Value); | |
} | |
else | |
maple.skill = 0; | |
} | |
void Form1::shadSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->shadSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->shadSubmit->Text = "Press Calculator Tab"; | |
this->groupBox22->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->shadSubmit->Text = "Submit"; | |
this->groupBox22->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Dual Blader | |
void Form1::dbEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->dbEnable->Checked) { | |
maple.name = "Dual Blader"; | |
maple.mastery += .5; | |
maple.cAttack += 30; | |
this->groupBox23->Enabled = true; | |
this->groupBox20->Enabled = false; | |
this->groupBox23->Visible = true; | |
this->dbSubmit->Visible = true; | |
this->tabControl5->TabPages[1]->Enabled = false; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.cAttack -= 30; | |
this->dbSubmit->Text = "Submit"; | |
this->groupBox20->Enabled = true; | |
this->groupBox23->Visible = false; | |
this->dbSubmit->Visible = false; | |
this->tabControl5->TabPages[1]->Enabled = true; | |
this->progressBar1->Value -= 20; | |
this->fcEnable->Checked = false; | |
this->finalCut->Value = 0; | |
this->thorns->Value = 0; | |
this->phantomBlow->Value = 0; | |
} | |
} | |
void Form1::fcEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->fcEnable->Checked) { | |
this->fcEnable->Text = "Enabled"; | |
this->finalCut->Enabled = true; | |
} | |
else { | |
this->fcEnable->Text = "Disabled"; | |
this->finalCut->Enabled = false; | |
this->finalCut->Value = 0; | |
} | |
} | |
void Form1::finalCut_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->finalCut->Value > 0) | |
maple.cDmgInc = .4 + Convert::ToDouble(this->finalCut->Value)/100; | |
else | |
maple.cDmgInc = 0; | |
} | |
void Form1::thorns_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->thorns->Value > 0) | |
maple.sAttack = Convert::ToInt32(this->thorns->Value); | |
else | |
maple.sAttack = Convert::ToInt32(this->thorns->Value); | |
} | |
void Form1::phantomBlow_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->phantomBlow->Value > 0) { | |
maple.skill = 75 + Convert::ToInt32(this->phantomBlow->Value); | |
maple.cIgnore = .05 + ceil(Convert::ToDouble(this->phantomBlow->Value)/3)/100; | |
} | |
else { | |
maple.skill = 0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::dbSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->dbSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->dbSubmit->Text = "Press Calculator Tab"; | |
this->groupBox23->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->dbSubmit->Text = "Submit"; | |
this->groupBox23->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Buccaneer | |
void Form1::buccEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->buccEnable->Checked) { | |
maple.name = "Buccaneer"; | |
maple.mastery += .5; | |
maple.cAttack += 30; | |
this->groupBox24->Enabled = false; | |
this->groupBox25->Visible = true; | |
this->groupBox25->Enabled = true; | |
this->buccSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.cAttack -= 30; | |
this->buccSubmit->Text = "Submit"; | |
this->groupBox24->Enabled = true; | |
this->groupBox25->Visible = false; | |
this->buccSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->revengeBEnable->Checked = false; | |
this->pirateRevengeB->Value = 0; | |
this->fistEnrage->Value = 0; | |
this->viperisation->Value = 0; | |
this->energyEnable->Checked = false; | |
this->diceEnableBucc->Checked = false; | |
this->ddiceEnableBucc->Checked = false; | |
} | |
} | |
void Form1::revengeBEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->revengeBEnable->Checked) { | |
this->revengeBEnable->Text = "Enabled"; | |
this->pirateRevengeB->Enabled = true; | |
} | |
else { | |
this->revengeBEnable->Text = "Enabled"; | |
this->pirateRevengeB->Enabled = false; | |
this->pirateRevengeB->Value = 0; | |
} | |
} | |
void Form1::pirateRevengeB_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pirateRevengeB->Value > 0) | |
maple.skillDmg2 = .05 + Convert::ToDouble(this->pirateRevengeB->Value)/100; | |
else | |
maple.skillDmg2 = 0.0; | |
} | |
void Form1::fistEnrage_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->fistEnrage->Value > 0) | |
maple.skill = 190 + 2*Convert::ToInt32(this->fistEnrage->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::energyEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->energyEnable->Checked) { | |
maple.cAttack += 30; | |
this->energyEnable->Text = "Enabled"; | |
} | |
else { | |
maple.cAttack -= 30; | |
this->energyEnable->Text = "Disabled"; | |
} | |
} | |
void Form1::viperisation_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->viperisation->Value > 0) { | |
maple.mastery = .75 + ceil(Convert::ToDouble(this->viperisation->Value)/2)/100; | |
maple.psAttack = ceil(Convert::ToDouble(this->viperisation->Value)/2)/100; | |
} | |
else { | |
maple.mastery = .70; | |
maple.psAttack = 0.0; | |
} | |
} | |
void Form1::ddiceEnableBucc_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->ddiceEnableBucc->Checked) { | |
maple.skillDmg3 = .3; | |
this->diceEnableBucc->Checked = false; | |
this->diceEnableBucc->Enabled = false; | |
this->ddiceEnableBucc->Text = "Enabled"; | |
} | |
else { | |
maple.skillDmg3 = 0; | |
this->diceEnableBucc->Checked = false; | |
this->diceEnableBucc->Enabled = true; | |
this->ddiceEnableBucc->Text = "Disabled"; | |
} | |
} | |
void Form1::diceEnableBucc_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->diceEnableBucc->Checked) { | |
maple.skillDmg3 = .2; | |
this->ddiceEnableBucc->Checked = false; | |
this->ddiceEnableBucc->Enabled = false; | |
this->diceEnableBucc->Text = "Enabled"; | |
} | |
else { | |
maple.skillDmg3 = 0; | |
this->ddiceEnableBucc->Checked = false; | |
this->ddiceEnableBucc->Enabled = true; | |
this->diceEnableBucc->Text = "Disabled"; | |
} | |
} | |
void Form1::buccSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->buccSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->buccSubmit->Text = "Press Calculator Tab"; | |
this->groupBox25->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->buccSubmit->Text = "Submit"; | |
this->groupBox25->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Corsair | |
void Form1::sairEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->sairEnable->Checked) { | |
maple.name = "Corsair"; | |
maple.mastery += .5; | |
maple.cAttack += 30; | |
maple.cIgnore += .2; | |
this->groupBox24->Enabled = false; | |
this->groupBox26->Visible = true; | |
this->groupBox26->Enabled = true; | |
this->sairSubmit->Visible = true; | |
this->tabControl6->TabPages[3]->Enabled = false; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.cAttack -= 30; | |
this->sairSubmit->Text = "Submit"; | |
maple.cIgnore -= .2; | |
this->groupBox24->Enabled = true; | |
this->groupBox26->Visible = false; | |
this->sairSubmit->Visible = false; | |
this->tabControl6->TabPages[3]->Enabled = true; | |
this->progressBar1->Value -= 20; | |
this->rapidFire->Value = 0; | |
this->pirateRevengeCo->Value = 0; | |
this->contAimEnable->Checked = false; | |
this->revengeEnableCo->Checked = false; | |
this->contAiming->Value = 0; | |
this->pirateStyle->Value = 0; | |
this->gunExpert->Value = 0; | |
this->numericUpDown2->Value = 0; | |
this->diceEnableCorsair->Checked = false; | |
this->ddiceEnableCorsair->Checked = false; | |
} | |
} | |
void Form1::rapidFire_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->rapidFire->Value > 0) | |
maple.skill = 240 + 3*Convert::ToInt32(this->rapidFire->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::pirateRevengeCo_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pirateRevengeCo->Value > 0) | |
maple.cDmgInc = .05 + Convert::ToDouble(this->pirateRevengeCo->Value)/100; | |
else | |
maple.cDmgInc = .0; | |
} | |
void Form1::revengeEnableCo_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->revengeEnableCo->Checked) { | |
this->revengeEnableCo->Text = "Enabled"; | |
this->pirateRevengeCo->Enabled = true; | |
} | |
else { | |
this->revengeEnableCo->Text = "Enabled"; | |
this->pirateRevengeCo->Enabled = false; | |
this->pirateRevengeCo->Value = 0; | |
} | |
} | |
void Form1::contAimEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->contAimEnable->Checked) { | |
this->contAimEnable->Text = "Enabled"; | |
this->contAiming->Enabled = true; | |
} | |
else { | |
this->contAimEnable->Text = "Disabled"; | |
this->contAiming->Enabled = false; | |
this->contAiming->Value = 0; | |
} | |
} | |
void Form1::contAiming_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->contAiming->Value > 0) { | |
maple.cDmgInc2 = Convert::ToDouble(this->contAiming->Value)/100; | |
} | |
else | |
maple.cDmgInc2 = 0.0; | |
} | |
void Form1::pirateStyle_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pirateStyle->Value > 0) | |
maple.skillDmg2 = 1.0 + Convert::ToDouble(this->pirateStyle->Value)/100; | |
else | |
maple.skillDmg2 = 1.0; | |
} | |
void Form1::gunExpert_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->gunExpert->Value > 0) | |
maple.mastery = .70 + ceil(Convert::ToDouble(this->gunExpert->Value)/2)/100; | |
else | |
maple.mastery = .65; | |
} | |
void Form1::numericUpDown2_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->numericUpDown2->Value > 0) { | |
maple.sAttack = 3*Convert::ToInt32(this->numericUpDown2->Value); | |
} | |
else | |
maple.sAttack = 0; | |
} | |
void Form1::diceEnableCorsair_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->diceEnableCorsair->Checked) { | |
maple.skillDmg3 = .2; | |
this->ddiceEnableCorsair->Checked = false; | |
this->ddiceEnableCorsair->Enabled = false; | |
this->diceEnableCorsair->Text = "Enabled"; | |
} | |
else { | |
maple.skillDmg3 = 0; | |
this->ddiceEnableCorsair->Checked = false; | |
this->ddiceEnableCorsair->Enabled = true; | |
this->diceEnableCorsair->Text = "Disabled"; | |
} | |
} | |
void Form1::ddiceEnableCorsair_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->ddiceEnableCorsair->Checked) { | |
maple.skillDmg3 = .3; | |
this->diceEnableCorsair->Checked = false; | |
this->diceEnableCorsair->Enabled = false; | |
this->ddiceEnableCorsair->Text = "Enabled"; | |
} | |
else { | |
maple.skillDmg3 = 0; | |
this->diceEnableCorsair->Checked = false; | |
this->diceEnableCorsair->Enabled = true; | |
this->ddiceEnableCorsair->Text = "Disabled"; | |
} | |
} | |
void Form1::sairSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->sairSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->sairSubmit->Text = "Press Calculator Tab"; | |
this->groupBox26->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->sairSubmit->Text = "Submit"; | |
this->groupBox26->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Cannoneer | |
void Form1::cannonEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->cannonEnable->Checked) { | |
maple.name = "Cannoneer"; | |
maple.mastery += .5; | |
maple.padX += 50; | |
this->groupBox24->Enabled = false; | |
this->groupBox27->Visible = true; | |
this->groupBox27->Enabled = true; | |
this->pMonkey->Enabled = false; | |
this->pMonkey->Checked = false; | |
this->cannonSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.padX -= 50; | |
this->cannonSubmit->Text = "Submit"; | |
this->groupBox24->Enabled = true; | |
this->pMonkey->Enabled = true; | |
this->groupBox27->Visible = false; | |
this->cannonSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->cannonBuster->Value = 0; | |
this->monkeyMagic->Value = 0; | |
this->overburn->Value = 0; | |
this->diceEnableCannon->Checked = false; | |
this->ddiceEnableCannon->Checked = false; | |
} | |
} | |
void Form1::cannonBuster_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->cannonBuster->Value > 0) | |
maple.skill = 195 + 3*Convert::ToInt32(this->cannonBuster->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::monkeyMagic_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->monkeyMagic->Value > 0) { | |
maple.skillPrimary = 25 + floor(Convert::ToDouble(this->monkeyMagic->Value)/2); | |
maple.skillSecondary = 25 + floor(Convert::ToDouble(this->monkeyMagic->Value)/2); | |
} | |
else if ((this->monkeyMagic->Value == 0)&&(this->cannonEnable->Checked)) { | |
maple.skillPrimary = 20; | |
maple.skillSecondary = 20; | |
} | |
else { | |
maple.skillPrimary = 0; | |
maple.skillSecondary = 0; | |
} | |
} | |
void Form1::overburn_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->overburn->Value > 0) { | |
maple.skillDmg = 1.1 + Convert::ToDouble(this->overburn->Value)/100; | |
maple.cIgnore = .05 + floor(Convert::ToDouble(this->overburn->Value)/2)/100; | |
} | |
else { | |
maple.skillDmg = 1.0; | |
maple.cIgnore = 0; | |
} | |
} | |
void Form1::diceEnableCannon_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->diceEnableCannon->Checked) { | |
maple.skillDmg3 = .2; | |
this->ddiceEnableCannon->Checked = false; | |
this->ddiceEnableCannon->Enabled = false; | |
this->diceEnableCannon->Text = "Enabled"; | |
} | |
else { | |
maple.skillDmg3 = 0; | |
this->ddiceEnableCannon->Checked = false; | |
this->ddiceEnableCannon->Enabled = true; | |
this->diceEnableCannon->Text = "Disabled"; | |
} | |
} | |
void Form1::ddiceEnableCannon_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->ddiceEnableCannon->Checked) { | |
maple.skillDmg3 = .3; | |
this->diceEnableCannon->Checked = false; | |
this->diceEnableCannon->Enabled = false; | |
this->ddiceEnableCannon->Text = "Enabled"; | |
} | |
else { | |
maple.skillDmg3 = 0; | |
this->diceEnableCannon->Checked = false; | |
this->diceEnableCannon->Enabled = true; | |
this->ddiceEnableCannon->Text = "Disabled"; | |
} | |
} | |
void Form1::cannonSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->cannonSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->cannonSubmit->Text = "Press Calculator Tab"; | |
this->groupBox27->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->cannonSubmit->Text = "Submit"; | |
this->groupBox27->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Mechanic | |
void Form1::mechEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mechEnable->Checked) { | |
maple.name = "Mechanic"; | |
maple.mastery += .5; | |
maple.padX = 20; | |
maple.cIgnore += .2; | |
this->groupBox24->Enabled = false; | |
this->tabControl6->TabPages[1]->Enabled = false; | |
this->groupBox28->Visible = true; | |
this->groupBox28->Enabled = true; | |
this->mechSubmit->Visible = true; | |
this->progressBar1->Value += 20; | |
} | |
else { | |
maple.name = "Mapler"; | |
maple.mastery -= .5; | |
maple.padX = 0; | |
maple.cIgnore -= .2; | |
this->groupBox24->Enabled = true; | |
this->mechSubmit->Text = "Submit"; | |
this->tabControl6->TabPages[1]->Enabled = true; | |
this->groupBox28->Visible = false; | |
this->mechSubmit->Visible = false; | |
this->progressBar1->Value -= 20; | |
this->extremeMech->Value = 0; | |
this->missileTank->Value = 0; | |
this->tankEnable->Checked = false; | |
this->siegeEnable->Checked = false; | |
this->ampEnable->Checked = false; | |
this->amplifier->Value = 0; | |
this->diceEnableMech->Checked = false; | |
} | |
} | |
void Form1::extremeMech_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->extremeMech->Value > 0) { | |
maple.paAttack = 25 + ceil(Convert::ToDouble(this->extremeMech->Value)/2); | |
maple.mastery = .70 + ceil(Convert::ToDouble(this->extremeMech->Value)/2)/100; | |
} | |
else { | |
maple.paAttack = 20; | |
maple.mastery = .65; | |
} | |
} | |
void Form1::missileTank_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->missileTank->Value > 0) | |
maple.skill = 90 + Convert::ToInt32(this->missileTank->Value); | |
else | |
maple.skill = 0; | |
} | |
void Form1::tankEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->tankEnable->Checked) { | |
this->missileTank->Enabled = true; | |
} | |
else { | |
this->missileTank->Enabled = false; | |
this->missileTank->Value = 0; | |
} | |
} | |
void Form1::siegeEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->siegeEnable->Checked) { | |
maple.skill = floor(115*1.3); | |
} | |
else | |
maple.skill = 0; | |
} | |
void Form1::amplifier_ValueChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->amplifier->Value > 0) | |
maple.cDmgInc = Convert::ToDouble(this->amplifier->Value)/100; | |
else | |
maple.cDmgInc = 0; | |
} | |
void Form1::ampEnable_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->ampEnable->Checked) { | |
this->ampEnable->Text = "Enabled"; | |
this->amplifier->Enabled = true; | |
} | |
else { | |
this->ampEnable->Text = "Disabled"; | |
this->amplifier->Enabled = false; | |
this->amplifier->Value = 0; | |
} | |
} | |
void Form1::diceEnableMech_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->diceEnableMech->Checked) { | |
maple.skillDmg3 = .2; | |
this->diceEnableMech->Text = "Enabled"; | |
} | |
else { | |
maple.skillDmg3 = 0; | |
this->diceEnableMech->Text = "Disabled"; | |
} | |
} | |
void Form1::mechSubmit_Click(System::Object^ sender, System::EventArgs^ e) { | |
if(this->mechSubmit->Text == "Submit") { | |
this->progressBar1->Value = 100; | |
this->mechSubmit->Text = "Press Calculator Tab"; | |
this->groupBox28->Enabled = false; | |
this->tabControl1->TabPages[6]->Enabled = true; | |
} | |
else { | |
this->progressBar1->Value = 50; | |
this->mechSubmit->Text = "Submit"; | |
this->groupBox28->Enabled = true; | |
this->tabControl1->TabPages[6]->Enabled = false; | |
} | |
} | |
//Party Skills | |
void Form1::pRage_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pRage->Checked) | |
maple.cAttack += 30; | |
else | |
maple.cAttack -= 30; | |
} | |
void Form1::pSharpEyes_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pSharpEyes->Checked) { | |
maple.criticalMax += .3; | |
this->dSharpEyes->Enabled = true; | |
this->pSharpEyes->Text = "Enabled"; | |
} | |
else { | |
maple.criticalMax -= .3; | |
this->dSharpEyes->Enabled = false; | |
this->dSharpEyes->Checked = false; | |
this->pSharpEyes->Text = "Disabled"; | |
} | |
} | |
void Form1::dSharpEyes_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->dSharpEyes->Checked) | |
maple.criticalMax -= .15; | |
else | |
maple.criticalMax += .15; | |
} | |
void Form1::pAdvBless_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pAdvBless->Checked) { | |
maple.cAttack += 30; | |
this->dAdvBless->Enabled = true; | |
this->pAdvBless->Text = "Enabled"; | |
} | |
else { | |
maple.cAttack -= 30; | |
this->dAdvBless->Enabled = false; | |
this->dAdvBless->Checked = false; | |
this->pAdvBless->Text = "Disabled"; | |
} | |
} | |
void Form1::dAdvBless_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->dAdvBless->Checked) | |
maple.cAttack -= 10; | |
else | |
maple.cAttack += 10; | |
} | |
void Form1::pAdvAura_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pAdvAura->Checked) { | |
maple.psAttack += .2; | |
this->pAdvAura->Text = "Enabled"; | |
} | |
else { | |
maple.psAttack -= .2; | |
this->pAdvAura->Text = "Disabled"; | |
} | |
} | |
void Form1::pMonkey_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->pMonkey->Checked) { | |
maple.skillPrimary += 40; | |
maple.skillSecondary += 40; | |
this->pMonkey->Text = "Enabled"; | |
} | |
else { | |
maple.skillPrimary -= 40; | |
maple.skillSecondary -= 40; | |
this->pMonkey->Text = "Disabled"; | |
} | |
} | |
void Form1::magicOnyx_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->magicOnyx->Checked) | |
maple.cAttack += 100; | |
else | |
maple.cAttack -= 100; | |
} | |
void Form1::swissCheese_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->swissCheese->Checked) | |
maple.cAttack += 220; | |
else | |
maple.cAttack -= 220; | |
} | |
void Form1::meditation_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->meditation->Checked) | |
maple.cAttack += 30; | |
else | |
maple.cAttack -= 30; | |
} | |
void Form1::energizer_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->energizer->Checked) | |
maple.cAttack += 25; | |
else | |
maple.cAttack -= 25; | |
} | |
void Form1::weaponOnyx_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->weaponOnyx->Checked) | |
maple.cAttack += 100; | |
else | |
maple.cAttack -= 100; | |
} | |
void Form1::warriorElixir_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->warriorElixir->Checked) | |
maple.cAttack += 12; | |
else | |
maple.cAttack -= 12; | |
} | |
void Form1::echo_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->echo->Checked) | |
maple.psAttack += .04; | |
else | |
maple.psAttack -= .04; | |
} | |
void Form1::legendPotion_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { | |
if(this->legendPotion->Checked) | |
maple.cAttack += 30; | |
else | |
maple.cAttack -= 30; | |
} | |
//Calculate Button. | |
void Form1::button1_Click(System::Object^ sender, System::EventArgs^ e) { | |
if((maple.name == "Corsair") || (maple.name == "Mechanic")) { | |
int unbuffedMin = floor(floor((ceil(maple.multiplier*(4*maple.tSecondary+maple.tPrimary))*maple.cleanAttack()/100)*maple.mastery)*maple.skillDmg); | |
int unbuffedMax = floor((ceil(maple.multiplier*(4*maple.tSecondary+maple.tPrimary))*maple.cleanAttack()/100)*maple.skillDmg); | |
int buffedMin = floor((floor(Math::Ceiling(maple.multiplier*(4*maple.Secondary()+maple.Primary()))*Math::Floor(maple.attack())/100)*maple.mastery)*maple.skillDmg*(maple.skillDmg2+maple.skillDmg3)); | |
int buffedMax = floor((Math::Ceiling(maple.multiplier*(4*maple.Secondary()+maple.Primary()))*Math::Floor(maple.attack())/100)*maple.skillDmg*(maple.skillDmg2+maple.skillDmg3)); | |
double PDRate; | |
if(maple.ignorepdr() >= 1.0) | |
PDRate = 1; | |
else | |
PDRate = (1-(mobpdr/100))+((mobpdr/100)*(maple.ignorepdr())); | |
int mobDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int mobDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.criticalMax * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int bossDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * maple.dmginc()); | |
int bossDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.dmginc() * maple.criticalMax); | |
this->textBox1->Text = Convert::ToString(unbuffedMin); | |
this->textBox2->Text = Convert::ToString(unbuffedMax); | |
this->textBox3->Text = Convert::ToString(buffedMin); | |
this->textBox4->Text = Convert::ToString(buffedMax); | |
this->textBox5->Text = Convert::ToString(mobDmgMin); | |
this->textBox6->Text = Convert::ToString(mobDmgMax); | |
this->textBox7->Text = Convert::ToString(bossDmgMin); | |
this->textBox8->Text = Convert::ToString(bossDmgMax); | |
} | |
else if((maple.name == "Shadower")||(maple.name == "Dual Blader")) { | |
int unbuffedMin = floor(floor((ceil(maple.multiplier*(4*maple.tPrimary+maple.tSecondary+maple.tThird))*maple.cleanAttack()/100)*maple.mastery)*maple.skillDmg); | |
int unbuffedMax = floor((ceil(maple.multiplier*(4*maple.tPrimary+maple.tSecondary+maple.tThird))*maple.cleanAttack()/100)*maple.skillDmg); | |
int buffedMin = floor((floor(Math::Ceiling(maple.multiplier*(4*maple.Primary()+maple.Secondary()+maple.Tertiary()))*Math::Floor(maple.attack())/100)*maple.mastery)*maple.skillDmg*(maple.skillDmg2+maple.skillDmg3)); | |
int buffedMax = floor((Math::Ceiling(maple.multiplier*(4*maple.Primary()+maple.Secondary()+maple.Tertiary()))*Math::Floor(maple.attack())/100)*maple.skillDmg*(maple.skillDmg2+maple.skillDmg3)); | |
double PDRate; | |
if(maple.ignorepdr() >= 1.0) | |
PDRate = 1; | |
else | |
PDRate = (1-(mobpdr/100))+((mobpdr/100)*(maple.ignorepdr())); | |
int mobDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int mobDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.criticalMax * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int bossDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * maple.dmginc()); | |
int bossDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.dmginc() * maple.criticalMax); | |
this->textBox1->Text = Convert::ToString(unbuffedMin); | |
this->textBox2->Text = Convert::ToString(unbuffedMax); | |
this->textBox3->Text = Convert::ToString(buffedMin); | |
this->textBox4->Text = Convert::ToString(buffedMax); | |
this->textBox5->Text = Convert::ToString(mobDmgMin); | |
this->textBox6->Text = Convert::ToString(mobDmgMax); | |
this->textBox7->Text = Convert::ToString(bossDmgMin); | |
this->textBox8->Text = Convert::ToString(bossDmgMax); | |
} | |
else { | |
int unbuffedMin = floor(floor((ceil(maple.multiplier*(4*maple.tPrimary+maple.tSecondary))*maple.cleanAttack()/100)*maple.mastery)*maple.skillDmg); | |
int unbuffedMax = floor((ceil(maple.multiplier*(4*maple.tPrimary+maple.tSecondary))*maple.cleanAttack()/100)*maple.skillDmg); | |
int buffedMin = floor((floor(Math::Ceiling(maple.multiplier*(4*maple.Primary()+maple.Secondary()))*Math::Floor(maple.attack())/100)*maple.mastery)*maple.skillDmg*(maple.skillDmg2+maple.skillDmg3)); | |
int buffedMax = floor((Math::Ceiling(maple.multiplier*(4*maple.Primary()+maple.Secondary()))*Math::Floor(maple.attack())/100)*maple.skillDmg*(maple.skillDmg2+maple.skillDmg3)); | |
double PDRate; | |
if(maple.ignorepdr() >= 1.0) | |
PDRate = 1; | |
else | |
PDRate = (1-(mobpdr/100))+((mobpdr/100)*(maple.ignorepdr())); | |
int mobDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int mobDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.criticalMax * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int bossDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * maple.dmginc()); | |
int bossDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.dmginc() * maple.criticalMax); | |
this->textBox1->Text = Convert::ToString(unbuffedMin); | |
this->textBox2->Text = Convert::ToString(unbuffedMax); | |
this->textBox3->Text = Convert::ToString(buffedMin); | |
this->textBox4->Text = Convert::ToString(buffedMax); | |
this->textBox5->Text = Convert::ToString(mobDmgMin); | |
this->textBox6->Text = Convert::ToString(mobDmgMax); | |
this->textBox7->Text = Convert::ToString(bossDmgMin); | |
this->textBox8->Text = Convert::ToString(bossDmgMax); | |
} | |
} | |
//Reset Button | |
void Form1::reset_Click(System::Object^ sender, System::EventArgs^ e) { | |
maple.reset(); | |
if(this->warriorSelect->Checked) { | |
this->archerSelect->Checked = true; | |
this->Timer->Enabled = true; | |
this->basePrimary->Value = 4; | |
this->baseSecondary->Value = 4; | |
this->baseThird->Value = 4; | |
this->totalPrimary->Value = 4; | |
this->totalThird->Value = 4; | |
this->totalSecondary->Value = 4; | |
this->primaryPercent->Value = 0; | |
this->secondaryPercent->Value = 0; | |
this->thirdPercent->Value = 0; | |
this->weaponAttack->Value = 0; | |
this->ignorePDR->Value = 0; | |
this->bossDmg->Value = 0; | |
this->numericUpDown1->Value = 0; | |
this->mwLevel->Value = 0; | |
this->mobPDR->Value = 0; | |
this->pRage->Checked = false; | |
this->pSharpEyes->Checked = false; | |
this->dSharpEyes->Checked = false; | |
this->pAdvBless->Checked = false; | |
this->dAdvBless->Checked = false; | |
this->pAdvAura->Checked = false; | |
this->pMonkey->Checked = false; | |
this->magicOnyx->Checked = false; | |
this->swissCheese->Checked = false; | |
this->meditation->Checked = false; | |
this->energizer->Checked = false; | |
this->weaponOnyx->Checked = false; | |
this->warriorElixir->Checked = false; | |
this->echo->Checked = false; | |
this->legendPotion->Checked = false; | |
this->textBox1->Text = ""; | |
this->textBox2->Text = ""; | |
this->textBox3->Text = ""; | |
this->textBox4->Text = ""; | |
this->textBox5->Text = ""; | |
this->textBox6->Text = ""; | |
this->textBox7->Text = ""; | |
this->textBox8->Text = ""; | |
} | |
else { | |
this->warriorSelect->Checked = true; | |
this->basePrimary->Value = 4; | |
this->baseSecondary->Value = 4; | |
this->baseThird->Value = 4; | |
this->totalPrimary->Value = 4; | |
this->totalThird->Value = 4; | |
this->totalSecondary->Value = 4; | |
this->primaryPercent->Value = 0; | |
this->secondaryPercent->Value = 0; | |
this->thirdPercent->Value = 0; | |
this->weaponAttack->Value = 0; | |
this->ignorePDR->Value = 0; | |
this->bossDmg->Value = 0; | |
this->numericUpDown1->Value = 0; | |
this->mwLevel->Value = 0; | |
this->mobPDR->Value = 0; | |
this->pRage->Checked = false; | |
this->pSharpEyes->Checked = false; | |
this->dSharpEyes->Checked = false; | |
this->pAdvBless->Checked = false; | |
this->dAdvBless->Checked = false; | |
this->pAdvAura->Checked = false; | |
this->pMonkey->Checked = false; | |
this->magicOnyx->Checked = false; | |
this->swissCheese->Checked = false; | |
this->meditation->Checked = false; | |
this->energizer->Checked = false; | |
this->weaponOnyx->Checked = false; | |
this->warriorElixir->Checked = false; | |
this->echo->Checked = false; | |
this->legendPotion->Checked = false; | |
this->textBox1->Text = ""; | |
this->textBox2->Text = ""; | |
this->textBox3->Text = ""; | |
this->textBox4->Text = ""; | |
this->textBox5->Text = ""; | |
this->textBox6->Text = ""; | |
this->textBox7->Text = ""; | |
this->textBox8->Text = ""; | |
} | |
} | |
//Debug mode | |
void Form1::button2_Click(System::Object^ sender, System::EventArgs^ e) { | |
int unbuffedMin = floor(((maple.multiplier*(4*maple.tPrimary+maple.tSecondary+maple.tThird)*maple.cleanAttack())/100)*maple.mastery*maple.skillDmg); | |
int unbuffedMax = floor(((maple.multiplier*(4*maple.tPrimary+maple.tSecondary+maple.tThird)*maple.cleanAttack())/100)*maple.skillDmg); | |
int buffedMin = floor(((maple.multiplier*(4*maple.Primary()+maple.Secondary()+maple.Tertiary())*maple.attack())/100)*maple.mastery*(maple.skillDmg*maple.skillDmg2*maple.skillDmg3)); | |
int buffedMax = floor(((maple.multiplier*(4*maple.Primary()+maple.Secondary()+maple.Tertiary())*maple.attack())/100)*(maple.skillDmg*maple.skillDmg2*maple.skillDmg3)); | |
double PDRate; | |
if(maple.ignorepdr() >= 1.0) | |
PDRate = 1; | |
else | |
PDRate = (1-(mobpdr/100))+((mobpdr/100)*(maple.ignorepdr())); | |
int mobDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int mobDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.criticalMax * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int bossDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * maple.dmginc()); | |
int bossDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.dmginc() * maple.criticalMax); | |
if(maple.name == "Night Lord") { | |
int unbuffedMin = floor(((maple.multiplier*(4*maple.tPrimary+maple.tSecondary)*maple.cleanAttack())/100)*maple.mastery*maple.skillDmg); | |
int unbuffedMax = floor(((maple.multiplier*(4*maple.tPrimary+maple.tSecondary)*maple.cleanAttack())/100)*maple.skillDmg); | |
int buffedMin = floor(((maple.multiplier*(4*maple.Primary()+maple.Secondary())*maple.attack())/100)*maple.mastery*(maple.skillDmg*maple.skillDmg2*maple.skillDmg3)); | |
int buffedMax = floor(((maple.multiplier*(4*maple.Primary()+maple.Secondary())*maple.attack())/100)*(maple.skillDmg*maple.skillDmg2*maple.skillDmg3)); | |
double PDRate; | |
if(maple.ignorepdr() >= 1.0) | |
PDRate = 1; | |
else | |
PDRate = (1-(mobpdr/100))+((mobpdr/100)*(maple.ignorepdr())); | |
int mobDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int mobDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.criticalMax * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int bossDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * maple.dmginc()); | |
int bossDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.dmginc() * maple.criticalMax); | |
} | |
else if((maple.name == "Corsair") || (maple.name == "Mechanic")) { | |
int unbuffedMin = floor(((maple.multiplier*(4*maple.tSecondary+maple.tPrimary)*maple.cleanAttack())/100)*maple.mastery*maple.skillDmg); | |
int unbuffedMax = floor(((maple.multiplier*(4*maple.tSecondary+maple.tPrimary)*maple.cleanAttack())/100)*maple.skillDmg); | |
int buffedMin = floor(((maple.multiplier*(4*maple.Secondary()+maple.Primary())*maple.attack())/100)*maple.mastery*(maple.skillDmg*maple.skillDmg2*maple.skillDmg3)); | |
int buffedMax = floor(((maple.multiplier*(4*maple.Secondary()+maple.Primary())*maple.attack())/100)*(maple.skillDmg*maple.skillDmg2*maple.skillDmg3)); | |
double PDRate; | |
if(maple.ignorepdr() >= 1.0) | |
PDRate = 1; | |
else | |
PDRate = (1-(mobpdr/100))+((mobpdr/100)*(maple.ignorepdr())); | |
int mobDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int mobDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.criticalMax * (1.0+maple.cDmgInc+maple.cDmgInc2+maple.cDmgInc3)); | |
int bossDmgMin = floor(buffedMin * maple.skillPercent() * PDRate * maple.dmginc()); | |
int bossDmgMax = floor(buffedMax * maple.skillPercent() * PDRate * maple.dmginc() * maple.criticalMax); | |
} | |
this->textBox9->Text = Convert::ToString(maple.bPrimary); | |
this->textBox10->Text = Convert::ToString(maple.bSecondary); | |
this->textBox11->Text = Convert::ToString(maple.bThird); | |
this->textBox12->Text = Convert::ToString(maple.tPrimary); | |
this->textBox13->Text = Convert::ToString(maple.tSecondary); | |
this->textBox14->Text = Convert::ToString(maple.tThird); | |
this->textBox15->Text = Convert::ToString(maple.ePrimary()); | |
this->textBox16->Text = Convert::ToString(maple.eSecondary()); | |
this->textBox17->Text = Convert::ToString(maple.eThird()); | |
this->textBox18->Text = Convert::ToString(maple.Primary()); | |
this->textBox19->Text = Convert::ToString(maple.Secondary()); | |
this->textBox20->Text = Convert::ToString(maple.Tertiary()); | |
this->textBox21->Text = Convert::ToString(maple.attack()); | |
this->textBox22->Text = Convert::ToString(maple.cleanAttack()); | |
this->textBox23->Text = Convert::ToString(maple.ignorepdr()); | |
this->textBox24->Text = Convert::ToString(mobpdr); | |
this->textBox25->Text = Convert::ToString(maple.skillPercent()); | |
this->textBox26->Text = Convert::ToString(maple.criticalMax); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment