Code:
p.frames.animateInterfaceId(p, %%%%, &&&, 2);
%%%% = Animation id
&&& = Which interface
Here's an example...
Code:
p.frames.animateInterfaceId(p, 9847, 241, 2);
Animating the chatbox interface 241, with the id 9847 (Happy kind of talking).
You have to find the animation ids yourself though.
Here's the method for frames
Code:
public void animateInterfaceId(Player p, int emoteId, int interfaceId, int childId) {
if (p == null || p.stream == null || p.disconnected[0]) {
return;
}
p.stream.createFrame(245);
p.stream.writeWordBigEndian(interfaceId);
p.stream.writeWordBigEndian(childId);
p.stream.writeWord(emoteId);
}