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 01-11-2009, 09:50 PM
Daecor
Fire Beetle
 
Join Date: Feb 2004
Posts: 4
Default qglobals not working for me

hive searched the froums a few time and been playing with the code for around 5 hours and still cant figure out whats wrong i even went into the database and made sure the npc was able to use quest globals

basic idea im trying to do is this
i have a mob that sets the variable
(and indeed it makes it i checked database)
and another to check it and say one thing if its set and another if its not

E.G.
Code:
sub event_say 
 {
   if ($qglobals{var_name} >= 1)
    {
      if ($text =~/hail/i)
        {
          quest::say("blah blah blah");
        }
    }
   else
    {
      if ($text =~/hail/i)
        {
          quest::say("blah2 blah2 blah2");
        }
    }
 }
the prob is nomatter it the variable is set or not the NPC still says the "blah2 blah2 blah2 part anyone have anyidea what im dooing wrong
thank you in advance for any help
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 04:20 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