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 12-07-2008, 09:28 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

If your NPC/zone is staying up, have you tried to undefine the globals. Obviously it won't effect the database.

Here is what I have seen before. I had an NPC delete a global, but the global still existed until it was undefined or the zone/NPC was reset. I am thinking that it might be somewhat related.
Reply With Quote
  #2  
Old 12-07-2008, 12:54 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

yes they are the same npc sop mabie ill copy him and spawn a diff one in each zone..

how do i undefined the globals?
Reply With Quote
  #3  
Old 12-07-2008, 05:15 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

As long as you are writing the globals like this, "$qglobals{chardok}" and not like this, "$chardok", there shouldn't be any need to worry about undefining anything. If you use them without $qglobals{}, it can see them as a variable, which is what causes issues with them being held until undefined or reset. But by doing it the correct way, it has to check the DB each time it is referenced, so it doesn't store any kind of variables that can be used when they aren't supposed to be.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply

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