onact2.c
progs/examples/onact2.c · 379 B
From the archive grendel-bin-0.4.4.zip
Download the archive « Back to the archive contents
require "glib.c"
void onAct(external ch, external target, string arg)
{
if(match(uppercase(arg), "*HELLO*") == true)
{
sleep(1);
do("say Hello " + target.pname + ", how are you today?");
}
if(match(uppercase(arg), "*FINE*") == true)
{
sleep(1);
do("say Very well, good luck on your travels");
do("tip " + target.pname);
}
}