Onairda Posted January 20, 2024 Posted January 20, 2024 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
0 Emistry Posted January 23, 2024 Posted January 23, 2024 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
0 Winterfox Posted January 20, 2024 Posted January 20, 2024 prontera,150,150,5 script HourTimer 111,{ end; OnInit: On7200000: initnpctimer; delwaitingroom; waitingroom("" + gettimestr("%H:%M:%S %p",15),0); } Quote
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; }
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.