PDA

View Full Version : [317]How to change Combatexp[317]



thirkle
July 27th, 2010, 17:41
Hello.

Today i am teaching you on how to change your combatexp for some people that do not know:D
Please do not flame as this tutorial only help people that do not know how to change, if you know, please don't flame
This tutorial is basic

File Modified : Client.java

Tested : Most of the source in the RS2 317.

Open your client.java

Ctrl+f and Find


combatexp



and you will see something like this


if (UseBow || UseCrossBow || UseRing) {
TotalExp = (double)(400*hitDiff);
TotalExp = (double)(TotalExp*CombatExpRate);
addSkillXP((int)(TotalExp), 4);
} else if (FightType != 3) {
TotalExp = (double)(400*hitDiff);
TotalExp = (double)(TotalExp*CombatExpRate);
addSkillXP((int)(TotalExp), SkillID);
} else {
TotalExp = (double)(400*hitDiff);
TotalExp = (double)(TotalExp*CombatExpRate);
addSkillXP((int)(TotalExp), playerAttack);
addSkillXP((int)(TotalExp), playerDefence);
addSkillXP((int)(TotalExp), playerStrength);
}
TotalExp = (double)(400*hitDiff);
TotalExp = (double)(TotalExp*CombatExpRate);
addSkillXP((int)(TotalExp), playerHitpoints);



Now what to change?
You saw this?


TotalExp = (double)(400*hitDiff);

Change the 400 to your exp that you want:D

If i want to change the exp to 500, it should be like this.


if (UseBow || UseCrossBow || UseRing) {
TotalExp = (double)(500*hitDiff);
TotalExp = (double)(TotalExp*CombatExpRate);
addSkillXP((int)(TotalExp), 4);
} else if (FightType != 3) {
TotalExp = (double)(500*hitDiff);
TotalExp = (double)(TotalExp*CombatExpRate);
addSkillXP((int)(TotalExp), SkillID);
} else {
TotalExp = (double)(500*hitDiff);
TotalExp = (double)(TotalExp*CombatExpRate);
addSkillXP((int)(TotalExp), playerAttack);
addSkillXP((int)(TotalExp), playerDefence);
addSkillXP((int)(TotalExp), playerStrength);
}
TotalExp = (double)(500*hitDiff);
TotalExp = (double)(TotalExp*CombatExpRate);
addSkillXP((int)(TotalExp), playerHitpoints);

Hope this help those who do not know.

Sunny
July 31st, 2010, 19:58
can you explain a lil more? btw mine looked like thos..

inCombat();
if (FightType == 1) // Accurate
{
TotalExp = (double)(250 * hitDiff);
TotalExp = (double)(TotalExp * CombatExpRate);
addSkillXP((int)(TotalExp), playerAttack);
}
else if (FightType == 2) // Agressive
{
TotalExp = (double)(250 * hitDiff);
TotalExp = (double)(TotalExp * CombatExpRate);
addSkillXP((int)(TotalExp), playerStrength);
}
else if (FightType == 4) // Defensive
{
TotalExp = (double)(250 * hitDiff);
TotalExp = (double)(TotalExp * CombatExpRate);
addSkillXP((int)(TotalExp), playerDefence);
}
else if (FightType == 3) // Controlled
{
TotalExp = (double)(200 * hitDiff);
TotalExp = (double)(TotalExp * CombatExpRate);
addSkillXP((int)(TotalExp), playerStrength);
}
TotalExp = (double)(150 * hitDiff);
TotalExp = (double)(TotalExp * CombatExpRate);
addSkillXP((int)(TotalExp), playerHitpoints);
actionTimer = 7;
server.npcHandler.npcs[attacknpc].animNumber = server.npcHandler.GetNPCBlockAnim(
server.npcHandler.npcs[attacknpc].npcType);
}

so i just changed the "TotalExp = (double)(250 * hitDiff)"
right? is that what your supposed to do? or did i just mess mine up lol...

__вoɴĸαz__
August 1st, 2010, 02:39
Hes banned -.-

Dylan54333
August 5th, 2010, 22:26
can you explain a lil more? btw mine looked like thos..


so i just changed the "TotalExp = (double)(250 * hitDiff)"
right? is that what your supposed to do? or did i just mess mine up lol...

anywhere you see 250 you change to your desired exp amount. so yours is 250 atm and if you wanted it to500 you would change all thw 250's to 500.

lolz
August 10th, 2010, 21:39
thank you for this tut :)

Trey
August 11th, 2010, 01:10
This doesn't really teach anything. Moved.

Fenway`
August 11th, 2010, 01:16
add in that this does is multiplies the number u chose and by whatever you hit.

Kingdomkey01
August 21st, 2010, 00:53
Load the integer from a text file so it's easier to do, every time you change the XP from a class file, you have to compile and restart, which can get really annoying.

Fenway`
August 21st, 2010, 05:49
Load the integer from a text file so it's easier to do, every time you change the XP from a class file, you have to compile and restart, which can get really annoying.

:O?

elaborate

nmanpure
August 23rd, 2010, 01:41
5.2 is omost exactly like real runescape

almagesrnubs
October 28th, 2010, 20:33
Great guide for people who need help on this, Would rep if i could. :)