parchment.c

final_realms_fluffos_v1/lib/d/newbie/orc/items/misc/parchment.c · 1.9 KB

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

inherit"std/object";
 
void init() {
    add_action("give_me","give");
    add_action("put_me","put");
    add_action("drop_me","drop");
   add_action("read_me","read");
}
int query_auto_load()
{
   return 1;
}
 
void setup()
{
set_name("parchment");
add_alias("paper");
set_main_plural("parchments");
add_plural("papers");
    set_short("Parchment");
    set_long("This is a dirty old piece of parchment.  It is "
        "rotten and wet.  Suprisingly, most of the writing "
        "looks readable.  "
        "\n\n");
 
set_weight(2);
set_value(0);
}
 
 
int read_me(string str) {
if(str == "parchment" || str == "paper"){
    tell_room(environment(this_player()),this_player()->query_cap_name()
        +" reads a tattered old parchment.  It falls apart "
        "and scatters all over the floor.\n",({ this_player() }));
    write("The parchment reads:\n"
    "Instructions on the use of a rope.\n"
        "The parchment teaches you how to tie and climb "
        "up or down a rope.\n"
        "Just as you finish reading it, the parchment breaks "
        "apart and falls to the floor. "
        "\n\n");
    this_player()->add_property("skill_rope_knots",5);
    this_player()->add_property("skill_rope_climbing",5);
   this_player()->add_property("DWARVEN_ROPE",1);
   write_file("/d/mm/logs/ROPE_QUEST",this_player()->query_cap_name()+
              " Has completed the rope-skills quest in the Dwarven "
              "area on: "+ctime(time())+"\n");
    this_object()->dest_me();
    return 1;
}
 
}

int drop_me(string str) {
if(str == "parchment" || str == "paper" || str == "all") {
    tell_room(environment(this_player()),this_player()->query_cap_name()
        +" has handled an old parchment to roughly.  It falls apart "
        "and scatters all over the floor.\n",({ this_player() }));
        write("Oh no!  It seems that you have been too rough "
        "on the old parchment.  It has fallen apart.\n");
    this_object()->dest_me();
    return 1;
}

}

Site Stats

Snippets: 1791
Codebases: 571