Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-24-2017, 06:00 PM
cannon
Hill Giant
 
Join Date: Dec 2004
Location: Pittsburgh, PA
Posts: 128
Default Help with a return item quest.

hands in item 1
receives item 2

item 2 is LORE

tries to hand in item 1 while already having item 2 in inventory which is LORE

npc eats item and the you already have a LORE item message appears.

How would I go about having item 1 returned if the player already has the LORE item?

sub EVENT_SAY{
if($text=~/hail/i){
if(plugin::check_hasitem($client, item2)){
quest::say("You already have this item!");
}
if (plugin::check_handin(\%item1, ($item{$class}) => 1))
my %giveitem= (warrior"item2);
else {
plugin::return_items(\%item2);
# quest::say ("You already have a LORE item, $name.");
}
}
}

Looking for a way to check if the returned item is already present on the player and then issue back the item that was turned in.
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 07:34 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