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-nmm7 (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-nmm7 (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-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not triggering time expiry
Author Message
mlyon83
Apprentice
*

Posts: 44
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2013
Reputation: 0



Post: #1
Not triggering time expiry
The script below won't take action to release a player from jail. LINK.ACCOUNT.TAG.JAIL_TIME value is 30 seconds. Any idea?


Code:
IF (<LINK.ACCOUNT.TAG.JAIL_STATUS> == 1)
    LINK.TAG.JAIL_TEMP_CALC=<EVAL <SERV.TIME> / 10>
    LINK.TAG.JAIL_TEMP_CALC2=<EVAL <SERV.TIME>+<LINK.ACCOUNT.TAG.JAIL_TIME>>
    IF (<LINK.TAG.JAIL_TEMP_CALC> >= <LINK.TAG.JAIL_TEMP_CALC2>)
        LINK.ACCOUNT.TAG.JAIL_STATUS=0
        LINK.TAG.JAIL_LOGIN=0
        LINK.TAG.JAIL_LOGIN2=0
        LINK.EVENTS=-e_player_jailed
        LINK.GO=<LINK.TAG.JAIL_RELEASE_POSITION>
        LINK.MESSAGE @00 You feel free.
    ELSE
        IF (<LINK.REGION.NAME> != Jail)
            VAR.NEXT_JAIL_CELL=<VAR.NEXT_JAIL_CELL>+1
            IF (<VAR.NEXT_JAIL_CELL> >= 5)
                LINK.GO=3905,1255,-10
                VAR.NEXT_JAIL_CELL=0
            ELSEIF (<VAR.NEXT_JAIL_CELL> >= 4)
                LINK.GO=3904,1265,-10
            ELSEIF (<VAR.NEXT_JAIL_CELL> >= 3)
                LINK.GO=3914,1265,-10
            ELSEIF (<VAR.NEXT_JAIL_CELL> >= 2)
                LINK.GO=3914,1255,-10
            ELSEIF (<VAR.NEXT_JAIL_CELL> >= 1)
                LINK.GO=3905,1255,-10
            ENDIF
            LINK.MESSAGE @00 You cannot leave jail until you're forgiven.
        ELSE
            LINK.MESSAGE @00 Nothing shows, test.
        ENDIF
    ENDIF
ENDIF
05-18-2013 04:39 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Not triggering time expiry - mlyon83 - 05-18-2013 04:39 AM
RE: Not triggering time expiry - RanXerox - 05-18-2013, 06:12 AM
RE: Not triggering time expiry - mlyon83 - 05-18-2013, 10:54 AM
RE: Not triggering time expiry - RanXerox - 05-18-2013, 04:52 PM

Forum Jump:


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