SphereCommunity
BANKBOX WEIGHT LIMIT - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: BANKBOX WEIGHT LIMIT (/Thread-BANKBOX-WEIGHT-LIMIT)



BANKBOX WEIGHT LIMIT - kn4tseb - 08-23-2014 05:24 AM

Hi mates, i have a question, INI file allows as to set the max of stones we want for bankbox but my question is.. is this setting only for players or it involves all chars, included NPCs?

And is this variable a writeable one in game?

i mean may i code: SRC.BankMaxWeight 10

im trying to limit the capacity of the stabler..
??
thanks ^^


RE: BANKBOX WEIGHT LIMIT - darksun84 - 08-23-2014 05:36 AM

According to the wiki, t_eq_bankbox is a container so

Code:
TAG.OVERRIDE.MAXITEMS    Overrides the maximum number of items that can be placed into a container (default: 255)
TAG.OVERRIDE.MAXWEIGHT    Overrides the maximum total weight that can be placed into a container.

could be applied on the i_bankbox item (not sure btw).


RE: BANKBOX WEIGHT LIMIT - kn4tseb - 08-23-2014 06:50 AM

thanks darksun!! so, in case its overriden

should i use MAXITEMS and MAXWEIGHT FOR CHECKING?? i mean

FOR EXAMPLE:
Code:
REF1 = <SRC.FINDLAYER.29.UID>
REF1.TAG.OVERRIDE.MAXITEMS = 100

IF <REF1.WEIGHT> > 100
BLA BLA
ENDIF

nevermind, i got it! thanks, but how do i get how many items a container has?


RE: BANKBOX WEIGHT LIMIT - Extreme - 08-23-2014 02:30 PM

<RESCOUNT> assuming <UID> is the container.


RE: BANKBOX WEIGHT LIMIT - kn4tseb - 08-23-2014 03:26 PM

OHH thanks extreme! once again Smile