PDA

View Full Version : quest globals


aza77
03-29-2006, 03:42 AM
does anyone have a clue what i did wrong here ??

quest::targlobal("racequest","1","F",$mobid,$charid,$zoneid);
quest::say("globaltest = $racequest");

i always get ..
globaltest =

as result. npc global is set to 1 and server was restarted. the questglobal gets written to the db but i can't use it

fathernitwit
03-29-2006, 01:08 PM
the global is not set until the next time the script is run, so that code above will never work (but should work if you say the trigger twice).

if that dosent help, double check your qglobal flag.

aza77
03-30-2006, 01:01 AM
thanks now it's working :)
i had 2 lil faults in it first one was $mobid i changed it to npcid and second one was that i needed to hail him again