PapaZola Posted May 10, 2012 Posted May 10, 2012 hello may i have a script when kill player on pvp will get 2 points but when die on pvp map pvp point -1 Quote
1 deathscythe13 Posted May 10, 2012 Posted May 10, 2012 - script pvppoint -1,{ OnInit: set .killaddpoint, 2; //points to add when kill set .diedeductpoint, 1; //points to deduct when died end; OnPCKillEvent: getmapxy .@map$,.@mapx,.@mapy,0; if ( .@map$ != "guild_vs3" && .@map$ != "pvp_y_1-2" && .@map!="prtg_cas01") end; if(getcharid(3)==killedrid) end; set points, points+.killaddpoint; dispbottom "You killed "+rid2name(killedrid)+" you gained "+.killaddpoint+" points"; attachrid(killedrid); set points, points-.diedeductpoint; dispbottom "You are killed by "+rid2name(killerrid)+" you lost "+.diedeductpoint+" points"; end; } 1 Quote
deathscythe13 Posted May 10, 2012 Posted May 10, 2012 - script pvppoint -1,{ OnInit: set .killaddpoint, 2; //points to add when kill set .diedeductpoint, 1; //points to deduct when died end; OnPCKillEvent: if(!getmapflag(strcharinfo(3),mf_pvp)) end; if(getcharid(3)==killedrid) end; set points, points+.killaddpoint; dispbottom "You killed "+rid2name(killedrid)+" you gained "+.killaddpoint+" points"; attachrid(killedrid); set points, points-.diedeductpoint; dispbottom "You are killed by "+rid2name(killerrid)+" you lost "+.diedeductpoint+" points"; end; } Quote
PapaZola Posted May 10, 2012 Author Posted May 10, 2012 (edited) this work on map sir? and this cash point? -guild_vs3 -pvp_y_1-2 -prtg_cas01 Edited May 10, 2012 by PapaZola Quote
deathscythe13 Posted May 10, 2012 Posted May 10, 2012 you only said if the map is a pvp, so this script only works when a map has a mapflag pvp not gvg Quote
PapaZola Posted May 10, 2012 Author Posted May 10, 2012 how if i want make like on map? -guild_vs3 -pvp_y_1-2 -prtg_cas01 kill will get 2 cashpoint die will -1 cashpoint bump Quote
Mystery Posted May 10, 2012 Posted May 10, 2012 You can also just simply add pvp map flags to those maps and the first script would work just fine lol. Quote
Question
PapaZola
hello
may i have a script
when kill player on pvp will get 2 points
but when die on pvp map pvp point -1
9 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.