Re: [NEWBIE][CODE] question...

From: Tony Robbins (tonyr@pacific101.com)
Date: 05/05/99


You have to see the difference between real and virtual numbers.  Virtual
numbers are those for us humans to use when we're editting files (like world
files in OLC).

world[].zone is a real number, as in the zones placement in an array.

For example:

Zone 0   - Limbo
Zone 1   - LaLaLand
Zone 3   - Chicago
Zone 300 - Berlin

When standing in room 30000, world[IN_ROOM(ch)].number/100*100 will be 30000,
while world[IN_ROOM(ch)].zone*100 becomes 300.  Essentially, zone 0 is real
#0,
zone 1 is real #1, zone 3 is real #2, and zone 300 is real #3.

You said:
*snip*
vznum = world[ch->in_room].number/100*100;
vznum = world[ch->in_room].zone*100;
*snip*


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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