- script Dynamic_Drops -1,{
OnNPCKillEvent:
if( strcharinfo(3) == .map$ ){
if( killedrid == .killed_id ){
flks++;
announce "Points +1 ["+ f1ks +"/5]",3;
}
if( f1ks >= 5 ){
flks = 0;
sc_start sc_INCREASEAGI, 360000,10;
sc_start sc_BLESSING, 360000,10;
.@prize = rand(1,2);
if(.@prize == 1){
dispbottom "You got the first prize on the Roulette!";
getitem 2285,1;
} else {
announce "You got the second prize on the Roulette!";
getitem 16707,1;
}
}
}
end;
OnInit:
.map$ = "prontera";
.killed_id = 1002;
end;
}
you're wrong in the rand line.
set .@prize rand (1,2){ -> set .@prize, rand(1,2);