At 19.16 19/08/98 -0700, you wrote:
>On Wed, 19 Aug 1998, Michael J. Fara wrote:
>> here's part of the spell code in which the moving of the char takes place:
>
>if you're storing GET_LOADROOM as a vnum, then this won't work because
>char_to_room uses rnums. either put a real_room(GET_LOADROOM(victim))
>here, or when the value is stored.
The first option is correct, cause if you store a rnum then you could cause
errors by adding rooms between room 0 (1) and the loadroom. Vnums never
change, rnums are just the index to the world array.
So better use char_to_room(victim, real_room(GET_LOADROOM(victim)))
>
>> char_to_room (victim, GET_LOADROOM(victim));
>> act ("$n appears in the middle of the room.", TRUE, victim, 0, 0,
>> TO_ROOM);
>
>-B.
>
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
> +------------------------------------------------------------+
>
>
Carlo Mocci - mocci@tin.it
Kabir
Coder of Dalila MUD
dalila.shopitaly.net 4000
+------------------------------------------------------------+
| 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