Yami Posted April 3, 2016 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 111 Reputation: 2 Joined: 01/02/14 Last Seen: June 4, 2023 Share Posted April 3, 2016 I'm trying to have a Ladder NPC for my PK Points, can somebody help me with this please? And by the way, can sombody help me with the map restiction for this script too? Thank you! This is my PK Point Script: - script PvP_System -1,{ OnInit: setarray .map$[0],"bossnia_01","guild_vs5","pvp_y_8-2","aldeg_cas01","payg_cas01","gefg_cas01","prtg_cas01","schg_cas01","arug_cas01"; end; OnPCKillEvent: for(set .@i,0; .@i<getarraysize(.maps$); set .@i,.@i+1){ if(strcharinfo(3) != .map$) end; } if(@LastKilled == killedrid) end; set .@Killer,getcharid(3); set .@Killed,killedrid; detachrid; if(attachrid(.@Killed)){ if(#PKPOINTS){ if(#PKPOINTS <= 1) end; set #PKPOINTS,#PKPOINTS-2; dispbottom "You Lost 2 PK Point from "+rid2name(.@Killer); dispbottom "Current PK Points = "+#PKPOINTS+" "; //emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ set #PKPOINTS,#PKPOINTS+3; dispbottom "You Gained 3 PK Point from "+rid2name(.@Killed); dispbottom "Current PK Points = "+#PKPOINTS+" "; //emotion e_meh,1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } else { //emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "Sorry No PK Point to Gain from "+rid2name(.@Killed); //emotion e_meh,1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } } end; OnTimer180000: set @LastKilled,0; stopnpctimer; detachnpctimer; end; } Oh is it possible that the Ladder will show last character in the account that obtained the PK Point? because #PKPOINTS is account binded right? Quote Link to comment Share on other sites More sharing options...
Question
Yami
I'm trying to have a Ladder NPC for my PK Points, can somebody help me with this please?
And by the way, can sombody help me with the map restiction for this script too? Thank you!
This is my PK Point Script:
Oh is it possible that the Ladder will show last character in the account that obtained the PK Point? because #PKPOINTS is account binded right?
Link to comment
Share on other sites
0 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.