Code-x
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Code-x

Code-x Private Server
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 Adding Working Combat Pot - Some what glitched

Go down 
2 posters
AuthorMessage
purez
Member
Member



Number of posts : 33
Registration date : 2008-06-07

Adding Working Combat Pot - Some what glitched Empty
PostSubject: Adding Working Combat Pot - Some what glitched   Adding Working Combat Pot - Some what glitched Icon_minitimeFri 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
Back to top Go down
W00lf.
Global Moderator & Donator
Global Moderator & Donator
W00lf.


Number of posts : 92
Age : 32
Location : She's 18
Registration date : 2008-05-24

Adding Working Combat Pot - Some what glitched Empty
PostSubject: Re: Adding Working Combat Pot - Some what glitched   Adding Working Combat Pot - Some what glitched Icon_minitimeFri Jul 11, 2008 5:14 pm

Did you code that by urself?
Back to top Go down
https://codex.darkbb.com
purez
Member
Member



Number of posts : 33
Registration date : 2008-06-07

Adding Working Combat Pot - Some what glitched Empty
PostSubject: Re: Adding Working Combat Pot - Some what glitched   Adding Working Combat Pot - Some what glitched Icon_minitimeSun 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.
Back to top Go down
Sponsored content





Adding Working Combat Pot - Some what glitched Empty
PostSubject: Re: Adding Working Combat Pot - Some what glitched   Adding Working Combat Pot - Some what glitched Icon_minitime

Back to top Go down
 
Adding Working Combat Pot - Some what glitched
Back to top 
Page 1 of 1
 Similar topics
-
» Adding Working Potions - Combat Included
» dedi just went down working on getting it back up now
» 126 combat
» Correct Spot to adding attack timers
» Adding A Jail! (nice to lock nubs up for a while)

Permissions in this forum:You cannot reply to topics in this forum
Code-x :: General Chat :: runescape private [TUT] section-
Jump to: