Lighting rooms with objects in your inventory.

From: David Cole (tiznor@softhome.net)
Date: 04/23/02


Hello,

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?

Thanks,
David Cole

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



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