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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2010, 08:12 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Quote:
Originally Posted by joligario View Post
Trevius worked this issue and it should be fixed as of r1705.
Aye I saw that, pretty awesome!
Reply With Quote
  #2  
Old 10-18-2010, 08:13 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yeah, it seems to work well for me so far, but let me know if anyone sees issues with it.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 10-22-2010, 12:29 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

Thank You Very Much Trevius!!!! Awsome Update!
Reply With Quote
  #4  
Old 10-28-2011, 01:08 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

Weird issue with default.pl for pets/npcs.

The quest/zonename/default.pl overwrites any other default.pl is is GOOD.

The quest/default.pl only works if there is some dummy default.pl in quest/templates/default.pl

Hope makes sense. Don't know why. Found out through trial and error. If there is no default.pl in the quest/templates/ then the one in quest/ wont work.

Noticed this when swapping out default.pl (for pets) with the Halloween Event default.pl that I have for this year. Weird how I got it to work.

Any ideas?
Reply With Quote
  #5  
Old 10-28-2011, 01:42 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I am not exactly sure what you are saying is an issue. I would recommend against using default.pl for pets, because of how default.pl works.

As you mentioned, default.pl loads from the current zone folder before it tries loading from templates. I am not sure how you had one that worked in quests/ directly. Nothing should be loaded directly from quests/. If you want a globally used default.pl (or any other) file, it should be in quests/templates/.

I don't run a default.pl in templates, because it is much better to be used from zone folders. I also don't use default.pl for pets, because it is MUCH better to just make individual scripts for each pet and keep those in the templates folder. Basically, you look at the spell and find the name that the spell uses to load that pet, and make a file named for that. Some examples are skel_pet_72_.pl or SumAirR17.pl and so on. It does make it a bit of a pain to manage if you want a lot of pets to use scripts, but it still works better than using default.pl for it.

I use the default.pl for scripts of trash NPCs and anything that might be used by multiple NPCs. To prevent any unscripted pets or temp pets from using the default.pl for the zone, I add the following at the top of every event in the default.pl:

Code:
	# Prevent pets or charmed NPCs from loading the default.pl
	if (!$npc || $npc->GetOwnerID() || $npc->GetSwarmOwner())
	{
		return;
	}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #6  
Old 10-28-2011, 11:44 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

We use the default.pl so players can hail any pet in any zone to use their own pet as a buff bot, and manage giving pet items, etc. Works pretty well, with npc < 1000 in the file etc.

For our Halloween Event we used default.pl and within it have if $zonesn eq "name" for killing random trash in certain zones to spawn Halloween Bosses, etc.

I did this way back when I had less exp. I'd probably do it different today. Yes, having a pet_name.pl file for each of the many pets would be a pain, but probably more efficient.

I still don't understand if the default.pl goes in /quest/ or /quest/templates/ or both? How is it handled? Seems to work the way I have it. Going to try to put the same script in both locations now. Thanks for help as Always Trevius.
Reply With Quote
  #7  
Old 10-29-2011, 12:03 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Nothing that I am aware of will load directly from /quests/, you would want to use /quests/templates/ for any globally loaded scripts. If you put a script only in quests, it shouldn't work. If you put one only in templates, it should.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #8  
Old 10-29-2011, 01:02 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

I have confirmed the global default.pl works in /quest/ not /quest/templates/

Can you test this on your server maybe? I hate to argue, but its working opposite of what I'm being told.
Reply With Quote
Reply


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 01:47 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3