Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2009, 08:59 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Question Delete qglobals when delete char?

So far I've now seen twice that someone made a new char and got some qglobal "flags" that I use for entering raid zones etc.

Only thing I can think of is that maybe someone got flagged for a zone, or quest complete etc, then deleted their char, and someone else made a char with the same name.

Can someone verify if qglobals for the character get deleted when a character is deleted?
Reply With Quote
  #2  
Old 08-01-2009, 10:46 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Globals do not go by name, but by character id which autoincrements. When you delete a character, it does delete their globals. I just tested this out. So most likely the problem is with a script that doesn't undefine or sets the global wrong.
Reply With Quote
  #3  
Old 08-02-2009, 02:51 AM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

Thanks much!!!!
Reply With Quote
  #4  
Old 08-02-2009, 03:08 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yeah, that issue will happen if you are using the old $globalname way instead of the $qglobals{globalname} way when checking globals. It is because the old way would set them like a variable, so if they weren't cleared out after one person set the variable by passing the if check, then the next person to try it might pass the if check automatically if they don't have that qglobal defined yet. Then, if it is setting a new qglobal after the if check happens, the newbie just got a free pass that they shouldn't have gotten.

If you want to post the script you are having this problem with, it shouldn't be too hard for us to adjust it so this doesn't happen again for you. Took me a bit to fully understand the qglobal system, but once I got it, it made correcting issues like that much easier.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 08-02-2009, 10:23 AM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

When you delete a char it not only takes out the persons Globals but it also takes out their factions.. And also of course the inventory..
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 11:34 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