Ragnar Lothbrok Posted July 12, 2013 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Share Posted July 12, 2013 How to add chances or percent to recieved the badge like 40%chances if player kill a player? - 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;} Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 12, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: 4 hours ago Share Posted July 12, 2013 if (killedrid == getcharid(3) || rand(100) > 40 ) end; 1 Quote Link to comment Share on other sites More sharing options...
Question
Ragnar Lothbrok
How to add chances or percent to recieved the badge like 40%chances if player kill a player?
- 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;
}
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.