test.c

final_realms_fluffos_v1/lib/obj/misc/test.c · 543 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

inherit "/std/object";

void setup() {
  set_name("potion");
  set_short("healing potion");
  add_adjective("healing");
  set_long("A potion containing a clear liquid.\n");
  set_weight(2);
  set_value(2000);
  set_main_plural("healing potions");
  add_plural("potions");
}

void init() {
  add_action("do_drink", "drink");
  ::init();
}

int do_drink(string str) 
{
  notify_fail("Drink what ?\n");
  if (!str)
    return 0;
  write("You drink a healin potion.\n");
  say(this_player()->query_cap_name()+" drinks a potion.\n");
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571