luisangelops Posted May 23, 2022 Posted May 23, 2022 Help! Script for broadcast WoE countdown for 1 Hour WoE. I saw one rathena script but its 2 hours. I already change 120 Timer to 60 but its wrong countdown. heres the script of 2 hours woe count down. but i need 1 hour woe count down. Thank You! - script WOE_Countdown -1,{ OnAgitStart: goto STARTWOE; end; OnAgitInit2: goto STARTWOE; end; STARTWOE: .woe_countdown = 120; initnpctimer; end; OnTimer60000: .woe_countdown--; if ( .woe_countdown < 10 || ( .woe_countdown % 10 ) == 0 ) { announce "[WOE ANNOUNCER] Left "+.woe_countdown+" minute(s)",bc_all; } if ( .woe_countdown == 1 ) { stopnpctimer; sleep 30000; for ( .@i = 30; .@i > 0; .@i-- ) { announce "[WOE ANNOUNCER] Left "+.woe_countdown+" second(s)",bc_all; } } else setnpctimer 0; end; } Quote
0 buraquera Posted May 24, 2022 Posted May 24, 2022 The script seems to be ok. It should work if u change .timer 60. U said its not working, whats happening? Quote
0 dantoki Posted May 24, 2022 Posted May 24, 2022 (edited) Its working fine. Edited May 24, 2022 by qtdan Quote
Question
luisangelops
Help! Script for broadcast WoE countdown for 1 Hour WoE.
I saw one rathena script but its 2 hours. I already change 120 Timer to 60 but its wrong countdown. heres the script of 2 hours woe count down. but i need 1 hour woe count down. Thank You!
- script WOE_Countdown -1,{
OnAgitStart:
goto STARTWOE;
end;
OnAgitInit2:
goto STARTWOE;
end;
STARTWOE:
.woe_countdown = 120;
initnpctimer;
end;
OnTimer60000:
.woe_countdown--;
if ( .woe_countdown < 10 || ( .woe_countdown % 10 ) == 0 ) {
announce "[WOE ANNOUNCER] Left "+.woe_countdown+" minute(s)",bc_all;
}
if ( .woe_countdown == 1 ) {
stopnpctimer;
sleep 30000;
for ( .@i = 30; .@i > 0; .@i-- ) {
announce "[WOE ANNOUNCER] Left "+.woe_countdown+" second(s)",bc_all;
}
}
else setnpctimer 0;
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.