Ok, I have the following in C:\eqemu_server\quests\templates\global_npc.pl
Code:
sub EVENT_SPAWN{
if ($mlevel >= 35)
{
return unless $npc->GetLoottableID();
if (int(rand(100) + 1) >= 99) {
{
$npc->AddItem(11703,1,0);
}
}
}
}
And for testing purposes I've changed "1) >= 99)" to "50) >= 99)"
But I can't seem to get my item to drop even after several tests, what am I missing?