[CODE] [QUESTION] spec_proc problem.

From: cKc (ckc@SLIP.NET)
Date: 05/31/98


I added the code from portal.spell.. as a stand alone spec proc.  here is
where I am running into a weird problem.

I set up my obj to have a obj_flag.value[0] of 3001.. but when I create
the obj and step into it.. i come out at a totally different room other
than 3001.   in fact.. the only vnum that works in 0, 1 and 2..
any clue why this is happening?



SPECIAL (portal)
{
  struct obj_data *obj = (struct obj_data *) me;
  struct obj_data *port;
  char obj_name[MAX_STRING_LENGTH];

    if (!CMD_IS("enter")) return FALSE;

    argument = one_argument(argument,obj_name);
    if (!(port = get_obj_in_list_vis(ch, obj_name, world[ch->in_room].contents)))       {
      return(FALSE);
    }

    if (port != obj)
      return(FALSE);

    act("$n steps into $p, and vanishes!", FALSE, ch, port, 0, TO_ROOM);
    act("You step into $p, and you are transported elsewhere", FALSE, ch, port, 0, TO_CHAR);
    char_from_room(ch);
    char_to_room(ch, port->obj_flags.value[0]);

    look_at_room(ch,0);
    act("$n appears from thin air!", FALSE, ch, 0, 0, TO_ROOM);
  return TRUE;
}


     +------------------------------------------------------------+
     | 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