Jump to content
  • 0

Top PVP Players - NPC Help


Question

Posted

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.

6 answers to this question

Recommended Posts

Posted (edited)

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
Posted

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

Posted

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");

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...