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 06-17-2008, 11:39 AM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default Displaying quest globals

I am having difficulty in getting any quest to use the quest global values that I enter. I used an example script from the site to set the value to ensure I was doing it right, however I can not under an circumstances write a line of code that will display the value, or even use it to trigger an event.

If I get mysql quest global file though, it is infact in there.... So how do I get it out so I can use it?

Quote:
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, 7, "Y50");

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

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




}

}
Every time I do get, it just reads the line and omits the value.

I have tried linking it to conditions like

Quote:
if($qglobals{AVAR}) == 1)

or

if(defined($qglobals{AVAR}))
I am not sure what I am doing wrong at this point.

Kayen
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 11:54 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