Page 1 of 1

"Array" type for spell_data

Posted: Tue Jan 13, 2009 5:24 pm
by John Adams
LE,

First, the request:
Is it possible to add a spell_data "value_type" that can accept an array of data? I don't think the data type matters as much as the ability to shove, say, 10 item IDs to a summon spell without having to build a spell_data containing 10 params.


Second, the necessity evaluation :)
Experts: Is there ANY reason a spell or combat art needs to summon more than 2 items EVER? Al la summoning food and water in the same spell. Like in EQ1, there was a spell to summon an entire armor set which I believe was a bag with 7 items in it ready to wear (which in reality was summoning 1 item, but it had other items inside).

Does EQ2 have anything like that? Or is it safe to say we will never, ever need to summon more than 2 items in any of our 4000 spells in EQ2? :)

(read this as, do not guess, know for a fact, or do not reply please ;) this is important )

Re: "Array" type for spell_data

Posted: Tue Jan 13, 2009 6:19 pm
by Bion
ok will not guess but i will tell you what i know to be true....

rangers can summon arrows depending on the quality of the spell it will increase the number of arrows per summon. However it is the same arrow just more then one given at a time

there are a few pouches(items) that summon ammo one from unrest that will summon a stack of cogs.
bows and pouches from DT and a few other places as well.

Re: "Array" type for spell_data

Posted: Tue Jan 13, 2009 6:21 pm
by Scatman
If it's just one item, but more than one of that same item, we should just be able to use two parameters: one for the item id and the other for quantity.

Re: "Array" type for spell_data

Posted: Tue Jan 13, 2009 6:58 pm
by Bion
I not sure if this would pertain to this or not but there are some items which has more then one item in it. I am not exactly sure how it works though never had these items in game. but they allow you to get the whole set of the armor

\aITEM 197367090 2090813647:Ironforge Parade Armor Crate\/a
\aITEM 1418581866 604419125:Seafury Buccaneer Armor Crate\/a
\aITEM -1201515996 1070998967:Tunarian Alliance Armor Crate\/a


and there is this item
\aITEM -673506249 241338863:a box of utterly classless hats\/a

that allows you to choose 1 of the 24 hats in the box but you can use it unlimited times, so while it does not give you all at once you get them one at a time.

I know these are not spells but was not sure if this would use the same methods once designed just wanting to throw this out there.

Re: "Array" type for spell_data

Posted: Sat Feb 07, 2009 11:41 am
by John Adams
Ok then... for now I think we'll assume that any classes "summon item" spell or ability will summon no more than 2 unique items, regardless of items that by nature contain 1-x other item quantities. This means that in our summon.lua scripts, we only need to pass 2 sets of params. Item1ID and Item2ID and their min/max quantities.

Until we encounter a summon that needs more, I will cancel this request.