Can anyone help me on this script

Ragnar Lothbrok

New member
Messages
317
Points
0
Age
40
Location
In the Desert or Morocc
Emulator
how to add chances to recieved the badge when killing players

like 40%/chances will recieved the badge

- script BattleBadge -1,{
OnPCKillEvent:
if (killedrid == getcharid(3)) end;
for(set .@i,0; .@i<.size; set .@i,.@i+1)
if (strcharinfo(3)==.maps$[.@i]) {
getitem .items[rand(getarraysize(.items))],1; break; }
end;
OnInit:
setarray .maps$[0],"pvp_y_1-2","pvp_y_2-2","pvp_y_3-2";
setarray .items[0],7828,7829,7773;
set .size, getarraysize(.maps$);
end;
}
 
Back
Top