Anti AFK Check (Captcha)

Anti afk check with random captcha. Client and server side config examples are below.

Client side antiafk.dat (inside script.pk)

(filechk file_ver (country_type ENG) (filename antiafk))
(background
    (font 12) 
    (link system ( param ( width 292) ( height 110) ( center) ( style title ) ( caption "Anti AFK Check") ))
    (link mainframe 
        ( param ( upleft "data\ui\info-menu-top left.bmp" ) 
            ( upcenter "data\ui\info-menu-top center.bmp" ) 
            ( upright "data\ui\info-menu-top right.bmp" )
            ( left "data\ui\info-menu-left.bmp" ) 
            ( right "data\ui\info-menu-right.bmp" )
            ( downleft "data\ui\info-menu-bottom left.bmp" ) 
            ( downcenter "data\ui\info-menu-bottom center.bmp" ) 
            ( downright "data\ui\info-menu-bottom right.bmp" )

            ( offset 5 5 -5 -40 )
            ( titlebar 0 0 282 45 ( caption 30 -10 ) ( close 0 -15 ) )
            ( bg 15 15 -15 -45 )
        )
    )
)

( page
    ( font 12)
    ( offset 12 5)
    ( word "Please input the captcha correctly in 2 minutes!")
)

( page
    ( font 12)
    ( pos 10 24)
    ( label (text "Captcha") ( width 19) ( color 255 255 215) (noframe))
    ( offset 2 )
    ( edit name ( width 12) (limit 20) (readonly))
)

( page
    ( font 12)
    ( offset 10 5)
    ( label (text "Re-Captcha")( width 19) (color 255 255 215)(noframe))
    ( offset 2 )
    ( edit captcha  ( width 12) (limit 14))
)

(page (pos 0 74) (bitmap 'data\ui\general confirm-image' (alpha)))

(page (pos 24 79)
    (button "afksend" (text "Confirm") (bitmap 'data\ui\B03-default' ) (BtnPop 'data\ui\B03-over') (BtnPush 'data\ui\B03-on') ) 
)

server side AntiAfk.txt (inside config folder)

[AntiAfk]
Time = 3600000
Delay = 120000

(area (ksm 32_29))
(area (ksm 31_29))