prontera,149,129,5 script TotalTimeOnline 857,{
mes "For your account, you have been online a total of:";
mes callsub(S_SecToTime, @login_time ? (#secs_online + (gettimetick(2)-@login_time)) : #secs_online);
close;
S_SecToTime:
set .@seconds, getarg(0);
set .@seconds, .@seconds - set(.@weeks, .@seconds / 604800)*604800;
set .@str$, .@str$ + .@weeks+((.@weeks==1) ? " week":" weeks")+", ";
set .@seconds, .@seconds - set(.@days, .@seconds / 86400)*86400;
set .@str$, .@str$ + .@days+((.@days==1) ? " day":" days")+", ";
set .@seconds, .@seconds - set(.@hours, .@seconds / 3600)*3600;
set .@str$, .@str$ + .@hours+((.@hours==1) ? " hour":" hours")+", ";
set .@seconds, .@seconds - set(.@mins, .@seconds / 60)*60;
set .@str$, .@str$ + .@mins+((.@mins==1) ? " min":" mins")+", and ";
set .@str$, .@str$ + .@seconds+((.@seconds==1) ? " second":" seconds");
return .@str$;
OnPCLoginEvent:
set @login_time, gettimetick(2);
end;
OnPCLogoutEvent:
if (@login_time)
set #secs_online, #secs_online + (gettimetick(2)-@login_time);
end;
}
What I want:
- Edit that you can watch your character based online time and account based online time - Edit a ranking list of top 5 online CHARACTERS, everybody of them will get another reward (via mail) (each sunday) (for example 1. will get 501 2. will get 502, and so on)
- gm level 5 and above will not listed in ranking - gm menu to reset the ranking
Question
leertaste
I've got this script:
What I want:
- Edit that you can watch your character based online time and account based online time
- Edit a ranking list of top 5 online CHARACTERS, everybody of them will get another reward (via mail) (each sunday)
(for example 1. will get 501 2. will get 502, and so on)
- gm level 5 and above will not listed in ranking
Edited by leertaste- gm menu to reset the ranking
thaaaaaanks <3
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.