Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Feature Requests

Development::Feature Requests Post suggestions/feature requests here.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2009, 01:17 PM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default NPC default pl

again was looking around to see if thier was a default npc.pl, kinda like player.pl in templates, and didn't really see anything of the sort. and was wondering if there was a way to add to the source a way to read a default npc.pl from the templates folder. i'm trying to make a system that tracks how many kills a player does in his life time, so I can reward titles, and other such things. I know I could go through and make a pl for each and every npc in every zone and add an event_death script to each adding to the global value made for each specific person, but that just seems a bit much. anyways, just was curious on how much of an endeavor this would be. thanks.
Reply With Quote
  #2  
Old 09-22-2009, 01:54 PM
Davood
Discordant
 
Join Date: Jan 2005
Posts: 488
Default

that would be an excellent addition to any custom server!

you could do this by adding some code to the experience module for the server; however perl might be preferable for easy mass distribution of said content, and would might be easier to maintain and test, since you can reset the perl cache while the server is running.

I think the experience method might be best, so that way you can "tag along" on the kills, and you won't necessarily have to make all the killing blows yourself

unless of course there is a way to inject something into the "on gain xp" with perl for all npcs...
__________________
----------
Demon Overlord of Alakamin
skype @ davoodinator
Reply With Quote
  #3  
Old 09-22-2009, 04:08 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

There is. I believe it is called default.pl
Reply With Quote
  #4  
Old 09-22-2009, 04:29 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

I believe that default.pl is only brought into play when there is no quest file for an NPC. If there is a quest file in place, the server will use it.

So what you'd wind up doing is wiping all the normal PEQ quest files, modifying your default.pl file, and then going through each zone's folder and deciding which quest files you can bring back in entirely (for NPCs that wouldn't be killed [quest-givers, merchants, GMs of each class, etc.) and then figuring out which ones are for NPCs that will be killed and to modify their scripts accordingly.

It's going to be very painful and tedious if you do it that way, but it would make it possible with the existing tools available to you.
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 12:56 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3