addrid(4,0,36,63,63,36);
for (set .@i,0; .@i < getarraysize(.prize); .@i++ ){
getitem .prize[.@i],.prize[.@i];
}
announce .npcName$ + " : We have a winner. "+ strcharinfo(0) +" wins the death by dice event round "+ .diceRound +".",0;
detachrid;
if (.consolation){
addrid(1);
for (set .@t,0; .@t < getarraysize(.consolation); .@t++ ){
getitem .consolation[.@t],.consolation[.@t];
}
detachrid;
}
sleep 5000;
announce "Thank you for playing...";
The issue is when this event was triggered. The "rids" works fine however after the rid, the announcement "Thank you for playing..." will be announced multiple times. If there is 5 players the announcement will announced 5 times as well. How can I make it announce once only?
Question
Reborn
Hello guys. Can anyone help me to fix this?
addrid(4,0,36,63,63,36); for (set .@i,0; .@i < getarraysize(.prize); .@i++ ){ getitem .prize[.@i],.prize[.@i]; } announce .npcName$ + " : We have a winner. "+ strcharinfo(0) +" wins the death by dice event round "+ .diceRound +".",0; detachrid; if (.consolation){ addrid(1); for (set .@t,0; .@t < getarraysize(.consolation); .@t++ ){ getitem .consolation[.@t],.consolation[.@t]; } detachrid; } sleep 5000; announce "Thank you for playing...";
The issue is when this event was triggered. The "rids" works fine however after the rid, the announcement "Thank you for playing..." will be announced multiple times. If there is 5 players the announcement will announced 5 times as well. How can I make it announce once only?
Link to comment
Share on other sites
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.