Noire Posted August 27, 2013 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 103 Reputation: 1 Joined: 06/26/13 Last Seen: April 14 Share Posted August 27, 2013 (edited) A script that every hour/s it'll disp bottom a player/s that playing online. ( Except Vending and Afk'ed )EG:Server : You've already played 1 hour please take a rest.Server : You've already played 2 hours please take a rest. Server : You've already played 3 hours please take a rest. and so on. Edited August 27, 2013 by Dokiee Quote Link to comment Share on other sites More sharing options...
1 Emistry Posted August 27, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 27, 2013 OnCheck: if( !checkvending() && !checkchatting() ){ set @hour,@hour + 1; dispbotton "You have played for "+@hour+" hours. Please take a rest."; OnPCLoginEvent: addtimer ( 3600 * 1000 ),strnpcinfo(0)+"::OnCheck"; } end; Quote Link to comment Share on other sites More sharing options...
Skorm Posted August 27, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted August 27, 2013 - script Players -1,{ OnMinute00: .u = getusers(1); .i = 0; .a = 0; addrid(0); if( checkvending() || checkidle() > 60 ) .i++; .a++; if( .u==.a ) announce "There are currently "+( .u=.a-.i )+" active player"+( .u==1?"":"s" )+" online!",bc_all; } Woops sorry, Dokiee, I read your request wrong. I think Emistry has the right idea. Quote Link to comment Share on other sites More sharing options...
Capuche Posted August 27, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted August 27, 2013 @Skorm Note the server will display an announce for each instance, even if you detach the rid Quote Link to comment Share on other sites More sharing options...
Skorm Posted August 27, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted August 27, 2013 @Skorm Note the server will display an announce for each instance, even if you detach the rid Yeah I figured, didn't bother to change it or even test because I read the request wrong. @Capuche I wanted to ask though are all players considered attached to that one instance? Would .@scope work Instead of an .npc_var? I rarely use Addrid and figured you might have more insight on the topic. Had sometime and tested it- They aren't Quote Link to comment Share on other sites More sharing options...
Question
Noire
A script that every hour/s it'll disp bottom a player/s that playing online. ( Except Vending and Afk'ed )
EG:
Server : You've already played 1 hour please take a rest.
Server : You've already played 2 hours please take a rest.
Server : You've already played 3 hours please take a rest.
and so on.
Edited by DokieeLink 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.