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 04-13-2008, 05:38 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I have had this problem before. Your quest format is way different from what I normally use though.

Try it the way I wrote it below. Note, there were many small changes I made to how you had it. One of the major ones being all of the single quotes you were using. I think this should work:


Code:
sub EVENT_ITEM
{
if (plugin::check_handin(\%itemcount, 812 => 1, 813 => 1,814 => 1,815 => 1))
{ #Fire Trash
quest::summonitem(816);
quest::say("Excellent, Excellent.");
quest::emote("tinkers with the items for awhile before handing you A Living Fragment of Fire.");
}



if (plugin::check_handin(\%itemcount, 816 => 1) && $mageepicuse == undef)
{ #Fire Master
quest::setglobal("FireMaster", 1, 7, "H1");
quest::say("OK. Here we go. The Master of Fire will await you in the plane of Elemental Power. Return to me once you have all 4 Elemental Mastery Robes.");
quest::movegrp(185, -1274, -836, -207.3);
}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #2  
Old 04-13-2008, 06:06 AM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

I'm pretty sure the issue is the syntax. If I'm not mistaken, => defines a value in an array (or something like that). Since Perl is executing storing it correctly, it's always coming back as a true value. If you change all of the =>'s to ==, you should be good to go.
__________________
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
  #3  
Old 04-13-2008, 07:40 AM
Bulle
Hill Giant
 
Join Date: Jan 2008
Posts: 102
Default

Indeed, "$itemcount{812} => 1" may be creating a map, which is an object hence not null. So it can be interpreted as a TRUE. I am far from an expert in Perl but I have seen such things on other languages (like C, Java) which do interpret many non-nul values to true.

Have you tried using the regular >= instead of => ? For a compiler they are absolutely not the same beasts.
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 04:00 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