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-nmm8 (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-nmm8 (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-nmm8 (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
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
Post Reply 


Messages In This Thread
Maximum amount - mrkarlo - 05-24-2014, 06:45 AM
RE: Maximum amount - Feeh - 05-24-2014, 07:08 AM
RE: Maximum amount - SukmiLongHeart - 06-02-2014, 01:26 AM
RE: Maximum amount - mrkarlo - 05-24-2014, 03:34 PM
RE: Maximum amount - mrkarlo - 05-25-2014, 09:34 PM
RE: Maximum amount - mrkarlo - 06-04-2014, 02:41 AM
RE: Maximum amount - Staff_Stanic - 06-04-2014 12:00 PM
RE: Maximum amount - Extreme - 06-04-2014, 12:34 PM
RE: Maximum amount - mrkarlo - 06-06-2014, 12:07 AM

Forum Jump:


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