Stackable potions - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Stackable potions (/Thread-Stackable-potions) Pages: 1 2 |
Stackable potions - Kapa - 11-02-2014 03:56 AM HI, how to make potions stackable? RE: Stackable potions - azmanomer - 11-02-2014 04:24 AM i fix that changed potions scripts like this; [itemdef i_potion_agility] id=i_bottle_empty --------------> make id empty bottle name=agility type=t_potion tdata1=i_bottle_empty resources=1 i_reag_blood_moss,1 i_bottle_empty skillmake=alchemy 15.1, t_mortar on=@create more1=s_agility more2=15.1 60.0 dispid=i_bottle_blue -----------> give its color update --------------------------> update RE: Stackable potions - Extreme - 11-02-2014 04:46 AM They must have the same MORE2. RE: Stackable potions - azmanomer - 11-02-2014 05:34 AM yeah its look like mine is unnecessary just put one more2 value RE: Stackable potions - Kapa - 11-02-2014 04:59 PM thx i ll try that Thx works perfect RE: Stackable potions - Kapa - 11-02-2014 06:26 PM To make them stackable i think it shoud have been like that. [ITEMDEF i_potion_Agility] ID=i_bottle_empty 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 } COLOR=00c6 dispid=i_bottle_empty update RE: Stackable potions - Mordaunt - 11-02-2014 09:51 PM As was said previously.. make the MORE2 the same... MORE2= X not MORE2= { X Y } RE: Stackable potions - XuN - 11-02-2014 10:11 PM Yes, you are writing the same for all potions like this but ... the {} means a random value from the numbers inside... so a potion can have 15.1 and another one 33.5, or any number until 60.0 ... so the created potions will not even be the same, hence they will not stack. RE: Stackable potions - Kapa - 11-04-2014 05:39 AM If i have 10 shrink bottles stacked and i use one all 10 disapier. any idea how to fix that? [ITEMDEF i_potion_Shrink] ID=i_bottle_empty NAME=Shrink TYPE=T_POTION TDATA1=i_bottle_empty RESOURCES=i_reag_batwing 2, i_bottle_EMPTY SKILLMAKE=ALCHEMY 100.0 ON=@Create MORE1=s_shrink MORE2=100.0 COLOR=09d1 dispid=i_bottle_empty update ON=@Dropon_char obj=<argo> IF !(0<obj.ISMYPET>) src.sysMESSAGE="<obj.NAME> this is not your pet." RETURN 1 ENDIF obj.SHRINK remove RETURN 1 on=@dclick target="what do you want to shrink?" return 1 on=@targon_char IF !<src.targ.ismypet> src.sysMESSAGE="<src.targ.NAME> this is not your pet." RETURN 1 ENDIF src.targ.SHRINK remove RETURN 1 on=@targon_item src.sysmessage="Items cannot be shrunk this way" return 1 RE: Stackable potions - darksun84 - 11-04-2014 05:56 AM the command remove, remove the whole stack, you have to use " consume" CONSUME amount W Deducts an amount from the item, deleting it at 0. It will not create the empty bottle btw. |