rope2.c

final_realms_fluffos_v1/lib/d/newbie/orc/items/misc/rope2.c · 1.7 KB

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

inherit"std/object";
 
void init() {
    add_action("get_me","get");
     add_action("do_climb","climb");
     ::init();
}
 
void setup()
{
set_name("coil of rope");
add_alias("50 ft. of rope");
set_main_plural("ropes");
   set_short("Coil of rope (Tied off)");
   set_long("This is a 50 ft. section of rope.  It is tied off.\n");
 
set_weight(2);
set_value(3000);
}
 
 
int get_me(string str)
{
if(str == "rope" || str =="all")
   {
      write("The rope is securely tied.  You can't get it.\n");
      return(1);
   }
return(0);
}
int do_climb(string str)
{
   if(str == "rope")
   {
   if(this_player()->query_property("skill_rope_climbing"))
     {
      write("You grasp the rope with both hands and begin to climb "
             "down the rope.  You were doing very well until the old, "
             "raggedy rope begins to fray.  You make it to within "
             "30 ft. of the bottom of the mountain before the rope "
             "breaks.\n\n"
             "You fall head over heals down the rocky slope and "
             "land at the base with a resounding THUD!. \n\n"
             "You awaken sometime later to hear voices all around "
             "you.  You can see several figures moving around you, "
             "but your eyes are unable to focus on them as you slip "
             "back into unconciousness .................\n\n"
                 "You awaken sometime later in new surroundings"
                 ".............\nYou had better look around.\n");

         this_player()->move("/d/ss/daggerford/clinic");
      this_object()->dest_me();
      return(1);
      }
   else
   {
      write("You are not skilled enough to climb down there.\n");
      return(1);
   }
   }
}

Site Stats

Snippets: 1791
Codebases: 571