this is not as fancy but its still cool
NPC Code:
// NPC made by Prozac
if (playerenters)
{timeout=.05;}
if (timeout)
{
if (leftmousebutton) {
putexplosion2 3,2,mousex,mousey;
}
timeout=.05;
}
insteat of explosion you can do showimg, lay rupee, putbomb, hitobjecs, .. be creative! heh