[newbie]

From: Travis M. Fuller (travis@IAMERICA.NET)
Date: 04/05/98


Im using a portal code from the mailer list from Ground Zero
enterprises. Im confused why the portals arent working properly. The
portals are created fine, you can look through them and see the target,
but when you actually enter the portal, you wind up in the void (room
0). Ive played with the GET_OBJ_VAL numbers but havent been successful.
Im sending the movement code where you are supposed to be able to enter
the portal. Any ideas? Thanks in advance.

Rand

begin code:

if (*buf) {   /* an argument was supplied, search for door
     * keyword */
   if ((obj = get_obj_in_list_vis(ch, buf,
world[ch->in_room].contents))) {
      if (CAN_SEE_OBJ(ch, obj)) {
        if (GET_OBJ_TYPE(obj) == ITEM_PORTAL) {
          if (GET_OBJ_VAL(obj, 20) != NOWHERE) {
            char_from_room(ch);
            char_to_room(ch, GET_OBJ_VAL(obj, 20));
        } else if (real_room(GET_OBJ_VAL(obj, 1)) != NOWHERE) {
            char_from_room(ch);
            char_to_room(ch, real_room(GET_OBJ_VAL(obj, 1)));
          }
          look_at_room(ch, 1);
          return;
        }
      }
    }
    for (door = 0; door < NUM_OF_DIRS; door++)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST