Re: [CODE] Ferry code

From: Bill Pascoe (wspascoe@bellsouth.net)
Date: 11/05/02


Well this  is kind of not really a reply. But I implented the code to
extract the ferrys and now when it tries to extract the obj it crashes the
mud.

Heres what I have:

  if(time_info.hours == ferrys[onferrynum].f_time_leave_from_room){
      remove_exit(ferrys[onferrynum].f_from_room,
ferrys[onferrynum].ferry_room,
        ferrys[onferrynum].f_from_room_dir_from_room);
      remove_exit(ferrys[onferrynum].ferry_room,
ferrys[onferrynum].f_from_room,
        ferrys[onferrynum].f_from_room_dir_from_ferry);
      /* search this room for the object */
      for (tobj =
world[real_room(ferrys[onferrynum].f_from_room)].contents;
         tobj && !found; tobj = tobj->next_content)
      if (GET_OBJ_VNUM(tobj)==FERRY_VNUM)
        found = TRUE;
      if (found) {
        extract_obj(tobj);
      }
      send_to_room(ferrys[onferrynum].leave_dock_from,
real_room(ferrys[onferrynum].f_from_room));
      send_to_room(ferrys[onferrynum].leave_messg_from,
real_room(ferrys[onferrynum].ferry_room));
    }

any ideas.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT