This is a tutorial for most common 508 servers.
Find "PLAYERWEAPON.JAVA" or "playerweapon.java".
Search :
You will see hopefully:
Code:
return 0x338;
} else if (id == 10887) {
return 5868;
} else if (id == 4755) {
return 1831;
} else if (id == 4734) {
return 2077;
} else if (id == 4726 || weapon.contains("Spear") || weapon.endsWith("halberd") || weapon.contains("Staff") || weapon.contains("staff")) {
return 1210;
} else if (weapon.equals("Abyssal whip")) {
return 1661;
} else if (id == 4153) {
return 1664;
}
return 0x338;
Make it:
Code:
return 0x338;
} else if (id == 12842) {
return 8963;
} else if (id == 10887) {
return 5868;
} else if (id == 4755) {
return 1831;
} else if (id == 4734) {
return 2077;
} else if (id == 4726 || weapon.contains("Spear") || weapon.endsWith("halberd") || weapon.contains("Staff") || weapon.contains("staff")) {
return 1210;
} else if (weapon.equals("Abyssal whip")) {
return 1661;
} else if (id == 4153) {
return 1664;
}
return 0x338;
Now Search:
You will see something like this:
Code:
return 0x333;
} else if (id == 10887) {
return 5867;
} else if (id == 4718) {
return 2064;
} else if (id == 4755) {
return 2060;
} else if (id == 4734) {
return 2076;
} else if (id == 4153) {
Last of all search this:
Outcome:
Code:
return 0x333;
}
public int getStandEmote(int id) {
String weapon = Engine.items.getItemName(id);
if (id == 4718) {
return 2065;
} else if (id == 10887) {
return 5869;
} else if (id == 4755) {
return 2061;
} else if (p.npcType == 6203) {
return 6943;
} else if (p.npcType == 2745) {
return 9274;
} else if (id == 4734) {
return 2074;
} else if (id == 6528 || id == 1319) {
Finally, change it to:
Code:
return 0x333;
}
public int getStandEmote(int id) {
String weapon = Engine.items.getItemName(id);
if (id == 4718) {
return 2065;
} else if (id == 10887) {
return 5869;
} else if (id == 12842) {
return 8963;
} else if (id == 4755) {
return 2061;
} else if (p.npcType == 6203) {
return 6943;
} else if (p.npcType == 2745) {
return 9274;
} else if (id == 4734) {
return 2074;
} else if (id == 6528 || id == 1319) {
Small, simple tutorial.
For more rs-tools, 'thank' Murkforce.