onAct2.c

grendel-1.0.0a7/progs/examples/onAct2.c · 377 B

From the archive grendel-1.0.0a7.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.name + ", how are you today?");
  }

  if(match(uppercase(arg), "*FINE*") == true)
  {
    sleep(1);

    do("say Very well, good luck on your travels");
    do("tip " + target.name);
  }
}

Site Stats

Snippets: 1791
Codebases: 571