iGen/
--------------------------------------------------------------------------------
 I've found that quite a few want to have random item generators on their MUDs,
 but don't have the time, skill, or will to write one.  I was feeling generous,
 so I've written it for you!  Installation is very simple, just drop the three
 files into your source, and add the following to fight.c:
------------------------------------------------------------------- at the top -
#define "igen.h"
--------------------------------- in group_gain, right after the gain_exp call -
        if (gch == ch)
        {
            if (number_percent () < 50)
                iGen (gch, victim, number_range (UMAX (1, victim->level - 3),
                                                 UMIN (victim->level + 5, 50)));
            if (number_percent () < 30)
                iGen (gch, victim, number_range (UMAX (1, victim->level - 3),
                                                 UMIN (victim->level + 5, 50)));
            if (number_percent () < 15)
                iGen (gch, victim, number_range (UMAX (1, victim->level - 3),
                                                 UMIN (victim->level + 5, 50)));
            if (number_percent () < 5)
                iGen (gch, victim, number_range (UMAX (1, victim->level - 3),
                                                 UMIN (victim->level + 5, 50)));
        }
        else
        {
            if (number_percent () < 20)
                iGen (gch, victim, number_range (UMAX (1, victim->level - 3),
                                                 UMIN (victim->level + 5, 50)));
            if (number_percent () < 5)
                iGen (gch, victim, number_range (UMAX (1, victim->level - 3),
                                                 UMIN (victim->level + 5, 50)));
        }
--------------------------------------------------------------------------------
 Just customize the prefix, suffix, and item tables in igen_table.c.  I don't
 think randomized worthless rings of sanctuary are going to excite players for
 more than two seconds, so add to it before you actually put it into use.
--------------------------------------------------------------------------------
 This code may be used freely on any non-commercial MUD.  If you use this on
 your MUD, I'd appreciate a mention in a helpfile, and feedback is always good.
 
 DISCLAIMER: Please, don't use this if you don't at least vaguely understand
             how it works.  I won't be held responsible if you tweak this
             code improperly and manage to cause harm to your MUD or the
             machine it runs on.  I've tested it (admittedly, probably not
             enough) on stock QuickMUD, and it works.
--------------------------------------------------------------------------------
                                 Enjoy!  -- Midboss (eclipsing.souls@gmail.com)
--------------------------------------------------------------------------------