View Single Post
  #3  
Old 10-10-2016, 12:32 AM
kimura
Hill Giant
 
Join Date: Oct 2011
Posts: 132
Default

This should work if you put it in the global_npc.pl file. the 12345 is whatever itemID (Untested of course)...

this also will not allow pets to get the item...

Code:
sub EVENT_SPAWN{

if ($mlevel >= 35)
	{
		return unless $npc->GetLoottableID();
		if (int(rand(100) + 1) >= 99) {
		{
			$npc->AddItem(12345,1,0);
			
		}
	  }
    }
}
Reply With Quote