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
  #6  
Old 08-01-2014, 02:39 PM
BasketCase209's Avatar
BasketCase209
Fire Beetle
 
Join Date: Feb 2006
Location: California
Posts: 28
Default

So I tried putting parenthesis around the defined check and it didn't change it.
Here is what it looked like just in case I misunderstood.

Quote:
sub EVENT_SAY {
my $cashout = quest::saylink("cash out");
my $play = quest::saylink("play");
my $hit = quest::saylink("hit");
my $stay = quest::saylink("stay");

if($text=~/Hail/i){
quest::say("My dialog is working.");
}
if($text=~/Hail/i && (!defined $qglobals{BlackJackTab})){
quest::say("Hello, $name. Are you looking for a rousing game of black jack? Go ahead and give me some platinum to get started and I'll open a tab for you.");
}
if($text=~/Hail/i && (defined $qglobals{BlackJackTab})){
quest::say("Welcome back, $name. Your current balance is $qglobals{"BlackJackTab"} platinum. If you'd like to $cashout please tell me.");
}
}
It appears quest globals are working. I copied the "hails" quest over from the wiki page and that worked just fine. I even checked the database to see if it put the global in there and it had.

So that means it's probably an error with the structure of the one I wrote? I'll keep playing with it and keep you guys posted.
Reply With Quote
 

Thread Tools
Display Modes

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