onEmote1.c
grendel-1.0.0a7/progs/examples/onEmote1.c · 274 B
From the archive grendel-1.0.0a7.zip
Download the archive « Back to the archive contents
require "glib.c"
void onEmoteTarget(external victim, external actor, string arg)
{
int x;
x = random(3);
arg = uppercase(arg);
if (arg == "SNOWBALL" && x == 1)
{
sleep(1);
do("say How dare you!");
do("slap " + target.actor);
}
}