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.