It was invoked on the player upon touching a primitive Ice Arrow NPC:
PHP Code:
if (playerenters) timeout = 0.05;
if (playertouchsme) {
if (playerdir==2) putleaps 5,x,y;
else {
set icefreeze;
putnpc wiceblock.gif,iceblock.txt,playerx-2/16,playery-7/16;
}
destroy;
}
if (timeout) {
timeout = 0.05;
y-=0.7;
if (y<2) destroy;
}
PHP Code:
if (playerenters) {
if (icefreeze) {
freezeplayer 3;
x = playerx-2/16;
y = playery-7/16;
unset icefreeze;
}
timeout = 3;
}
if (timeout) {
putleaps 5,x+1,y;
putleaps 5,x+1,y+2;
destroy;
}