roro6060 Posted June 7, 2018 Posted June 7, 2018 Quote 2012rwc_02,187,204,3 script 自動倒數器 837,{ mes " [小喇叭]"; mes "你要使用自動倒數器嗎?"; next; menu " [我要使用] ",S_mes1, " [取消] ",clos; S_mes1: mes "[自動倒數器]"; announce "The race will begin",bc_all,0xFF0000; end; OnTimer5000: announce "30",15; end; OnTimer15000: announce "20",15; end; OnTimer25000: announce "10",15; end; OnTimer26000: announce "9",15; end; OnTimer27000: announce "8",15; end; OnTimer28000: announce "7",15; end; OnTimer29000: announce "6",15; end; OnTimer30000: announce "5",15; end; OnTimer31000: announce "4",15; end; OnTimer32000: announce "3",15; end; OnTimer33000: announce "2",15; end; OnTimer34000: announce "1",15; end; OnTimer35000: announce "0",15; end; clos: close; end; OnInit: waitingroom "自動倒數器",0; end; } How to write the code makes the system countdown from thirty seconds? now my script only says "the race will begin" Quote
0 pajodex Posted June 7, 2018 Posted June 7, 2018 48 minutes ago, roro6060 said: mes "[自動倒數器]"; announce "The race will begin",bc_all,0xFF0000; end; make to mes "[自動倒數器]"; announce "The race will begin",bc_all,0xFF0000; initnpctimer; // initialize npc timer end; and here 48 minutes ago, roro6060 said: OnTimer35000: announce "0",15; end; to OnTimer35000: stopnpctimer; // stops the timer announce "0",15; end; Quote
0 AnnieRuru Posted June 7, 2018 Posted June 7, 2018 (edited) why not just use *showdigit ? might need to use addrid because showdigit only attach to 1 player though prontera,155,185,5 script kshdfkfs 1_F_MARIA,{ addrid 1; showdigit ~10, 2; sleep2 10000; showdigit 0, 0; end; } Edited June 7, 2018 by AnnieRuru 1 Quote
Question
roro6060
How to write the code makes the system countdown from thirty seconds?
now my script only says "the race will begin"
3 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.