Ragnar Lothbrok 21 Posted July 12, 2013 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
0 Emistry 145 Posted July 12, 2013 if (killedrid == getcharid(3) || rand(100) > 40 ) end; 2 jaBote and Ragnar Lothbrok reacted to this Share this post Link to post Share on other sites
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