SphereCommunity
Agility and Great Agi Not Stackeable. - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Agility and Great Agi Not Stackeable. (/Thread-Agility-and-Great-Agi-Not-Stackeable)

Pages: 1 2


Agility and Great Agi Not Stackeable. - Lazarus - 10-14-2012 09:24 AM

Agility and great agi has not stackeable.

Any way to do Shock?

i_bottle_blue for more reference
or i_potion_agility and agilitygreat.


Lazarus.

[This is so stupid... but my players are so fussy]

Tongue


Other question:

24-09-2012, Terrikate
- Fixed #2078: t_multi_custom causes memory leak in client

This fix, uses any script? or it's hardcoded? Shock


RE: Agility and Great Agi Not Stackeable. - RanXerox - 10-14-2012 09:29 AM

Post the script for those potions and we can tell you how to change it.


RE: Agility and Great Agi Not Stackeable. - Lazarus - 10-14-2012 09:55 AM

(10-14-2012 09:29 AM)RanXerox Wrote:  Post the script for those potions and we can tell you how to change it.

This are NOT stackeables [Default potions of agility]
Code:
[ITEMDEF i_potion_Agility]
ID=i_bottle_blue
NAME=Agility
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blood_moss, i_bottle_empty
SKILLMAKE=ALCHEMY 15.1

ON=@Create
    MORE1=s_Agility
    MORE2={ 15.1 60.0 }

[ITEMDEF i_potion_AgilityGreat]
ID=i_bottle_BLUE
TYPE=T_POTION
NAME=Greater Agility
TDATA1=i_bottle_empty
RESOURCES=i_reag_blood_moss 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 70.1

ON=@Create
    MORE1=s_Agility
    MORE2={ 70.1 80.0 }

The other normal potions [DEFAULT POTS] are stackeables :|

I_bottle_blue

Code:
[ITEMDEF 0f08]
//Potion (Blue)
DEFNAME=i_bottle_blue
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_bottle_empty
WEIGHT=1
DESCRIPTION=Potion (Blue)(Agility)
SUBSECTION=Potions
CATEGORY=Provisions - Alchemy & Magic

ON=@Create
    MORE1=s_agility
    MORE2={ 300 900 }


I didn't see any difference with the others potions and bottles.


RE: Agility and Great Agi Not Stackeable. - Anarch Cassius - 10-14-2012 10:01 AM

They are the same spell at different strengths, that's why. Agility will not stack with itself, nor will any spell.


RE: Agility and Great Agi Not Stackeable. - Lazarus - 10-14-2012 11:04 AM

(10-14-2012 10:01 AM)Anarch Cassius Wrote:  They are the same spell at different strengths, that's why. Agility will not stack with itself, nor will any spell.


NOnonono!
I don't want the stack of AGILITY and GREATER AGILITY.

The ID of BOTTLE_BLUE don't stack [GREATER AGILITY + GREATER AGILITY DON'T STACK!]
Tongue

haha.
^_^

and this:

Other question:

24-09-2012, Terrikate
- Fixed #2078: t_multi_custom causes memory leak in client

This fix, uses any script? or it's hardcoded?


RE: Agility and Great Agi Not Stackeable. - ShiryuX - 10-14-2012 11:42 AM

Is an internal fix in the core, packet handling.


RE: Agility and Great Agi Not Stackeable. - Mordaunt - 10-14-2012 12:35 PM

Way back when...

I would edit the tiledata to make all bottles stackable.
You could do that.


RE: Agility and Great Agi Not Stackeable. - Anarch Cassius - 10-14-2012 12:42 PM

Oh, that sort of stacking Smile

In that case change this part:
MORE2={ 15.1 60.0 }

to something like

MORE2=35.0


The issue is that your potions are generated in a range of strengths and the values need to be exact to stack.


RE: Agility and Great Agi Not Stackeable. - Mordaunt - 10-14-2012 12:50 PM

Yeah... but isn't there an issue with one type of potion not being set as stackable in the game files?
Or was that fixed finally?


RE: Agility and Great Agi Not Stackeable. - Rayvolution - 10-14-2012 02:36 PM

For potions to be stackable, they have to have the exact same values across the board, so you'll have to set MORE2 to a "hard" whole number, not a variable.

Think of it this way: When a few items are stacked, they technically become "one item" with an AMOUNT value. How would the server be able to figure out what potion is what if they're all merged into one big item?

I made all my potions stackable, and just added 3 tiers for each (Minor, Moderate and Major). They have hard-set values so they can stack.

EDIT: I reread your post, and from what I can tell none of your potions should be able to stack, I'm parplexed why the I_BOTTLE_BLUE can at all. It should *not* be able to. did you check the MORE2 values of the stacking blue potions in game? Maybe through some fluke they are all generating the same value?

.. also, If they are different values, but still somehow stacking, you may have another problem too. The stacked (and then unstacked) bottles will probably all have the same MORE2 value once you split them up overwriting their old values.