SlashGeeGee Posted May 6, 2012 Group: Members Topic Count: 111 Topics Per Day: 0.02 Content Count: 573 Reputation: 20 Joined: 11/19/11 Last Seen: October 24, 2014 Share Posted May 6, 2012 (edited) Hello rA i would like to request pvp points system that goes like this the points only works on this map : pvp_y_1-2 if player 1 killed player 2 , player 1 get's 1 cash point from player 2 and disp bottom for player 1 "1 You Gained 1 Cash Points from " Name of Killed " . disp bottom for player 2 "You Lost 1 Cash Point from " Name of Killer ". if player 2 doesn't have any cash points then player 1 disp bottom " Sorry no cash points on the " name of killed " . add emoticon : e_meh for the killer and e_sob for the dead player. lastly to avoid spamming there will be a delay of 3 mins before 1 player kills the same player for the cash point . Thanks , SlashGeeGee Edited May 6, 2012 by SlashGeeGee Quote Link to comment Share on other sites More sharing options...
SlashGeeGee Posted May 6, 2012 Group: Members Topic Count: 111 Topics Per Day: 0.02 Content Count: 573 Reputation: 20 Joined: 11/19/11 Last Seen: October 24, 2014 Author Share Posted May 6, 2012 - script PvP_System -1,{ OnPCKillEvent: if(strcharinfo(3) != "pvp_y_1-2") end; if(@LastKilled == killedrid) end; set .@Killer,getcharid(3); set .@Killed,killedrid; detachrid; if(attachrid(.@Killed)){ if(#CASHPOINTS){ dispbottom "You Lost 1 Cash Point from "+rid2name(.@Killer); set #CASHPOINTS,#CASHPOINTS-1; emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "You Gained 1 Cash Points from "+rid2name(.@Killed); emotion e_meh,1; set #CASHPOINTS,#CASHPOINTS+1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } else { emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "Sorry no cash points on the "+rid2name(.@Killed); emotion e_meh,1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } } end; OnTimer180000: set @LastKilled,0; stopnpctimer; detachnpctimer; end; } - script PVPPOINTS -1,{ OnPCKillEvent: getmapxy.@map$,.@x,.@y,0; if(getcharid(3)==killedrid) end; if(.@map$ != "pvp_y_1-2") end; set .@player1, getcharid(3); set .@player2, killedrid; attachrid(.@player2); set .@player2points, #CASHPOINTS; if(.@player2points) { set #CASHPOINTS, #CASHPOINTS - 1; dispbottom "You Lost 1 Cash Point from "+rid2name(killerrid); } emotion e_sob,1; attachrid(.@player1); if(.@player2points) { set #CASHPOINTS, #CASHPOINTS + 1; dispbottom "You Gained 1 Cash Points from "+rid2name(killedrid); } else dispbottom "Sorry no cash points on the "+rid2name(killedrid); emotion e_meh,1; end; } Thanks Guys tested it and works fine DONE ! 1 Quote Link to comment Share on other sites More sharing options...
0 ShahLegends Posted September 15, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 12 Reputation: 0 Joined: 10/02/16 Last Seen: November 6, 2017 Share Posted September 15, 2017 On 5/6/2012 at 1:52 PM, Lilith said: - script PvP_System -1,{ OnPCKillEvent: if(strcharinfo(3) != "pvp_y_1-2") end; if(@LastKilled == killedrid) end; set .@Killer,getcharid(3); set .@Killed,killedrid; detachrid; if(attachrid(.@Killed)){ if(#CASHPOINTS){ dispbottom "You Lost 1 Cash Point from "+rid2name(.@Killer); set #CASHPOINTS,#CASHPOINTS-1; emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "You Gained 1 Cash Points from "+rid2name(.@Killed); emotion e_meh,1; set #CASHPOINTS,#CASHPOINTS+1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } else { emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "Sorry no cash points on the "+rid2name(.@Killed); emotion e_meh,1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } } end; OnTimer180000: set @LastKilled,0; stopnpctimer; detachnpctimer; end; } wt if map guild_vs3 & pvp_y_1-2??? how to create 2 map?? Quote Link to comment Share on other sites More sharing options...
0 Cyro Posted September 15, 2017 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 1138 Reputation: 290 Joined: 04/29/13 Last Seen: July 20, 2024 Share Posted September 15, 2017 18 minutes ago, ShahLegends said: wt if map guild_vs3 & pvp_y_1-2??? how to create 2 map?? if( strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" ) Quote Link to comment Share on other sites More sharing options...
0 ShahLegends Posted September 15, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 12 Reputation: 0 Joined: 10/02/16 Last Seen: November 6, 2017 Share Posted September 15, 2017 40 minutes ago, Cyro said: if( strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" ) great.. thx alot Quote Link to comment Share on other sites More sharing options...
-1 randomhotstuff Posted April 8, 2017 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 06/08/15 Last Seen: April 24, 2018 Share Posted April 8, 2017 what if i wanted to implement if on more than one map? include WOE maps Quote Link to comment Share on other sites More sharing options...
-1 marcorogeeh Posted September 16, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 71 Reputation: 0 Joined: 06/27/13 Last Seen: March 29, 2020 Share Posted September 16, 2017 On 5/6/2012 at 10:36 AM, SlashGeeGee said: Thanks Guys tested it and works fine DONE ! Is it possible to help? I want to change points to TGCard Quote Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 6, 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 6, 2012 - script PVPPOINTS -1,{ OnPCKillEvent: getmapxy.@map$,.@x,.@y,0; if(getcharid(3)==killedrid) end; if(.@map$ != "pvp_y_1-2") end; set .@player1, getcharid(3); set .@player2, killedrid; attachrid(.@player2); set .@player2points, #CASHPOINTS; if(.@player2points) { set #CASHPOINTS, #CASHPOINTS - 1; dispbottom "You Lost 1 Cash Point from "+rid2name(killerrid); } emotion e_sob,1; attachrid(.@player1); if(.@player2points) { set #CASHPOINTS, #CASHPOINTS + 1; dispbottom "You Gained 1 Cash Points from "+rid2name(killedrid); } else dispbottom "Sorry no cash points on the "+rid2name(killedrid); emotion e_meh,1; end; } Quote Link to comment Share on other sites More sharing options...
Lilith Posted May 6, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share Posted May 6, 2012 - script PvP_System -1,{ OnPCKillEvent: if(strcharinfo(3) != "pvp_y_1-2") end; if(@LastKilled == killedrid) end; set .@Killer,getcharid(3); set .@Killed,killedrid; detachrid; if(attachrid(.@Killed)){ if(#CASHPOINTS){ dispbottom "You Lost 1 Cash Point from "+rid2name(.@Killer); set #CASHPOINTS,#CASHPOINTS-1; emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "You Gained 1 Cash Points from "+rid2name(.@Killed); emotion e_meh,1; set #CASHPOINTS,#CASHPOINTS+1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } else { emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "Sorry no cash points on the "+rid2name(.@Killed); emotion e_meh,1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } } end; OnTimer180000: set @LastKilled,0; stopnpctimer; detachnpctimer; end; } Quote Link to comment Share on other sites More sharing options...
WhatFT Posted May 6, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted May 6, 2012 What if getting an Item not Cash Point? Example, they will get 1 Gold Coin( ID# 671).. Quote Link to comment Share on other sites More sharing options...
Question
SlashGeeGee
Hello rA
i would like to request pvp points system that goes like this
the points only works on this map : pvp_y_1-2
if player 1 killed player 2 , player 1 get's 1 cash point from player 2
and disp bottom for player 1 "1 You Gained 1 Cash Points from " Name of Killed " .
disp bottom for player 2 "You Lost 1 Cash Point from " Name of Killer ".
if player 2 doesn't have any cash points then player 1 disp bottom " Sorry no cash points on the " name of killed " .
add emoticon : e_meh for the killer and e_sob for the dead player.
lastly to avoid spamming there will be a delay of 3 mins before 1 player kills the same player for the cash point .
Thanks ,
SlashGeeGee
Edited by SlashGeeGeeLink 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.