|
| Adding Working Potions - Combat Included | |
| | Author | Message |
---|
purez Member
Number of posts : 33 Registration date : 2008-06-07
| Subject: Adding Working Potions - Combat Included Fri Jul 11, 2008 3:07 pm | |
| Search client.java for - Code:
-
public int SkillID = 0; Under that put in this - Code:
-
public boolean superRestore = false; public int abc; public int cba; public int aaa; public int abc2; public int combatPotTimer = 0; public boolean combatPot = true; public int strPotTimer = 0; public boolean strPot = true; public int attPotTimer = 0; public boolean attPot = true; public int defPotTimer = 0; public boolean defPot = true; public int agilPotTimer = 0; public boolean agilPot = true; public int fishPotTimer = 0; public boolean fishPot = true; public int rangePotTimer = 0; public boolean rangePot = true; public int magePotTimer = 0; public boolean magePot = true; public int PoisonDelay = 9999999; public int PoisonClear = 0; public int Poison = 0; If you get a error saying something about this line public boolean superRestore = false; than dont put in the boolean cause you might already have it declared. Next Search client.java for this - Code:
-
public boolean CheckForSkillUse3(int Item, int Slot) { You Should see this - Code:
-
public boolean CheckForSkillUse3(int Item, int Slot) { boolean GoOn = true; switch (Item) { Below the switch (Item) { line put in these code - Code:
-
case 161: // super str (1) strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(161, GetItemSlot(161), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 159: strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(159, GetItemSlot(159), 1); addItem(161, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 10703: //--------------------------combat potion by justin/crakaman combatPot = true; combatPotTimer = 90; if(actionTimer == 0) { actionTimer = 10000000; playerLevel[2] += 5; playerLevel[0] += 5; playerLevel[1] += 5; playerLevel[4] += 5; playerLevel[6] += 5; sendFrame126(""+playerLevel[2]+"", 4006); sendFrame126(""+playerLevel[0]+"", 4004); sendFrame126(""+playerLevel[1]+"", 4010); sendFrame126(""+playerLevel[4]+"", 4014); sendFrame126(""+playerLevel[6]+"", 4008); deleteItem(10703, GetItemSlot(10703), 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; //jb } else { //jb sendMessage("Please wait to use combat potion again"); } break; case 10702: //--------------------------combat potion combatPot = true; combatPotTimer = 90; if(actionTimer == 0) { actionTimer = 10000000; playerLevel[2] += 5; playerLevel[0] += 5; playerLevel[1] += 5; playerLevel[4] += 5; playerLevel[6] += 5; sendFrame126(""+playerLevel[2]+"", 4006); sendFrame126(""+playerLevel[0]+"", 4004); sendFrame126(""+playerLevel[1]+"", 4010); sendFrame126(""+playerLevel[4]+"", 4014); sendFrame126(""+playerLevel[6]+"", 4008); deleteItem(10702, GetItemSlot(10702), 1); addItem(10703, 1);//jb updateRequired = true; appearanceUpdateRequired = true; GoOn = false; } else { sendMessage("Please wait to use combat potion again"); } break; case 10701: //--------------------------combat potion combatPot = true; combatPotTimer = 90; if(actionTimer == 0) { actionTimer = 10000000; playerLevel[2] += 5; playerLevel[0] += 5; playerLevel[1] += 5; playerLevel[4] += 5; playerLevel[6] += 5; sendFrame126(""+playerLevel[2]+"", 4006); sendFrame126(""+playerLevel[0]+"", 4004); sendFrame126(""+playerLevel[1]+"", 4010); sendFrame126(""+playerLevel[4]+"", 4014); sendFrame126(""+playerLevel[6]+"", 4008); deleteItem(10701, GetItemSlot(10701), 1); addItem(10702, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; } else {//crakaman sendMessage("Please wait to use combat potion again"); } break; case 10700: //--------------------------combat potion combatPot = true; //jb combatPotTimer = 90; if(actionTimer == 0) { actionTimer = 10000000; playerLevel[2] += 5; playerLevel[0] += 5; playerLevel[1] += 5; playerLevel[4] += 5; playerLevel[6] += 5; sendFrame126(""+playerLevel[2]+"", 4006); sendFrame126(""+playerLevel[0]+"", 4004); sendFrame126(""+playerLevel[1]+"", 4010); sendFrame126(""+playerLevel[4]+"", 4014); sendFrame126(""+playerLevel[6]+"", 4008); deleteItem(10700, GetItemSlot(10700), 1); addItem(10701, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; } else { sendMessage("Please wait to use combat potion again"); } //crakaman break; case 157: strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(157, GetItemSlot(157), 1); addItem(159, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 2440: strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(2440, GetItemSlot(2440), 1); addItem(157, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 113: //strength pot strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(113, GetItemSlot(113), 1); addItem(115, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 115: strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(115, GetItemSlot(115), 1); addItem(117, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 117: strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(117, GetItemSlot(117), 1); addItem(119, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 119: strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(119, GetItemSlot(119), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; Congrats You should now have workign potions for the ones I Have their. Thanks Purez,Wangdoodle, Justin, Crakaman Ps I take all rep for this. I made every single one of these (I spent a week making every single pot work. Counting all new pots
Last edited by purez on Fri Jul 11, 2008 3:20 pm; edited 1 time in total | |
| | | purez Member
Number of posts : 33 Registration date : 2008-06-07
| Subject: Re: Adding Working Potions - Combat Included Fri Jul 11, 2008 3:13 pm | |
| Part 2: Explaining Some of the code - Code:
-
case 119: // Case Number strPot = true; //Saying Yes they are drinking the pot strPotTimer = 90; //The Amount of time Until the str Pot runs out abc = getLevelForXP(playerXP[2]); //Making the abc The same unit as your str level cba = abc / 10; //Making the cba unit the number that your str level is divided by 10 aaa = cba / 2; //Making aaa unit the cba unit Divided by 2 abc2 = aaa + cba; //Making the abc2 unit = aaa + cba unit if (abc2 <= 1) { //If Statement for if the person has 1 str or below 1 str abc2 = 2; //Making them only go up one str level if they are 1 str or below } playerLevel[2] = getLevelForXP(playerXP[2]); //Getting the xp for str level playerLevel[2] += abc2; //Adding the abc2 unit to your base str level sendFrame126(""+playerLevel[2]+"", 4006); //Sending the frame to your stat list to show your that str level deleteItem(119, GetItemSlot(119), 1); //Deleting the pot addItem(229, 1); //Adding in the empty vial updateRequired = true; //Updating your characters stuff appearanceUpdateRequired = true; //Updating your appearence so your not stuck in one place GoOn = false; //Stoping the code so you dont keep drinking the potion. break; Above in the // Is me explaining each code. Im using the base case for a str pot (1) and I explain it above. Thanks Crakaman/Purez/Wangdoodle/Justin | |
| | | purez Member
Number of posts : 33 Registration date : 2008-06-07
| Subject: Re: Adding Working Potions - Combat Included Fri Jul 11, 2008 3:17 pm | |
| Part 3: Adding more pots Forgot to add these to the first post - Code:
-
case 2446: //Antipoison(4) PoisonDelay = 9999999; sendMessage("You drink a dose of the antipoison."); deleteItem(2446, getItemSlot(2446), 1); addItem(175, 1); break;
case 175: //Antipoison(3) PoisonDelay = 9999999; sendMessage("You drink a dose of the antipoison."); deleteItem(175, getItemSlot(175), 1); addItem(177, 1); break; case 177: //Antipoison(2) PoisonDelay = 9999999; sendMessage("You drink a dose of the antipoison."); deleteItem(177, getItemSlot(177), 1); addItem(179, 1); break; case 179: //Antipoison(1) PoisonDelay = 9999999; sendMessage("You drink the last dose of the antipoison."); deleteItem(179, getItemSlot(179), 1); break; case 2448: //superAntipoison(4) Poisoned = false; sendMessage("You drink a dose of the super anti-poison."); deleteItem(2448, GetItemSlot(2448), 1); addItem(181, 1); break; case 181: //superAntipoison(3) Poisoned = false; sendMessage("You drink a dose of the super anti-poison."); deleteItem(181, GetItemSlot(181), 1); addItem(183, 1); break; case 183: //superAntipoison(2) Poisoned = false; sendMessage("You drink a dose of the super anti-poison."); deleteItem(183, GetItemSlot(183), 1); addItem(184, 1); break; case 185: //superAntipoison(1) Poisoned = false; sendMessage("You drink the last dose of the super anti-poison."); deleteItem(185, GetItemSlot(185), 1); addItem(229, 1); break; case 5943: //extra-strongAntidote(4) Poisoned = false; sendMessage("You drink a dose of the extra strong antidote"); deleteItem(5943, GetItemSlot(5943), 1); addItem(5945, 1); break; case 5945: //extra-strongAntidote(3) Poisoned = false; sendMessage("You drink a dose of the extra strong antidote"); deleteItem(5945, GetItemSlot(5945), 1); addItem(5945, 1); break; case 5947: //extra-strongAntidote(2) Poisoned = false; sendMessage("You drink a dose of the extra strong antidote"); deleteItem(5947, GetItemSlot(5947), 1); addItem(5949, 1); break; case 5949: //extra-strongAntidote(1) Poisoned = false; sendMessage("You drink the last dose of the extra strong antidote"); deleteItem(5949, GetItemSlot(5949), 1); addItem(229, 1); break; case 5952: //super-strongAntidote(4) Poisoned = false; sendMessage("You drink a dose of the super strong antidote"); deleteItem(5952, GetItemSlot(5952), 1); addItem(5954, 1); break; case 5954: //super-strongAntidote(3) Poisoned = false; sendMessage("You drink a dose of the super strong antidote"); deleteItem(5954, GetItemSlot(5954), 1); addItem(5956, 1); break; case 5956: //super-strongAntidote(2) Poisoned = false; sendMessage("You drink a dose of the super strong antidote"); deleteItem(5956, GetItemSlot(5956), 1); addItem(5958, 1); break; case 5958: //super-strongAntidote(1) Poisoned = false; sendMessage("You drink the last dose of the super strong antidote"); deleteItem(5958, GetItemSlot(5958), 1); addItem(229, 1); break; case 131: // restore pot restorePot(); sendMessage("You drink the last dose of the restore potion"); deleteItem(131, GetItemSlot(131), 1); addItem(229, 1); break; case 129: // restore pot restorePot(); sendMessage("You drink a dose of the restore potion"); deleteItem(129, GetItemSlot(129), 1); addItem(131, 1); break; case 127: // restore pot restorePot(); sendMessage("You drink a dose of the restore potion"); deleteItem(127, GetItemSlot(127), 1); addItem(129, 1); break; case 2430: // restore pot restorePot(); sendMessage("You drink a dose of the restore potion"); deleteItem(2430, GetItemSlot(2430), 1); addItem(127, 1); break; case 3030: // super restore pot restorePot(); sendMessage("You drink the last dose of the super restore potion"); deleteItem(3030, GetItemSlot(3030), 1); addItem(229, 1); superRestore = true; break; case 3028: // super restore pot restorePot(); sendMessage("You drink a dose of the super restore potion"); deleteItem(3028, GetItemSlot(3028), 1); addItem(3030, 1); superRestore = true; break; case 3026: // super restore pot restorePot(); sendMessage("You drink a dose of the super restore potion"); deleteItem(3026, GetItemSlot(3026), 1); addItem(3028, 1); superRestore = true; break; case 3024: // super restore pot restorePot(); sendMessage("You drink a dose of the super restore potion"); deleteItem(3024, GetItemSlot(3024), 1); addItem(3026, 1); superRestore = true; break; case 155: // fish pot (1) fishPot = true; fishPotTimer = 120; playerLevel[10] = getLevelForXP(playerXP[10]); playerLevel[10] += 4; sendFrame126(""+playerLevel[10]+"", 4032); deleteItem(155, GetItemSlot(155), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 153: // fish pot (2) fishPot = true; fishPotTimer = 120; playerLevel[10] = getLevelForXP(playerXP[10]); playerLevel[10] += 4; sendFrame126(""+playerLevel[10]+"", 4032); deleteItem(153, GetItemSlot(153), 1); addItem(155, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 151: // fish pot (3) fishPot = true; fishPotTimer = 120; playerLevel[10] = getLevelForXP(playerXP[16]); playerLevel[10] += 4; sendFrame126(""+playerLevel[10]+"", 4032); deleteItem(151, GetItemSlot(151), 1); addItem(153, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 2438: // fish pot (4) fishPot = true; fishPotTimer = 120; playerLevel[10] = getLevelForXP(playerXP[10]); playerLevel[10] += 4; sendFrame126(""+playerLevel[10]+"", 4032); deleteItem(2438, GetItemSlot(2438), 1); addItem(151, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 3038: // agil pot (1) agilPot = true; agilPotTimer = 90; playerLevel[16] = getLevelForXP(playerXP[16]); playerLevel[16] += 4; sendFrame126(""+playerLevel[16]+"", 4018); deleteItem(3038, GetItemSlot(3038), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 3036: // agil pot (2) agilPot = true; agilPotTimer = 90; playerLevel[16] = getLevelForXP(playerXP[16]); playerLevel[16] += 4; sendFrame126(""+playerLevel[16]+"", 4018); deleteItem(3036, GetItemSlot(3036), 1); addItem(3038, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 3034: // agil pot (3) agilPot = true; agilPotTimer = 90; playerLevel[16] = getLevelForXP(playerXP[16]); playerLevel[16] += 4; sendFrame126(""+playerLevel[16]+"", 4018); deleteItem(3034, GetItemSlot(3034), 1); addItem(3036, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 3032: // agil pot (4) agilPot = true; agilPotTimer = 90; playerLevel[16] = getLevelForXP(playerXP[16]); playerLevel[16] += 4; sendFrame126(""+playerLevel[16]+"", 4018); deleteItem(3032, GetItemSlot(3032), 1); addItem(3034, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 143: // pray pot (1) playerLevel[5] += 19; if (playerLevel[5] > getLevelForXP(playerXP[5])) { playerLevel[5] = getLevelForXP(playerXP[5]); } sendFrame126(""+playerLevel[5]+"", 4012); deleteItem(143, GetItemSlot(143), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break;
You add all that below all this coding - Code:
-
case 119: strPot = true; strPotTimer = 90; abc = getLevelForXP(playerXP[2]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[2] = getLevelForXP(playerXP[2]); playerLevel[2] += abc2; sendFrame126(""+playerLevel[2]+"", 4006); deleteItem(119, GetItemSlot(119), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; So right after the break; you press enter than paste it in. | |
| | | purez Member
Number of posts : 33 Registration date : 2008-06-07
| Subject: Re: Adding Working Potions - Combat Included Fri Jul 11, 2008 3:18 pm | |
| Message to big So Heres rest of the pots - Code:
-
case 141: // pray pot (2) playerLevel[5] += 19; if (playerLevel[5] > getLevelForXP(playerXP[5])) { playerLevel[5] = getLevelForXP(playerXP[5]); } sendFrame126(""+playerLevel[5]+"", 4012); deleteItem(141, GetItemSlot(141), 1); addItem(143, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 139: // pray pot (3) playerLevel[5] += 19; if (playerLevel[5] > getLevelForXP(playerXP[5])) { playerLevel[5] = getLevelForXP(playerXP[5]); } sendFrame126(""+playerLevel[5]+"", 4012); deleteItem(139, GetItemSlot(139), 1); addItem(141, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 2434: // pray pot (4) playerLevel[5] += 19; if (playerLevel[5] > getLevelForXP(playerXP[5])) { playerLevel[5] = getLevelForXP(playerXP[5]); } sendFrame126(""+playerLevel[5]+"", 4012); deleteItem(2434, GetItemSlot(2434), 1); addItem(139, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 167: // super defence pot (1) defPot = true; defPotTimer = 90; abc = getLevelForXP(playerXP[1]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[1] = getLevelForXP(playerXP[1]); playerLevel[1] += abc2; sendFrame126(""+playerLevel[1]+"", 4008); deleteItem(167, GetItemSlot(167), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 165: // super defence pot (2) defPot = true; defPotTimer = 90; abc = getLevelForXP(playerXP[1]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[1] = getLevelForXP(playerXP[1]); playerLevel[1] += abc2; sendFrame126(""+playerLevel[1]+"", 4008); deleteItem(165, GetItemSlot(165), 1); addItem(167, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 163: // super defence pot (3) defPot = true; defPotTimer = 90; abc = getLevelForXP(playerXP[1]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[1] = getLevelForXP(playerXP[1]); playerLevel[1] += abc2; sendFrame126(""+playerLevel[1]+"", 4008); deleteItem(163, GetItemSlot(163), 1); addItem(165, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 2442: // super defence pot (4) defPot = true; defPotTimer = 90; abc = getLevelForXP(playerXP[1]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[1] = getLevelForXP(playerXP[1]); playerLevel[1] += abc2; sendFrame126(""+playerLevel[1]+"", 4008); deleteItem(2442, GetItemSlot(2442), 1); addItem(163, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 137: // defence pot (1) defPot = true; defPotTimer = 90; abc = getLevelForXP(playerXP[1]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[1] = getLevelForXP(playerXP[1]); playerLevel[1] += abc2; sendFrame126(""+playerLevel[1]+"", 4008); deleteItem(137, GetItemSlot(137), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 135: // defence pot (2) defPot = true; defPotTimer = 90; abc = getLevelForXP(playerXP[1]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[1] = getLevelForXP(playerXP[1]); playerLevel[1] += abc2; sendFrame126(""+playerLevel[1]+"", 4008); deleteItem(135, GetItemSlot(135), 1); addItem(137, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 133: // defence pot (3) defPot = true; defPotTimer = 90; abc = getLevelForXP(playerXP[1]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[1] = getLevelForXP(playerXP[1]); playerLevel[1] += abc2; sendFrame126(""+playerLevel[1]+"", 4008); deleteItem(133, GetItemSlot(133), 1); addItem(135, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 2432: // defence pot (4) defPot = true; defPotTimer = 90; abc = getLevelForXP(playerXP[1]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[1] = getLevelForXP(playerXP[1]); playerLevel[1] += abc2; sendFrame126(""+playerLevel[1]+"", 4008); deleteItem(2432, GetItemSlot(2432), 1); addItem(133, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 3046: // mage pot (1) magePot = true; magePotTimer = 90; playerLevel[6] = getLevelForXP(playerXP[6]); playerLevel[6] += 4; sendFrame126(""+playerLevel[6]+"", 4014); deleteItem(3046, GetItemSlot(3046), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 3044: // mage pot (2) magePot = true; magePotTimer = 90; playerLevel[6] = getLevelForXP(playerXP[6]); playerLevel[6] += 4; sendFrame126(""+playerLevel[6]+"", 4014); deleteItem(3044, GetItemSlot(3044), 1); addItem(3046, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 3042: // mage pot (3) magePot = true; magePotTimer = 90; playerLevel[6] = getLevelForXP(playerXP[6]); playerLevel[6] += 4; sendFrame126(""+playerLevel[6]+"", 4014); deleteItem(3042, GetItemSlot(3042), 1); addItem(3044, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 3040: // mage pot (4) magePot = true; magePotTimer = 90; playerLevel[6] = getLevelForXP(playerXP[6]); playerLevel[6] += 4; sendFrame126(""+playerLevel[6]+"", 4014); deleteItem(3040, GetItemSlot(3040), 1); addItem(3042, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break;
| |
| | | purez Member
Number of posts : 33 Registration date : 2008-06-07
| Subject: Re: Adding Working Potions - Combat Included Fri Jul 11, 2008 3:19 pm | |
| message to big - Code:
-
case 173: // range pot (1) rangePot = true; rangePotTimer = 90; abc = getLevelForXP(playerXP[4]); cba = abc / 10; abc2 = cba + 3; playerLevel[4] = getLevelForXP(playerXP[4]); playerLevel[4] += abc2; sendFrame126(""+playerLevel[6]+"", 4010); deleteItem(173, GetItemSlot(173), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 171: // range pot (2) rangePot = true; rangePotTimer = 90; abc = getLevelForXP(playerXP[4]); cba = abc / 10; abc2 = cba + 3; playerLevel[4] = getLevelForXP(playerXP[4]); playerLevel[4] += abc2; sendFrame126(""+playerLevel[4]+"", 4010); deleteItem(171, GetItemSlot(171), 1); addItem(173, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 169: // range pot (3) rangePot = true; rangePotTimer = 90; abc = getLevelForXP(playerXP[4]); cba = abc / 10; abc2 = cba + 3; playerLevel[4] = getLevelForXP(playerXP[4]); playerLevel[4] += abc2; sendFrame126(""+playerLevel[4]+"", 4010); deleteItem(169, GetItemSlot(169), 1); addItem(171, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 2444: // range pot (4) rangePot = true; rangePotTimer = 90; abc = getLevelForXP(playerXP[4]); cba = abc / 10; abc2 = cba + 3; playerLevel[4] = getLevelForXP(playerXP[4]); playerLevel[4] += abc2; sendFrame126(""+playerLevel[4]+"", 4010); deleteItem(2444, GetItemSlot(2444), 1); addItem(169, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 149: // super attack pot (1) attPot = true; attPotTimer = 90; abc = getLevelForXP(playerXP[0]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[0] = getLevelForXP(playerXP[0]); playerLevel[0] += abc2; sendFrame126(""+playerLevel[0]+"", 4004); deleteItem(149, GetItemSlot(149), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 147: // super attack pot (2) attPot = true; attPotTimer = 90; abc = getLevelForXP(playerXP[0]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[0] = getLevelForXP(playerXP[0]); playerLevel[0] += abc2; sendFrame126(""+playerLevel[0]+"", 4004); deleteItem(147, GetItemSlot(147), 1); addItem(149, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 145: // super attack pot (3) attPot = true; attPotTimer = 90; abc = getLevelForXP(playerXP[0]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[0] = getLevelForXP(playerXP[0]); playerLevel[0] += abc2; sendFrame126(""+playerLevel[0]+"", 4004); deleteItem(145, GetItemSlot(145), 1); addItem(147, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 2436: // super attack pot (4) attPot = true; attPotTimer = 90; abc = getLevelForXP(playerXP[0]); cba = abc / 10; abc2 = cba * 2; if (abc2 <= 1) { abc2 = 2; } playerLevel[0] = getLevelForXP(playerXP[0]); playerLevel[0] += abc2; sendFrame126(""+playerLevel[0]+"", 4004); deleteItem(2436, GetItemSlot(2436), 1); addItem(145, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 125: // attack pot (1) attPot = true; attPotTimer = 90; abc = getLevelForXP(playerXP[0]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[0] = getLevelForXP(playerXP[0]); playerLevel[0] += abc2; sendFrame126(""+playerLevel[0]+"", 4004); deleteItem(125, GetItemSlot(125), 1); addItem(229, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 123: // attack pot (2) attPot = true; attPotTimer = 90; abc = getLevelForXP(playerXP[0]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[0] = getLevelForXP(playerXP[0]); playerLevel[0] += abc2; sendFrame126(""+playerLevel[0]+"", 4004); deleteItem(123, GetItemSlot(123), 1); addItem(125, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 121: // attack pot (3) attPot = true; attPotTimer = 90; abc = getLevelForXP(playerXP[0]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[0] = getLevelForXP(playerXP[0]); playerLevel[0] += abc2; sendFrame126(""+playerLevel[0]+"", 4004); deleteItem(121, GetItemSlot(121), 1); addItem(123, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; case 2428: // attack pot (4) strPot = true; attPotTimer = 90; abc = getLevelForXP(playerXP[0]); cba = abc / 10; aaa = cba / 2; abc2 = aaa + cba; if (abc2 <= 1) { abc2 = 2; } playerLevel[0] = getLevelForXP(playerXP[0]); playerLevel[0] += abc2; sendFrame126(""+playerLevel[0]+"", 4004); deleteItem(2428, GetItemSlot(2428), 1); addItem(121, 1); updateRequired = true; appearanceUpdateRequired = true; GoOn = false; break; | |
| | | W00lf. Global Moderator & Donator
Number of posts : 92 Age : 32 Location : She's 18 Registration date : 2008-05-24
| Subject: Re: Adding Working Potions - Combat Included Fri Jul 11, 2008 5:16 pm | |
| | |
| | | purez Member
Number of posts : 33 Registration date : 2008-06-07
| Subject: Re: Adding Working Potions - Combat Included Sun Jul 13, 2008 10:32 am | |
| | |
| | | Sponsored content
| Subject: Re: Adding Working Potions - Combat Included | |
| |
| | | | Adding Working Potions - Combat Included | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |