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
  #1  
Old 12-10-2007, 04:34 AM
LordKahel
Fire Beetle
 
Join Date: Sep 2007
Posts: 22
Default Weird Bug with quest Globals

Using build 1062.

I am unable to save a Quest variable with the setglobal command if my duration is "F" .

Here is a test quest and the log results.

With this code :
Code:
sub EVENT_SAY {

  if ($text=~/hail/i) {

    quest::say("Hail to you, lesser being!");

  } elsif ($text=~/Set/i) {

    quest::say("Setting your stupid var human !");
    quest::delglobal("AVAR");
    quest::setglobal("AVAR", 1, 0, "Y50");

  } elsif ($text=~/Get/i) {

    quest::say("Here is your results ".$qglobals{AVAR});

  }

}
I get this result And i can see the AVAR entry in the quest_globals table:

[Sun Dec 09 17:49:24 2007] Clearing quest memory cache.
[Sun Dec 09 17:49:27 2007] You say, 'set'
[Sun Dec 09 17:49:27 2007] Herald Telcha says 'Setting your stupid var human !'
[Sun Dec 09 17:49:29 2007] You say, 'get'
[Sun Dec 09 17:49:30 2007] Herald Telcha says 'Here is your results 1'

If i change the duration to 'F' or 'f' like this :

Code:
sub EVENT_SAY {

  if ($text=~/hail/i) {

    quest::say("Hail to you, lesser being!");

  } elsif ($text=~/Set/i) {

    quest::say("Setting your stupid var human !");
    quest::delglobal("AVAR");
    quest::setglobal("AVAR", 1, 0, "F");

  } elsif ($text=~/Get/i) {

    quest::say("Here is your results ".$qglobals{AVAR});

  }

}
I then get this result and the AVAR entry is not in the quest_globals table:

[Sun Dec 09 17:49:58 2007] You say, '#reloadquest'
[Sun Dec 09 17:49:58 2007] Clearing quest memory cache.
[Sun Dec 09 17:50:00 2007] You say, 'set'
[Sun Dec 09 17:50:00 2007] Herald Telcha says 'Setting your stupid var human !'
[Sun Dec 09 17:50:03 2007] You say, 'get'
[Sun Dec 09 17:50:03 2007] Herald Telcha says 'Here is your results '


If i change it back to a duration like Y5 it will work and the AVAR entry will be saved in the table.

Every quest and the c++ code show that using "F" will put a unlimited duration but it doesnt work for me.

Any idea will help .
Thank you for your time.
Reply With Quote
 


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:36 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