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-09-2004, 08:22 AM
Swampdog
Hill Giant
 
Join Date: May 2004
Posts: 106
Default Problems with Perl quest::summonitem

Some of the quests I'm working on reward food or drink along with experience. In trying to reward multiples, it seems it is still only summoning one of the item. From my understanding, if the item is stackable and an amount is specified the summonitem statement should place a stack of the amount specified on the players cursor.

For example:

Code:
quest::summonitem(3015,5);
would summon a stack of 5 of item 3015. However, when the quest runs only one of 3015 is given. I've run it both with and without quotes around the individual parameters within () and had the same results for both.

Can anyone tell me how to get the second parameter to pass and process? /quits pulling at his hair in fear of pulling out the last bit he has left :P
__________________
Kukthar
Discord Aftermath (alpha) LAN Party Server [Custom Legit] - Op/Dev
Temporarilly on hold due to time constraints
Damn rl interupting fun anyways.. :P
Reply With Quote
  #2  
Old 06-10-2004, 04:13 AM
Dave987
Discordant
 
Join Date: Jun 2003
Location: England
Posts: 267
Default

I'm not sure if perl supports having the number of items to summon after, even if it is stackable..

Maybe you should try having
Code:
quest::summonitem(3015);
quest::summonitem(3015);
quest::summonitem(3015);
quest::summonitem(3015);
quest::summonitem(3015);
? It would summon 5 seperately - I'll be (trying) to learn c++ within the next few months, or the very basics of it, so if it still isn't coded in by then, I'll try give it a shot :P

.. or someone already knowing c++ could code it in - that'd be easier
__________________
;o)
Reply With Quote
  #3  
Old 06-10-2004, 04:20 AM
Swampdog
Hill Giant
 
Join Date: May 2004
Posts: 106
Default

Yup.. Know I could do it that way. I was just going by the syntax as shown in the guide stickied at the top for writing perl quests "Guide to the Perl Quest system *updated 16/02/2004*":

Quote:
quest::summonitem(itemid); or quest::summonitem(itemid,charges); - Summons "itemid" to user that triggered Event. Charges is the number of charges, or number of items in the stack depending on the item type, it is also optional.
So if it is intended to be able to summon a stack, would love to get it to work clean so the user gets a stack of specified amount instead of one at a time.. :P
__________________
Kukthar
Discord Aftermath (alpha) LAN Party Server [Custom Legit] - Op/Dev
Temporarilly on hold due to time constraints
Damn rl interupting fun anyways.. :P
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:36 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