Hey all,
Thought i'd share our servers chests drops on npc death
	Code:
	sub EVENT_DEATH
{
$rand = quest::ChooseRandom(1,2,3,4,5,6,7,8,9,10);
if ($npc->GetLevel() >= $ulevel)
{
	if ($rand > 6)
	{
		if ($ulevel < 10)
		{
			quest::emote(" was holding extraordinary treasure!");
			quest::spawn(346316,0,0,$x,$y,$z);
		} else {
			if ($ulevel < 20)
			{
				quest::emote(" was holding extraordinary treasure!");
				quest::spawn(346317,0,0,$x,$y,$z);
			} else {
				if ($ulevel < 31)
				{
					quest::emote(" was holding extraordinary treasure!");
					quest::spawn(346318,0,0,$x,$y,$z);
				} else {
					// We don't support level 30+ characters
				}
			}
		}
	} else {
		quest::emote(" was worth no treasure this time.");
	}
} else {
	quest::emote(" is worth no treasure as it is weaker than you.");
}
}
 
You will need to create some chest spawns for this
I'm using the numbers above with loot tables with 3 100 item loot drop lists
346316 - low chest
346317 - medium chest
346318 - high chest
Enjoy!