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 01-25-2015, 11:45 AM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default Help

Cant get this to work. At one point I can get it to grant aa's but I want it to be a one time quest, where it only grants aa's once but will still give the reward regardless.

Code:
#scout malityn zombie bane
sub EVENT_SAY {




  if($text =~/Hail/i)
   { 
	plugin::Whisper("Speak softly the gnolls are unaware of my presence. But seeing how you are here, have you got any hero sandwiches and Qeynos teas? One thing about being on the road is never knowing when you will eat good again is. 1 of each would be enough to hold me over, I may have something helpful for you..."); 
   }




sub EVENT_ITEM {
   if (plugin::check_handin(\%itemcount, 29762 => 1, 9758 => 1)) {
	if($qglobals{"bb1"} == 1){
	$client->Message(4,"Thank you very much, now I can continue my research with a full belly!");	
        quest::summonitem(10276);
}

	if($qglobals{"bb1"} == 0){
    quest::say("Oh my... that is soo delicious!"); 
    quest::setglobal("bb1", 1, 5, "F");
    $client->AddAAPoints(1);
    $client->Message(0,"You've earned an AA point!");
    quest::summonitem(10276);
  }
   if(plugin::check_handin(\%itemcount, 29762 => 2, 9758 => 2)) {
	if($qglobals{"bb2"} == 1){
	$client->Message(4,"Thank you very much, now I can continue my research with a full belly!");	
        quest::summonitem(11460);
}

	if($qglobals{"bb2"} == 0){
    quest::say("Oh my... that is soo delicious!"); 
    quest::setglobal("bb2", 1, 5, "F");
    $client->Message(0,"You've earned an AA point!");
    $client->AddAAPoints(5);
    quest::say("Very generous of you! Now I shall be!"); 
    quest::summonitem(11460);
    quest::ding();
  }
  }
 }
}
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 04:38 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