Jump to content
  • 0
Cyrix

Top PVP Players - NPC Help

Question

Hello

I need help to mount an NPC. Top PvP players.

1 - Player kills another and gets a point. Only after three minutes he will win another point. During this period of 3 minutes to kill the players he will not be counted, only three minutes after it starts counting again.

Sorry for my English. I'm learning.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

So, this maybe work:

OnPCKillEvent:
if((gettimetick(0) - lastKillTimeTick) < (3*60*1000)) end;
else set lastKillTimeTick, gettimetick(0);

set PvP_Points, PvP_Points + 1;
[...]

Edited by Mooka
Link to comment
Share on other sites

So, this maybe work:

OnPCKillEvent:
if((gettimetick(0) - lastKillTimeTick) < (3*60*1000)) end;
else set lastKillTimeTick, gettimetick(0);

set PvP_Points, PvP_Points + 1;
[...]

How do I use this in your project? PvP_Master_Ultimate_1.3.0

thx

Link to comment
Share on other sites

hmm... i don't recommend, but.. here is

@552,1

Find:

OnPCKillEvent:
callfunc("pvpm_func","PCKillEvent");

Replace with:

OnPCKillEvent:
if((gettimetick(0) - lastKillTimeTick) < (3*60*1000)) end;
else set lastKillTimeTick, gettimetick(0);
callfunc("pvpm_func","PCKillEvent");

Link to comment
Share on other sites

Thank you. i'll test.

Hello

I said wrong. I wish it was not computed only by killing the same player in less than three minutes.

example:

I kill a player, and gain a point.

Kill the player again and not gain a point. I get points from Player 1 only after 3 minutes.

But when I kill different players will compute normally.

thank you

Edited by Cyrix
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.