Lighting rooms with objects in your inventory.

From: David Cole (
Date: 04/23/02


I'm haven a hell of a time trying to get illuminated object that are in a
character inventory to light a room. I've tryed a multipul amount of ways,
the one I have most recently came up with (And havent crashed the mud with)
is below:

in char_to_room():
    for (obj = ch->carrying; obj; obj = next_obj) {
      next_obj = obj->next_content;
      if (obj->obj_flags.extra_flags == ITEM_ILLUMINATE)
        world[ch->in_room].light ++;

Am i over looking something? Is this so pathedicly simple and Im
looking/working from the wrong area? I'm completly stumped, anyone care to
enlighten me on what I'm doing wrong?

David Cole

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT