Jump to content
  • 0
Sign in to follow this  
Ragnar Lothbrok

Can anyone help me on this script

Question

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;
}

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.