Okay this is going to teach you how to add emotions to the emote tabs.
Knowledge: Idk, not that difficult
Time: Only time consuming if you are adding the emotes yourself.
Credits:
Songoty, i think he deserves more than he asked for.
Me
Rob
Cellkyborg
I only added the emotes that are lit up on the emote tab.
Step One
In RsPlayer, search for:
Code:
case ClientPackets.PING_REPLY:
inStream.readOffset += packetSize;
break;
then under it put this -
Code:
case ClientPackets.EMOTE_PRESSED:
int interID2 = inStream.readSize();
int buttID2 = inStream.readSize();
System.out.println("Button pressed: Interface Id -" + interID2 +" Button Id = " + buttID2);
buttonHandler.buttonPressed(interID2, buttID2);
break;
Step Two
Go to ButtonHandler, search for this-
Code:
case 387:
interface387(buttID);
break;
Under it add this-
Code:
case 464:
interface464(buttID);
break;
Step Three
After that search for -
Code:
private void interface182(int ID) {
Which is right under it most likely.
Add this above that or below it -
Code:
private void interface464(int ID) {
switch (ID) {
case 2: // Yes
myPlayer.doAnimation(855, 0);
break;
case 3: // No
myPlayer.doAnimation(856, 0);
break;
case 4: // Bow
myPlayer.doAnimation(858, 0);
break;
case 5: // Angry
myPlayer.doAnimation(859, 0);
break;
case 6: // Think
myPlayer.doAnimation(857, 0);
break;
case 7: // Wave
myPlayer.doAnimation(863, 0);
break;
case 8: // Shrug
myPlayer.doAnimation(2113, 0);
break;
case 9: // Cheer
myPlayer.doAnimation(862, 0);
break;
case 10: // Beckon
myPlayer.doAnimation(864, 0);
break;
case 11: // Laugh
myPlayer.doAnimation(861, 0);
break;
case 12: // Joy Jump
myPlayer.doAnimation(2109, 0);
break;
case 13: // Yawn
myPlayer.doAnimation(2111, 0);
break;
case 14: // Dance
myPlayer.doAnimation(866, 0);
break;
case 15: // Jig
myPlayer.doAnimation(2106, 0);
break;
case 16: // Spin
myPlayer.doAnimation(2107, 0);
break;
case 17: // HeadBang
myPlayer.doAnimation(2108, 0);
break;
case 18: // Cry
myPlayer.doAnimation(860, 0);
break;
case 19: // Blow Kiss
myPlayer.doAnimation(0x558, 0);
break;
case 20: // Panic
myPlayer.doAnimation(2105, 0);
break;
case 21: // Raspberry
myPlayer.doAnimation(2110, 0);
break;
case 22: // Clap
myPlayer.doAnimation(865, 0);
break;
case 23: // Salute
myPlayer.doAnimation(2112, 0);
break;
case 24: // Goblin Bow
myPlayer.doAnimation(0x84F, 0);
break;
case 25: // Goblin Salute
myPlayer.doAnimation(0x850, 0);
break;
case 26: // Glass Box
myPlayer.doAnimation(1131, 0);
break;
case 27: // Climb Rope
myPlayer.doAnimation(1130, 0);
break;
case 28: // Lean
myPlayer.doAnimation(1129, 0);
break;
case 29: // Glass Wall
myPlayer.doAnimation(1128, 0);
break;
case 34: // Zombie Walk
myPlayer.doAnimation(3544, 0);
break;
case 35: // Zombie Dance
myPlayer.doAnimation(3543, 0);
break;
case 37: // Scared
myPlayer.doAnimation(2836, 0);
break;
}
}
