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 05-14-2008, 02:36 AM
SoTRichard
Sarnak
 
Join Date: Aug 2004
Posts: 67
Default faction turn in

sub EVENT_ITEM {
# honorable badge turn in
if (plugin::check_handin(\%itemcount, 55561 => 4)) &amp;&amp; ($faction <5){
quest::summonitem(29400); # Honorable reward
quest::say("Thankyou you have saved felwithe from death and destruction!");
quest::exp(100000);
}
else {
quest::emote("will not accept this item.");
plugin::return_items(\%itemcount);
}
}


i cannot seem to get this to work... a player with ally faction cannot turn in 4 of the above items... the npc doesn't even return them... just eats them... any ideas or help? trying to make it so you must be at least amiable to complete this 4 item turn in.
__________________
Truth=What is, is.
Reply With Quote
  #2  
Old 05-14-2008, 05:35 AM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

Try it this way... It checks the faction first, then the item handin. Do you have other NPC's that return items? If not, check that your plugins are in the right place.

Code:
sub EVENT_ITEM {
if ($faction <5){
  if (plugin::check_handin(\%itemcount, 55561 => 4)) {
     quest::summonitem(29400); # Honorable reward
     quest::say("Thankyou you have saved felwithe from death and destruction!");
     quest::exp(100000);
     }
   else {
      quest::emote("will not accept this item.");
      plugin::return_items(\%itemcount);
      return;
}
}
     else {
      quest::emote("You are not yet worthy of this quest!!!");
      plugin::return_items(\%itemcount);
      return;
    }
}
__________________
Random Segments of Code....
Reply With Quote
  #3  
Old 05-14-2008, 01:21 PM
SoTRichard
Sarnak
 
Join Date: Aug 2004
Posts: 67
Default

Thankyou very much, that worked amazingly!
__________________
Truth=What is, is.
Reply With Quote
  #4  
Old 06-09-2008, 10:14 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Lightbulb Fyi

FYI, the reason it wouldn't work is because your faction check was outside of your if() check.
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:57 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3