Hello,
Well this is my first tut and i havent really seen anyone have this i know everyone knows how to do this but maybe some ppl dont know soo yea here it is
Purpose: so people can know how to get items when u click on a certain object
Difficutly:1/10
Knowledge:Finding, C+P
Server base:Pimpscape (but works for ALL)
Class Modified:Client.java
Open your client.java and search for
You should see this
Code:
if(GoodDistance2(absX, absY, objectX, objectY, 3)) {
if(actionTimer == 0)
{
sendMessage("YOU GET STRENGHT EXP!!!");
actionTimer = 20;
setAnimation(0x326);
addSkillXP((15*playerLevel[2]), 2);
addSkillXP((5*playerLevel[3]), 3);
updateRequired = true;
appearanceUpdateRequired = true;
}
Reaplace that all with this:
Code:
if(GoodDistance2(absX, absY, objectX, objectY, 3)) {
if(actionTimer == 0)
{
sendMessage("YOU GET STRENGHT EXP!!!");
actionTimer = 20;
setAnimation(0x326);
addSkillXP((15*playerLevel[2]), 2);
addSkillXP((5*playerLevel[3]), 3)
addItem(1038,1);
updateRequired = true;
appearanceUpdateRequired = true;
}
In that case we are using a rare which is (1038,1) but you can change it to anything you want.
Now search for:
You will see this:
Code:
if(GoodDistance2(absX, absY, objectX, objectY, 3)) {
if(actionTimer == 0)
{
sendMessage("YOU GET DEFENCE EXP!!!YOU HORSE!");
addSkillXP((15*playerLevel[1]), 1);
addSkillXP((5*playerLevel[18]), 18);
actionTimer = 10;
setAnimation(0x320);
updateRequired = true;
appearanceUpdateRequired = true;
}
}
break;
Replace that all with this:
Code:
if(GoodDistance2(absX, absY, objectX, objectY, 3)) {
if(actionTimer == 0)
{
sendMessage("YOU GET DEFENCE EXP!!!YOU HORSE!");
addSkillXP((15*playerLevel[1]), 1);
addSkillXP((5*playerLevel[18]), 18);
addItem(1038,1);
actionTimer = 10;
setAnimation(0x320);
updateRequired = true;
appearanceUpdateRequired = true;
}
}
break;
again we are using a rare so you change it to anything u want
search for:
You should see this:
Code:
if (actionTimer == 0) {
sendMessage("YOU GET ATTACK EXP!!!");
setAnimation(0x326);
addSkillXP((15*playerLevel[0]), 0);
addSkillXP((5*playerLevel[3]), 3);
actionTimer = 12;
}
break;
Replace that all with this
Code:
if (actionTimer == 0) {
sendMessage("YOU GET ATTACK EXP!!!");
setAnimation(0x326);
addSkillXP((5*playerLevel[0]), 0);
addSkillXP((15*playerLevel[3]), 3);
addItem(1038,1);
actionTimer = 12;
}
break;
Again we are using a rare but as i said you can change it to anythingn you want.
This wasnt leached i used it out of my own source
I really dont mind if you give me rep
all i want is for you guys not to flame
CREDITS:ME
is this good for my first tut? i wouldnt know...