Jump to content
  • 0

Question

Posted
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"

3 answers to this question

Recommended Posts

  • 0
Posted
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; 

 

  • 0
Posted (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 by AnnieRuru
  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...