View Single Post
  #5  
Old 10-10-2016, 06:46 PM
Toony's Avatar
Toony
Sarnak
 
Join Date: Jul 2009
Location: USA
Posts: 85
Default

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?
Reply With Quote