Ragnar Lothbrok Posted July 7, 2012 Posted July 7, 2012 How to set only in PVP, everytime you killed a player you gain Battle Badge.... Quote
Euphy Posted July 7, 2012 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
Ragnar Lothbrok Posted July 7, 2012 Author Posted July 7, 2012 Can i add 3 maps like pvp_y_1-2,pvp_y_2-2,pvp_y_3-2,?? Quote
Euphy Posted July 7, 2012 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
Ragnar Lothbrok Posted July 7, 2012 Author Posted July 7, 2012 Thank you so much Euphy! can you add random getitem? like valor,battle,bravery badge? Quote
Euphy Posted July 7, 2012 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
Ragnar Lothbrok Posted July 7, 2012 Author Posted July 7, 2012 so much! can you help me also w/ this sir?? http://rathena.org/board/topic/66885-lms-script-bug/ Quote
Question
Ragnar Lothbrok
How to set only in PVP, everytime you killed a player you gain Battle Badge....
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.