Dice Event 3x

try:

if($@dice_event == 2 && getusers(8) == 1)
or 

Code:
if($@dice_event == 2 && getmapusers("quiz_01") == 1)
 
Last edited by a moderator:
read the script carefully

quiz_01,204,93,6 script Dice#dc001 715,{//--------------------------------------------------OnInit: set .evt_reward_item,505; set .rtrn_map$,"prontera"; set .rtrn_x,113; set .rtrn_y,97; set $@dice_event,1; end; // <-- END !! if($@dice_event==2&&getusers(0)==1){ mes "[Mr. Dice]"; mes "Congrats. You've won."; getitem .evt_reward_item,rand(1,20); close2; announce "We have a winner! well done "+strcharinfo(0)+".",0; set $@dice_event,0; warp .rtrn_map$,.rtrn_x,.rtrn_y; disablenpc "Dice#dc001"; } end;btw this script is very unoptimized ...for example, I also found the reward npc also not poping up when play for 2nd round ... etc etc

 
Last edited by a moderator:
Back
Top