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
  #7  
Old 07-07-2009, 12:29 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Actually, the # at the beginning of NPC names is not like Perl # comments.

The # is actually part of the NPC name in the npc_types table, and allows script writers the ability to use multiple versions of an NPC in a zone that display the same name to players in the client, but have slightly different internal names to differentiate their Perl script files. The EQ client strips out any leading or trailing # or _ characters from an NPC's name while displaying them.

There might be three different versions of an NPC named 'Boss Guy' in a particular zone, changing out as part of a scripted raid event.

Each version would have its own npc_types entry in the database, and would have its own Perl file to handle the scripted event for that version.

So in the npc_types table there might be entries for "Boss_Guy", "#Boss_Guy", and "##Boss_Guy", and there would then be three associated .pl files in the zone's quests directory... Boss_Guy.pl, #Boss_Guy.pl, and ##Boss_Guy.pl.

Got your head around it? Or did I totally confuse you. Heh heh.
Reply With Quote
 

Thread Tools
Display Modes

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