Jump to content
  • 0

How to Limit Kill When PVP...


KucingHitam

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   4
  • Joined:  01/23/12
  • Last Seen:  

Hello rAthena.. Anyone know how to limit killing on pvp.. any suggestion.. 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

First Part

set .@killed_player$,rid2name(killedrid);
for(set .@i,0;.@i < getarraysize(@killed_player$);.@i++){
	set @killed_player$[.@i], .@killed_player$;
	set @kill_count[.@i], @kill_count[.@i] + 1;
}

Second Part

Don't forget to use OnPCKillEvent label

for(set .@i,0; .@i < getarraysize(@killed_player$);.@i++){
	if(@killed_player[.@i] == .@killed_player && @kill_count[.@i] >= .feed_limit){
		dispbottom "You have killed "+.@killed_player$+" too many times. Kill not counted.";
		end;
	}
}
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   4
  • Joined:  01/23/12
  • Last Seen:  

 

First Part

set .@killed_player$,rid2name(killedrid);
for(set .@i,0;.@i < getarraysize(@killed_player$);.@i++){
	set @killed_player$[.@i], .@killed_player$;
	set @kill_count[.@i], @kill_count[.@i] + 1;
}

Second Part

Don't forget to use OnPCKillEvent label

for(set .@i,0; .@i < getarraysize(@killed_player$);.@i++){
	if(@killed_player[.@i] == .@killed_player && @kill_count[.@i] >= .feed_limit){
		dispbottom "You have killed "+.@killed_player$+" too many times. Kill not counted.";
		end;
	}
}

thank for reply.. i try this.. thank you so much...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...