Re: Objects' Val1 and Char_to_Room

From: Xual (
Date: 02/15/99

On Tue, 16 Feb 1999, Julian Buckley wrote:

> The code is as follows:
> char_to_room(ch, (room_rnum) portal->obj_flags.value[1]);
> How can this be changed so that setting the .obj file to "3" will mean
> going to Room #3?  And likewise, how can a check be made such that if the
> room indeed does not exist, then report whatever sprintf?  i.e. does a
> function exist already that does this?

char_to_room(ch, real_room(portal->obj_flags.value[1]));

"Misery is boundless"
        -Xual the Torturer, on the Eve of the Sundering.

Danathara Online RPG

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 12/15/00 PST