Re: [NEWBIE] I can't see whats wrong with this

From: Cruelworld Mud Admin (zemial@dune.net)
Date: 12/07/00


On Tue, 5 Dec 2000, Luke Waite wrote:

> ACMD(do_link)
> {
>   int r_mortal_link_room = 11100
>   if (IS_NPC(ch)) {
>     send_to_char("Monsters can't go to link!!\r\n", ch);
>     return;
>   }
>   if (GET_LEVEL(ch) <= 68) {
>     send_to_char("Poof!! You enter the social area.\r\n", ch);
>     act("$n goes to link", TRUE, ch, 0, 0, TO_ROOM);
>     char_from_room(ch);
>     char_to_room(ch, r_mortal_link_room);
>     act("$n appears out of nowhere.", TRUE, ch, 0, 0, TO_ROOM);
>     look_at_room(ch, 0);
>     return;
>   }
> }
>
Ok here goes, you are trying to send a virtual number to a function that
actually requires a real_room  number as argument...

Change this line:
>     char_to_room(ch, r_mortal_link_room);

to:
>     char_to_room(ch,real_room(r_mortal_link_room));

That should do the trick

Zemial
Builders Academy

--
   +---------------------------------------------------------------+
   | 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 : 04/11/01 PDT