Malice Micer Posted June 22, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 10 Reputation: 1 Joined: 06/21/12 Last Seen: September 16, 2013 Share Posted June 22, 2012 Instead of cash player will receive GOLD and will decrease gold when killed - 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...
Lanz Posted June 22, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 32 Reputation: 2 Joined: 11/22/11 Last Seen: October 7, 2016 Share Posted June 22, 2012 Try This - 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(countitem(969)){ dispbottom "You Lost 1 Gold from "+rid2name(.@Killer); delitem 969,1; emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "You Gained 1 gold from "+rid2name(.@Killed); emotion e_meh,1; getitem 969,1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } else { emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "Sorry no gold 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...
Malice Micer Posted June 22, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 10 Reputation: 1 Joined: 06/21/12 Last Seen: September 16, 2013 Author Share Posted June 22, 2012 does it check if the player has a gold in his storage? Quote Link to comment Share on other sites More sharing options...
Question
Malice Micer
Instead of cash player will receive GOLD and will decrease gold when killed
Link to comment
Share on other sites
2 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.