Portal Spell

From: Shane Augustine (sca@BU.EDU)
Date: 10/09/98


Ok I recently installed portal spell on circle 14.  However the mud
crashed and I
searched the circle archives for a solution.  Well I was able to find
one and it
worked fine.  However now I am using circle14 with olc 2.1 or something
and
dg events.  I tried to add the portal spell to this base code but I
basicaly get the
same error as I did before.  it says
    SYSERR: Illegal value(s) passed to char_to_room. (Room: -1/1886) Ch:
00C18750

the code for do_enter is:

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, 0) != NOWHERE) {
             char_from_room(ch);
    char_to_room(ch, real_room(GET_OBJ_VAL(obj, 0)));

           } 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;
         }
       }

Any help would be much appreciated.  Thanks


Alan


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