Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-14-2003, 08:48 AM
Fyrre
Sarnak
 
Join Date: Jan 2003
Posts: 33
Default $itemcount problem

I have an armor quest, and the item turn in isn't functioning as I want it to. The spell being cast on the user summons the specified item. The problem is that ANY turn in attempts to cast all the spells in the code on the user.

Code:
EVENT_ITEM {
if ($itemcount("210") && $itemcount("217") && $itemcount("218") && $itemcount("219") { say("Here is your chestplate.  Congratulations!") castspell("$userid","523") }
if ($itemcount("211") && $itemcount("217") && $itemcount("218") && $itemcount("219") { say("Here is your leggings.  Congratulations!") castspell("$userid","637") }
if ($itemcount("212") && $itemcount("217") && $itemcount("218") && $itemcount("219") { say("Here is your bracer.  Congratulations!") castspell("$userid","638") }
if ($itemcount("213") && $itemcount("217") && $itemcount("218") && $itemcount("219") { say("Here is your helm.  Congratulations!") castspell("$userid","639") }
if ($itemcount("214") && $itemcount("217") && $itemcount("218") && $itemcount("219") { say("Here is your armplates.  Congratulations!") castspell("$userid","751") }
if ($itemcount("215") && $itemcount("217") && $itemcount("218") && $itemcount("219") { say("Here is your boots.  Congratulations!") castspell("$userid","852") }
if ($itemcount("216") && $itemcount("217") && $itemcount("218") && $itemcount("219") { say("Here is your gauntlets.  Congratulations!") castspell("$userid","887") }
if ($itemcount("220") && $itemcount("217") && $itemcount("218") && $itemcount("219") { say("Here is your mask.  Congratulations!") castspell("$userid","888") }
}
Could someone please correct me on this code? I'm sure something isn't right.
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:41 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