purez Member
Number of posts : 33 Registration date : 2008-06-07
| Subject: Adding Working Combat Pot - Some what glitched Fri Jul 11, 2008 3:02 pm | |
| Search client.java for this - Code:
-
public int abc2; Under that put in this - Code:
-
public int combatPotTimer = 0; Than search client.java for this - Code:
-
case 161: Below that line put in this - Code:
-
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 You Need workign potions already to make this work Thanks Purez/Crakaman/Justin/Wangdoodle | |
|
W00lf. Global Moderator & Donator
Number of posts : 92 Age : 32 Location : She's 18 Registration date : 2008-05-24
| Subject: Re: Adding Working Combat Pot - Some what glitched Fri Jul 11, 2008 5:14 pm | |
| Did you code that by urself? | |
|
purez Member
Number of posts : 33 Registration date : 2008-06-07
| Subject: Re: Adding Working Combat Pot - Some what glitched Sun Jul 13, 2008 10:32 am | |
| Yup I did. I can type in the whole 3 pages I have written down to remember certain things if you want lol.
only thing I used from someoen else was the variable names like aaa, abc and stuff from I dont know what server. But I created the all the code besides those names. | |
|
Sponsored content
| Subject: Re: Adding Working Combat Pot - Some what glitched | |
| |
|