EDIT::: Problem seems to be with default.pl only loading for 1 mob and not the quest itself. See 2nd post.
Trying to make a zone wide quest to add loot. For testing purposes i have it set to >=1 later will be more like 90. The idea is if a chance is rolled then pick a random item from a set of items and add it to NPC loot.
So i went to the zone folder made a file called default.pl and went on doing normal quest routine. here is where it gets weird.... This quest seems to pick 1 mob each #reloadqst and stick with that through each #repop until I do #reloadqst again. you can see my test line there, which really helped narrow this down. Any ideas what I am doing wrong here?
Code:
my @drops = (6701,6702,6703,6704);
sub EVENT_SPAWN{
quest::shout("test");
if(quest::ChooseRandom(1..100) >= 1){
$item = $drops[int(rand @drops)];
quest::shout($item);#test line remove when working
$npc->AddItem($item,1);
}
}
EDIT:: Is there an issue with the default.pl file beingside inside a zone folder and not just in eqemu\quests\ ?