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 12-18-2004, 03:47 PM
eqaddict56
Fire Beetle
 
Join Date: Nov 2004
Posts: 3
Default prolly something stupid i missed

can sum1 tell me what i did wrong.

-----
sub EVENT_SAY
{
if($text=~/Hail/i)
{
quest::say ("xxx");
}
if($text=~/xxx/i)
{
quest::say("xxx");
}
}

sub EVENT_ITEM
{
if($itemcount{xxxx} == 10)
{
quest::say("xxx");
quest::say("xxx");
quest::summonitem(xxx);
}

if($itemcount{xxx} == 3)
{
quest::say("xxx");
quest::summonitem(xxx);
}
}
----
if($itemcount{xxxx} == 10) - will not accept stacked items. i can change it to 4 then turn them in unstacked and it will work...ty
Reply With Quote
  #2  
Old 12-18-2004, 04:24 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Hmmm. Ill take a look at the new code for $itemcount tomorrow.
__________________
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
  #3  
Old 12-19-2004, 10:24 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

contrary to popular belief.. the item count code still dosent make stacking allowed on handins... not that this would be hard to fix, but thats how it is right now.
Reply With Quote
  #4  
Old 12-19-2004, 10:31 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Oh? Becuase $itemcount worked with stacked items in the old system im positive, we used to have to tell people on evolution 1 TO stack them.
__________________
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
  #5  
Old 12-19-2004, 10:34 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

if by old quest system, you mean the .qst thing, then I buy that. but heres the perl code to deal with it, and theres just no way it supports stacked items. Been this way since I got here at least.

Code:
			string hashname = packagename + std::string("::itemcount"); 
			perl->eval(std::string("%").append(hashname).append(" = ();").c_str()); 
			perl->eval(std::string("++$").append(hashname).append("{$").append(packagename).append("::item1};").c_str()); 
			perl->eval(std::string("++$").append(hashname).append("{$").append(packagename).append("::item2};").c_str()); 
			perl->eval(std::string("++$").append(hashname).append("{$").append(packagename).append("::item3};").c_str());
			perl->eval(std::string("++$").append(hashname).append("{$").append(packagename).append("::item4};").c_str());
Reply With Quote
  #6  
Old 12-19-2004, 10:36 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Hmmmm.
Don't know what to say. I could have sworn...

Oh well. :P
__________________
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
  #7  
Old 12-19-2004, 10:39 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

and I take back my statement that it should be trivial to change, because you would have to invent a path for the item counts to get into the Event() handler from the trading code, and as far as I can see, there just isnt such a path right now, nor an easy way to add one without jacking with the Event() prototype, which I dont think is a good solution.
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 01:03 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