Jump to content
  • 0

how to put countdown?


roro6060

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  05/22/17
  • Last Seen:  

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"

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

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; 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  05/22/17
  • Last Seen:  

It works!

Thx!!?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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 by AnnieRuru
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...