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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with logout script
Author Message
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #1
problem with logout script
im having trouble getting the player to logout and the new item bounced into their pack. anyone know exactly what im doing wrong?

Code:
[PLEVEL 1]
logout

[FUNCTION logout]
IF <SRC.TAG.LOGOUT>=1>>
src.findid.i_logout_delay.remove
SRC.TAG.LOGOUT=0
MESSAGE @079 You have changed your mind about logging out right now
RETURN 1
ELSE
SRC.TAG.LOGOUT=1
SRC.NEWITEM=i_logout_delay
SRC.ACT.EQUIP
SYSMESSAGE @0481 You Will Receive Player Reward Tickets For Logging Out Correctly. Thank You For Helping Keep <serv.name> Lag Free!
SYSMESSAGE @079 You will be logged out in 30 seconds.
SYSMESSAGE @079 If you decide you dont want to log out simply type .logout again.
RETURN 0
endif

[ITEMDEF i_logout_delay]
src.newitem i_logout_timer
src.act.equip        
src.act.timer 30

NAME=Logout Delay
ID=i_handr_1
TYPE=T_EQ_SCRIPT
WEIGHT=0
LAYER=layer_special

ON=@Create
    ATTR=attr_invis|attr_decay
    MORE1=30
    MOREP=britain

ON=@Equip
    TIMER=1

ON=@Timer
    if ( <cont> )
        if ( <more1> )
            cont.message @079 <EVAL(<more1>)> // put countdown above my head.
            more1=<more1>-1
            TIMER=1
            return 1
        DORAND 56
CONT.GOPLACE 5447,1086
CONT.GOPLACE 5447,1085
CONT.GOPLACE 5447,1084
CONT.GOPLACE 5447,1083
CONT.GOPLACE 5447,1082
CONT.GOPLACE 5447,1087
CONT.GOPLACE 5447,1088
CONT.GOPLACE 5447,1089
CONT.GOPLACE 5447,1090
CONT.GOPLACE 5448,1086
CONT.GOPLACE 5449,1086
CONT.GOPLACE 5450,1086
CONT.GOPLACE 5446,1086
CONT.GOPLACE 5445,1086
CONT.GOPLACE 5444,1086
CONT.GOPLACE 5443,1086
CONT.GOPLACE 5448,1087
CONT.GOPLACE 5448,1088
CONT.GOPLACE 5448,1089
CONT.GOPLACE 5448,1090
CONT.GOPLACE 5448,1085
CONT.GOPLACE 5448,1084
CONT.GOPLACE 5448,1083
CONT.GOPLACE 5448,1082
CONT.GOPLACE 5449,1087
CONT.GOPLACE 5449,1088
CONT.GOPLACE 5449,1089
CONT.GOPLACE 5449,1090
CONT.GOPLACE 5449,1085
CONT.GOPLACE 5449,1084
CONT.GOPLACE 5449,1083
CONT.GOPLACE 5449,1082
CONT.GOPLACE 5450,1087
CONT.GOPLACE 5450,1088
CONT.GOPLACE 5450,1089
CONT.GOPLACE 5450,1090
CONT.GOPLACE 5450,1085
CONT.GOPLACE 5450,1084
CONT.GOPLACE 5450,1083
CONT.GOPLACE 5450,1082
CONT.GOPLACE 5446,1087
CONT.GOPLACE 5446,1088
CONT.GOPLACE 5446,1089
CONT.GOPLACE 5446,1090
CONT.GOPLACE 5446,1085
CONT.GOPLACE 5446,1084
CONT.GOPLACE 5446,1083
CONT.GOPLACE 5446,1082
CONT.GOPLACE 5445,1087
CONT.GOPLACE 5445,1088
CONT.GOPLACE 5445,1089
CONT.GOPLACE 5445,1090
CONT.GOPLACE 5445,1085
CONT.GOPLACE 5445,1084
CONT.GOPLACE 5445,1083
SRC.GOPLACE 5445,1082 // Rand 56
ENDDO
cont.tag.logout=0
src.newitem=i_reward_ticket {10 50}
src.bounce
CONT.DISCONNECT
    endif
    endif
    remove
    return 1


[EOF]
(This post was last modified: 01-26-2014 08:03 AM by Mordaunt.)
01-26-2014 07:37 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
problem with logout script - dabritmusic - 01-26-2014 07:37 AM
RE: problem with logout script - Mordaunt - 01-26-2014, 08:06 AM
RE: problem with logout script - XuN - 01-26-2014, 08:25 AM
RE: problem with logout script - RanXerox - 01-29-2014, 05:03 AM

Forum Jump:


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