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.