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-19-2006, 12:17 PM
kouhei
Hill Giant
 
Join Date: Mar 2005
Location: japan
Posts: 171
Question help perl

I am trying to get this to work. This is how it works. hand over these 4 items the NPC will summon item for you. OR if you turn over 3 items of a certain item he will summon the item for you. Now Whats wrong with this picutre?




sub EVENT_ITEM
{

if ($itemcount{12147} == 1 && $itemcount{12148} == 1 && $itemcount{12149} == 1 && $itemcount{12147} == 1)

else

if ($itemcount{12145} == 3)

{
quest::say("Here you go then.");

quest::ding();

quest::summonitem("26644");
quest::exp("100");

}

}
__________________
http://www.hdrjapan.com/



Take a look you know you want to click on this site.
Reply With Quote
  #2  
Old 04-19-2006, 12:30 PM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

Code:
sub EVENT_ITEM
{

if ($itemcount{12147} == 1 && $itemcount{12148} == 1 && $itemcount{12149} == 1 && $itemcount{12147} == 1 || itemcount{12145} == 3)

{
quest::say("Here you go then.");

quest::ding();

quest::summonitem("26644");
quest::exp("100");

}

}
try that
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #3  
Old 04-19-2006, 01:11 PM
kouhei
Hill Giant
 
Join Date: Mar 2005
Location: japan
Posts: 171
Thumbs down thanks

Thanks Cripp, I will try that when I get home. I will then post the quest for everyone to use. If works!! hehe lol
__________________
http://www.hdrjapan.com/



Take a look you know you want to click on this site.
Reply With Quote
  #4  
Old 04-19-2006, 03:25 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

in perl, its "elsif" not "else if"
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 06:38 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