viewing paste on/off points | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
-   script  online_offline_point    -1,{
    
    OnPCLogoutEvent:
        #last_logout = gettimetick(2);
        end;
 
    OnCheck:
        #ONLINEPOINTS++;
 
    OnPCLoginEvent:
        if ( #last_logout ) {
            .@time = ( gettimetick(2) - #last_logout );
            #OFFLINEPOINTS += ( .@time / 3600 ); // every 1 hour 1 point
            #last_logout = 0;
        }
        addtimer 3600000,strnpcinfo(0)+"::OnCheck";
        end;
 
}
Viewed 1196 times, submitted by Emistry.