View Single Post
  #5  
Old 02-09-2015, 11:21 AM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default

Here is the working quest code if anyone wants to reuse it. This is in the zone directory in the file default.pl

Code:
sub EVENT_SPAWN{
my @drops = (6701,6702,6703,6704);#define loot drops here
	if(quest::ChooseRandom(1..100) >= 95){ #probability an item will be added
		$item = $drops[int(rand @drops)];
		$npc->AddItem($item);
	}
}
Reply With Quote