Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-09-2015, 12:37 AM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default Default.pl only loading for 1 mob in zone

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:11 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3