How to make it so noobs cannot mass train in dummies r00m!~!~!
Before you start flameing me and all that shet you guys do this is a noob friendly tut! REMEMBER IF YOU DO NOT GOT ANY THING NICE TO SAY PLEASE DO NOT SAY ANYTHING AT ALL. i AM ASKING NICELY. tHANK-YOU.
Purpose: make it so noobs cannot mass while training, how to change howmuch expiernce noobs on your server get while dummy training.
Difficulty: 1/10
Assumed Knowledge: how to read and c+p
Server base: pimpscape, 1337scape, satan's isle, etc.
Classes Modified: client.java
Ok first to change the exp rate for attack do this-
search for
case 823:
yo will see sutmin like this-
Code:
case 823:
if (actionTimer == 0) {
sendMessage("You punch the dummy and recieve attack xp!");
setAnimation(0x326);
addSkillXP((1000*playerLevel[0]), 0); (this is what skill they get and howmuch of it they get change it to your desired amount)
addSkillXP((1000*playerLevel[3]), 3); (this is what skill they get and howmuch of it they get change it to your desired amount)
actionTimer = 50;
}
break;
ok now do that for the rest of your training objects-
Code:
Hay Bales,search for: case 229:
Code:
case 299:
if(GoodDistance2(absX, absY, objectX, objectY, 3)) {
if(actionTimer == 0)
{
sendMessage("Searching the mysterious hay you gain defence xp.");
addSkillXP((1000*playerLevel[1]), 1);
addSkillXP((1000*playerLevel[3]), 3);
actionTimer = 50;
setAnimation(0x320);
updateRequired = true;
appearanceUpdateRequired = true;
}
}
break;
and last are doors, search for: case 1531:
Code:
Code:
case 1531:
if(GoodDistance2(absX, absY, objectX, objectY, 3)) {
if(actionTimer == 0)
{
sendMessage("You hit the door and get some strength xp.");
actionTimer = 50;
setAnimation(0x326);
addSkillXP((900*playerLevel[2]), 2);
addSkillXP((900*playerLevel[3]), 3);
updateRequired = true;
appearanceUpdateRequired = true;
}
}
Now if you are wondering how to change the secounds between the number of times they can click the dummy.
For changeing that change this part-
Code:
case 823:
if (actionTimer == 0) {
sendMessage("You punch the dummy and recieve attack xp!");
setAnimation(0x326);
addSkillXP((1000*playerLevel[0]), 0);
addSkillXP((1000*playerLevel[3]), 3);
actionTimer = 50; (change the action time number to what number you desire, i prefer 130 so noobs can't mass)
}
break;
FEEL FREE TO R3P++ ME