Matthew Grosse wrote: > > Make sure 'target' is of the correct data type. > Here you are getting an rnum or vnum? > > target = GET_OBJ_VAL(obj, 0); try: /* make sure the room exists, otherwise send_to_char crashes */ if ((target = real_room(GET_OBJ_VAL(obj, 0))) < 0) { act("The $P does not appear to be working properly", FALSE, ch, 0, obj, TO_CHAR); return; } > > act("&nYou enter $P and fly through time and space...", > > FALSE, ch, 0, obj, TO_CHAR); > > act("&n$n enters $P and disappears...", FALSE, ch, 0, obj, TO_ROOM); > > char_from_room(ch); > > char_to_room(ch, target); > > look_at_room(ch, FALSE); > > act("&nSuddenly, $n steps out of a rip through time and space.", > > FALSE, ch, 0, 0, TO_ROOM); > > } -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST