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.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2004, 04:36 AM
x-scythe
Discordant
 
Join Date: Jun 2003
Posts: 449
Default question about $itemcount

if i wanted to have it so like 2 of one item and 1 of another were turned in would it be like this?

example quest:

Code:
sub EVENT_SAY
{
 if($text=~/Hail, $mname/i)
  {
   quest::say("Ello there $name! If you bring me two firebeetle eyes and one bone chip, I will craft you an item.");
 }
}

#the xx is the firebeetle eyes and the yy is the bone chip
sub EVENT_ITEM
{
 if(($itemcount{xx} == 2)($itemcount{yy} == 1))
  {
   quest::say("Well done. Here is your crafted item!");
   quest::summonitem(blah);
 }
}
this is what i need to know is correct
Code:
if(($itemcount{xx} == 2)($itemcount{yy} == 1))
thanks in advance
Reply With Quote
  #2  
Old 06-14-2004, 04:56 AM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

Code:
if(($itemcount{xx} == 2) && ($itemcount{yy} == 1))
Reply With Quote
  #3  
Old 06-14-2004, 05:04 AM
x-scythe
Discordant
 
Join Date: Jun 2003
Posts: 449
Default

doh...now that i see it its so obvious now lol..thanks
Reply With Quote
  #4  
Old 06-19-2004, 01:30 AM
Minuss
Sarnak
 
Join Date: Jan 2002
Location: France
Posts: 58
Default

no need for so many "("
if($itemcount{xxxx} && $itemcount{xxxx} == 1) is also correct

if you have to put 2 items for a turn in for example, it is :
if($itemcount{xxxx} && $itemcount{xxxx} ==1 && $itemcount{yyyy} && $itemcount{yyyy} ==1)
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 09:51 PM.


 

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