SphereCommunity
Maximum amount - Printable Version

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



Maximum amount - mrkarlo - 05-24-2014 06:45 AM

hello!
I'm interesting in one thing. The max amount in gold pile is 65xxxK. And the question. How can I change this amount for example - the max amount in gold pile only 50000. thanks!


RE: Maximum amount - Feeh - 05-24-2014 07:08 AM

The maximum pile size you can create is 65535, anything higher than that is not possible.
I don't remember seeing the maximum amount as a feature but you may override this by using @itemDropOn_Item in some player event or @DropOn_Item on your [typedef t_gold]


RE: Maximum amount - mrkarlo - 05-24-2014 03:34 PM

thanx, its possible to make pile of gold not more 50000?


RE: Maximum amount - mrkarlo - 05-25-2014 09:34 PM

If anybody have any ideas its would be big pleasure for me.


RE: Maximum amount - SukmiLongHeart - 06-02-2014 01:26 AM

(05-24-2014 07:08 AM)Feeh Wrote:  The maximum pile size you can create is 65535, anything higher than that is not possible.
I don't remember seeing the maximum amount as a feature but you may override this by using @itemDropOn_Item in some player event or @DropOn_Item on your [typedef t_gold]

This seems to be a pretty accurate answer... as far as I know anyways. Try as he says, go to your gold typedef and add a trigger to check howmuch gold is in that pile.

Grts

(05-24-2014 07:08 AM)Feeh Wrote:  The maximum pile size you can create is 65535, anything higher than that is not possible.
I don't remember seeing the maximum amount as a feature but you may override this by using @itemDropOn_Item in some player event or @DropOn_Item on your [typedef t_gold]

This seems to be a pretty accurate answer... as far as I know anyways. Try as he says, go to your gold typedef and add a trigger to check howmuch gold is in that pile.

Grts


RE: Maximum amount - mrkarlo - 06-04-2014 02:41 AM

thanks! mb anybody have some examples?


RE: Maximum amount - Staff_Stanic - 06-04-2014 12:00 PM

The idea is simple:
- When the gold is created, if the AMOUNT X is seted to more than 50.000, separte in two amounts: 50.000 and X-50.000.
Something like:
Code:
ON=@Create
    IF (AMOUNT > 50.000)
        SET A VAR AMOUNT_TIMES = AMOUNT/50.000
        SET A VAR REST = AMOUNT mod 50.000
        WHILE (the VAR AMOUNT_TIMES > 0)
            CREATE ITEM GOLD
            SET AMOUNT 50.000
            AMOUNT_TIMES -= 1
        END-WHILE
        IF (the VAR REST > 0)
            CREATE ITEM GOLD
            SET AMOUNT REST
        END-IF
    END-IF

- When the gold is stacked check if the pile will have amount more than 50.000, if so, do something like when the gold is created.


RE: Maximum amount - Extreme - 06-04-2014 12:34 PM

They maybe will merge together, but you have to try.


RE: Maximum amount - mrkarlo - 06-06-2014 12:07 AM

thanks! as I understand - its just an example? ok, I will think about it.