Re: [Newbie] VNUM

From: Leonardo Herrera (leherrer@ENTELCHILE.NET)
Date: 12/23/97


Aaron Miller wrote:
> This is a rather foolish and newbie-esque question, but what variable stores a players current room vnum? Thanks in advance..

structs.h, line 24:
room_rnum in_room;                    /* Location (real room number)*/

Then you can do something (assuming char_data *ch )
  if ( ch->in_room != NOWHERE )
        rvnum = world[ch->in_room].number

Hope this helps. And RT*C :)

Saludos!
--
Leonardo Herrera L.
mailto:leherrer@entelchile.net
http://www.geocities.com/TimesSquare/Castle/4515/
  "Me voy a subai, me voy a costai, me voy a tapai y
me voy a hacei tuto."
        -- Ruy


     +------------------------------------------------------------+
     | 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/08/00 PST