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 08-31-2004, 04:26 PM
molimo140
Hill Giant
 
Join Date: Dec 2003
Posts: 104
Default itemcount question

Say you turn in a stack of fishing grubs to an npc

(say item id of fishing grubs is 0001)

if you do

itemcount{0001}

will it return the value 1 or the value 20?

ty in advance
__________________
Server-OP and host of Lord of the Rings [Legit-Custom] Server
Reply With Quote
  #2  
Old 08-31-2004, 04:59 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

I'm not sure. Test it using this script.
Code:
#Itemcount Testing
#perlQuest
sub EVENT_ITEM
{
if($itemcount{1001} == 1)
  {
  quest::say("You have turned in 1 item.");
  }
if($itemcount{1001} == 20)
  {
  quest::say("You have turned in 20 items.");
  }
}
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
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:58 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3