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
  #2  
Old 12-21-2009, 12:05 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

That wouldn't work because then somebody would just have to say 'platinum coin of metzger' and it would bypass the first part. You could either put the taskselector option under the sub EVENT_ITEM as well, or you could do something with qglobals.

Code:
sub EVENT_ITEM{

if (plugin::check_handin(\%itemcount, 13008 => 1)){ #checks for mead turnin
quest::say("Ah a nice brew, I've been waiting for this for awhile, I would've got one myself but I am not about to do anything that requires work. Since you were so kind to get me this brew I shall reward you with this [$saylink5].");
quest::setglobal("metzger", 1, 5, "F");
}
}

sub EVENT_SAY{
if ($text =~ /platinum coin of metzger/i) {
 if (defined($qlobals{metzger})){
quest::say("HAHAHAHAHAHAHAHAHA!!! Did you really think I would just give you that? Oh you should have seen the look on your face, it was priceless. But seriously I want you to go out and create my seal to prove to me that you are worthy of such reward.");
quest::taskselector(35);
}
 else{
 quest::say("You haven't turned in the mead yet");
 }
}
}
The NPC would have to have qglobals set to 1 in the database if you use that option
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 04:31 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3