beach.c

final_realms_fluffos_v1/lib/doc/driver/efuns/objects/beach.c · 676 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

/*
   Beach inheritable object for FR OMIQ ... bingle on
*/

inherit "/std/room";

init()
{
  add_action("get_sand", "", 1000);
  ::init();
}


int get_sand(string bong)
{
  string *bing;  
  object wibble;
  bing=explode(bong, " ");
  if(bing[0]!="get" || bing[0]!="fill" || bing[0]!="put") return 0;
  if(member_array("bucket", bong)==-1 && (bong!="fill bucket with sand" || bong!="put sand in bucket" || bong!="get sand in bucket"))
  {
    notify_fail("The sand dribbles all over the place.  You'll need something solid "+
        "to carry it in.\n");
    return 0;
  }
  wibble=clone_object(SAND_OBJECT);
  wibble->move(present("bucket", this_player())); 
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571