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 07-26-2015, 04:10 PM
The Crucial One
Fire Beetle
 
Join Date: Jul 2015
Posts: 28
Default quest::collectitems(item_id, remove)

I am working on removing the need for turnin's so that I wont have people running around handing in hard to obtain items to pets and what not, atm i use


Code:
sub EVENT_SAY {
$Turnin = quest::saylink("Turnin",1);
    if ($text=~/hail/i && !plugin::check_hasitem($client, 132709)) {
        plugin::Whisper("I need 2 wolf pelts to craft you what your after.");
    }
    if ($text=~/hail/i && plugin::check_hasitem($client, 132709)) {
        plugin::Whisper("I need 2 wolf pelts to craft you what your after.");
	$client->Message(15, "Would you like to $Turnin?"); 
    }
    if ($text=~/Turnin/i && plugin::check_hasitem($client, 132709)) {
$tokens = quest::collectitems(132709, 1);
$tokens = $tokens - 2;
quest::summonitem(132709, $tokens);
}
}
i mean it works but i would like to get the summoned items to be placed back in inventory slots otherwise from time to time i get client inventory issues and people loose their items...

Any help or Advice would be much appreciated,

Thanks
Crucial
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 06:11 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