Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2008, 08:05 AM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default Quest Not working with globals

OK, I'm having an issue with Frizznik_Hailstorm in tutorialb. His quest can be looped infinately, so people can in theory have all the money they want.

But, I guess I'm more stumped to why this isn't working:

Code:
sub EVENT_SAY{

  if($text=~/hail/i) {

    quest::say("Hello there $name. The name's Frizznik and I'm in charge of making food for the revolt. Most of what I make starts with the basics. I don't have the time to make the basic items and the final products. Let me know if you are interested in [assisting] me with making dough.");

  }

  if($text=~/assisting/i) {

    quest::emote("eyes you up and down.");

    quest::say("Make sure you buy a mixing bowl and come see me when you are [ready].");

  }

  if($text=~/ready/i && !defined $qglobals{frizznik}) {

    quest::say("Good enough. Now, combine these ingredients in your mixing bowl and return to me all the clumps of dough you can. If you give me four clumps of dough, I'll reward your assistance.");

    quest::summonitem(13087,20);

    quest::summonitem(13193,20);

    quest::summonitem(13088,20);

    quest::setglobal("frizznik",1,0,"F");

  }

  elsif($text=~/ready/i && $qglobals{frizznik} == 1) {

     quest::say("I'm sorry, but the boss has instructed me to hand out the items only once per player!");

 }

}
and in the quests_globals table it does have multiple rows, each time you say "ready" to this npc. (set to the charid, npcid, zoneid, name, and value = 1)

So like (1,189017,189,frizznik,1,null)

I noticed the flag checks are different than those written for the PoP era...they use like &frizznik == 1 instead of how it's written up there.

Sorry for the silly questions, but I only need to be tought once.
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #2  
Old 11-22-2008, 08:14 AM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default

Actually, figured this one out being anal and reading everything I can AGAIN...


But I noticed this npc's qglobal value was 0. Setting it to 1 fixed the issue.

Might want to do that to the cvs.
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
Reply


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 05:29 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3