Well two answers:

1) When loading mobs in db2.c just make a check to see if silver and gold are 
equal to 0 and if so set silver to 1.  Then you shouldn't get that message.

2) To search through all mobs it's just char_list.  So:
  for (mob = char_list; mob != NULL; mob = mob->next)
  {
    if (IS_NPC(mob))
      \\ do stuff here
  }

Hope this helps,
Lysergic

--- [EMAIL PROTECTED] wrote:
>In my log files, the 'Create_Money: zero or negative money' bug keeps popping 
>up and I think the problem is that one or more MOB's havent had a wealth set. 
> I for one don't want to sort through all the area files to find those few 
>MOBs, so i was thinking about doing a little command 'check_mob' that would 
>check all the MOBs in the game for certain bugs.  Only thing I don't know how 
>to do is to set up the for loop to look at all the MOBs in the world.  If 
>somebody could help me with this I'd appreciate it greatly.
>
>Thanks,
>Zack
>
>-- 
>ROM mailing list
>[email protected]
>http://www.rom.org/cgi-bin/mailman/listinfo/rom

_____________________________________________________________
http://wotmania.com
feed your wot addiction

_____________________________________________________________
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] 
by Everyone.net  http://www.everyone.net/?btn=tag

Reply via email to