Ragnar Lothbrok Posted July 7, 2012 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 7, 2012 How to set only in PVP, everytime you killed a player you gain Battle Badge.... Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 7, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 7, 2012 - <tab> script <tab> BattleBadge <tab> -1,{ OnPCKillEvent: if (strcharinfo(3)=="your_pvp_map" && killedrid != getcharid(3)) getitem your_item,1; end; } Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted July 7, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted July 7, 2012 Can i add 3 maps like pvp_y_1-2,pvp_y_2-2,pvp_y_3-2,?? Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 7, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 7, 2012 - <tab> script <tab> BattleBadge <tab> -1,{ OnPCKillEvent: if (killedrid == getcharid(3)) end; for(set .@i,0; .@i<.size; set .@i,.@i+1) if (strcharinfo(3)==.maps$[.@i]) { getitem your_item,1; break; } end; OnInit: setarray .maps$[0],"pvp_y_1-2","pvp_y_2-2","pvp_y_3-2"; set .size, getarraysize(.maps$); end; } Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted July 7, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted July 7, 2012 Thank you so much Euphy! can you add random getitem? like valor,battle,bravery badge? Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 7, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 7, 2012 - <tab> script <tab> BattleBadge <tab> -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...
Ragnar Lothbrok Posted July 7, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted July 7, 2012 so much! can you help me also w/ this sir?? http://rathena.org/board/topic/66885-lms-script-bug/ Quote Link to comment Share on other sites More sharing options...
Question
Ragnar Lothbrok
How to set only in PVP, everytime you killed a player you gain Battle Badge....
Link to comment
Share on other sites
6 answers 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.