The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maximum amount
Author Message
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #1
Maximum amount
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!
05-24-2014 06:45 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #2
RE: Maximum amount
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]

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 05-24-2014 07:19 AM by Feeh.)
05-24-2014 07:08 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Feeh's post
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #3
RE: Maximum amount
thanx, its possible to make pile of gold not more 50000?
05-24-2014 03:34 PM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #4
RE: Maximum amount
If anybody have any ideas its would be big pleasure for me.
05-25-2014 09:34 PM
Find all posts by this user Like Post Quote this message in a reply
SukmiLongHeart
Apprentice
*

Posts: 43
Likes Given: 13
Likes Received: 5 in 3 posts
Joined: Sep 2013
Reputation: 0

Uberon

Post: #5
RE: Maximum amount
(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

[Image: Bannergateway.png]
(This post was last modified: 06-02-2014 01:53 AM by SukmiLongHeart.)
06-02-2014 01:26 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #6
RE: Maximum amount
thanks! mb anybody have some examples?
06-04-2014 02:41 AM
Find all posts by this user Like Post Quote this message in a reply
Staff_Stanic
Journeyman
*

Posts: 96
Likes Given: 25
Likes Received: 14 in 8 posts
Joined: Nov 2012
Reputation: 1

Dimension Shard

Post: #7
RE: Maximum amount
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.
(This post was last modified: 06-04-2014 12:01 PM by Staff_Stanic.)
06-04-2014 12:00 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #8
RE: Maximum amount
They maybe will merge together, but you have to try.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
(This post was last modified: 06-04-2014 01:21 PM by Extreme.)
06-04-2014 12:34 PM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #9
RE: Maximum amount
thanks! as I understand - its just an example? ok, I will think about it.
(This post was last modified: 06-06-2014 12:07 AM by mrkarlo.)
06-06-2014 12:07 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)