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

Quests::Completed This is where Completed quests are.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2008, 08:10 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Quote:
Originally Posted by shaznito View Post
Code:
sub EVENT_ITEM {

if (plugin::check_handin(\%itemcount, 13953 => 3) && $gold == 30) {

 quest::say ("You are one lucky bixie buster. I just made a batch of honey jum. Here. No waiting for you.  One jar for your good work. Bye, now!");

 quest::summonitem(13952);
 quest::faction(218,5);
 quest::faction(77,5);
 quest::faction(133,5);
 quest::faction(208,5);
 quest::faction(48,-5);
 quest::exp(50);
 
}
 
 plugin::return_items(\%itemcount);
 quest::say("This is not all!! Kizzie says, three honeycombs and thirty gold coins!!  Oooh!!  They never listen.");
}
If I'm not mistaken, I believe you need to put the plugin::return_items & quest say into an else statement, otherwise it will not only return the leftover items every time, but also the return dialogue.

I think an overarching solution to this is to modify plugin::return_items to return values like check_handin does, that way, you can do something like this:

Code:
if (plugin::return_items(\%itemcount)) {
	quest::say("Steempy, you eediot! I don't need these items!!");
}
I tried to do this a while back, but for some reason, I couldn't get any positive values returned. Then again, I'm also not sure if world needs to be restarted to have the plugin scripts reloaded.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #2  
Old 03-05-2008, 03:35 AM
shaznito
Sarnak
 
Join Date: Apr 2007
Posts: 35
Default

Usually if you don't see that plug-in there you know I forgot or overlooked it normally I always try to include it. I rush because I only have a very limited time on a borrowed live account to do the quests then write them.
Reply With Quote
Reply

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 08:58 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