Onairda Posted January 20 Group: Members Topic Count: 71 Topics Per Day: 0.02 Content Count: 168 Reputation: 8 Joined: 12/30/16 Last Seen: Tuesday at 07:15 AM Share Posted January 20 Hello, Can someone help me to edit this script to only count 1 hour and 20 minutes then refresh again to 1 hour and 20 minutes: because I have an event that starts every 1 hour and 20 minutes. prontera,150,150,5 script HourTimer 111,{ OnInit: while( .@a != 1 ){ delwaitingroom; waitingroom ""+gettimestr( "%H:%M:%S %p",15),0; sleep 1000; } end; } Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted January 23 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10015 Reputation: 2357 Joined: 10/28/11 Last Seen: Saturday at 02:34 PM Share Posted January 23 prontera,150,150,5 script HourTimer 111,{ .time = gettimetick(2) + 4800; // 1 hours 20 minutes from current time end; OnTimer1000: delwaitingroom; if (.time > gettimetick(2)) waitingroom ""+gettimestr( "%H:%M:%S %p", 15, .time), 0; OnInit: initnpctimer; end; } something like this. just set the duration when you want it to start. .time = gettimetick(2) + 4800; Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted January 20 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 92 Joined: 06/30/18 Last Seen: 6 hours ago Share Posted January 20 prontera,150,150,5 script HourTimer 111,{ end; OnInit: On7200000: initnpctimer; delwaitingroom; waitingroom("" + gettimestr("%H:%M:%S %p",15),0); } Quote Link to comment Share on other sites More sharing options...
Question
Onairda
Hello,
Can someone help me to edit this script to only count 1 hour and 20 minutes then refresh again to 1 hour and 20 minutes:
because I have an event that starts every 1 hour and 20 minutes.
prontera,150,150,5 script HourTimer 111,{ OnInit: while( .@a != 1 ){ delwaitingroom; waitingroom ""+gettimestr( "%H:%M:%S %p",15),0; sleep 1000; } end; }
Link to comment
Share on other sites
2 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.