x-x just ask and ignore stupid answers
something like that would be good i guess (does wavy effect when someone touchs the npc)
NPC Code:
if (playertouchsme) {
this.waveangle = 0;
for (this.i=0; this.i<5; this.i+=0.05) {
setfocus playerx+1.5+sin(this.waveangle)*3,playery+2;
this.waveangle += 0.2;
sleep 0.05;
}
resetfocus;
}
I have not tested this but it should work. Change the 'this.waveangle += 0.2' line to some other value to get different waving speed