Jump to content
  • 0

Top PVP Players - NPC Help


Cyrix

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   8
  • Joined:  11/15/11
  • Last Seen:  

http://pastebin.com/PYZCnpei

OnPCKillEvent:
if((gettimetick(0) - getd("@LastTTick_"+killedrid) < (3*60*1000)) end;
 else setd "@LastTTick_" + killedrid, gettimetick(0);
callfunc("pvpm_func","PCKillEvent");

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   8
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   8
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

Thank you. i'll test.

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...