Re: new attempt at teleport rooms

From: BRiTiSH (clisowsk@mcs.kent.edu)
Date: 08/31/95


 I think you need to convert the room numbers into real_world numbers.
Ie: when you stat a room (stat 1211) it shows you a Virtual number (1211)
and also a Real Number. 
You must use the 'real number' to access the room via the world[] array.

> const struct teleport_type teleport_rooms[NUM_TELEPORT_ROOMS] = {
>      {1211, 3001},
>      {1210, 3001},
>      {1201, 3001},
>      {1204, 3002}
> };
> 
> void do_teleports(void)
> {
>   struct char_data *vict, *next_v;
>   int i;
>   for (i = 1; i < NUM_TELEPORT_ROOMS; i++)  {
>     for (vict = world[teleport_rooms[i].zstart].people; vict; vict = next_v) {
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Probable cause of crash!



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