PapaZola Posted May 10, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Share 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 Link to comment Share on other sites More sharing options...
1 deathscythe13 Posted May 10, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share 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 Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 10, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share 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 Link to comment Share on other sites More sharing options...
PapaZola Posted May 10, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Author Share 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 Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 10, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share 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 Link to comment Share on other sites More sharing options...
PapaZola Posted May 10, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Author Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted May 10, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
PapaZola Posted May 10, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Author Share Posted May 10, 2012 not working got his debug Quote Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 10, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share Posted May 10, 2012 edit .@map to .@map$ Quote Link to comment Share on other sites More sharing options...
PapaZola Posted May 10, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Author Share Posted May 10, 2012 solved thx deathscythe13 Mysterious Quote Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.