Cyrix Posted June 26, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 150 Reputation: 13 Joined: 02/16/12 Last Seen: April 10, 2023 Share Posted June 26, 2012 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. Quote Link to comment Share on other sites More sharing options...
Mooka Posted June 26, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 21 Reputation: 8 Joined: 11/15/11 Last Seen: December 10, 2024 Share Posted June 26, 2012 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"); Quote Link to comment Share on other sites More sharing options...
Mooka Posted June 26, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 21 Reputation: 8 Joined: 11/15/11 Last Seen: December 10, 2024 Share Posted June 26, 2012 (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 June 26, 2012 by Mooka Quote Link to comment Share on other sites More sharing options...
Cyrix Posted June 26, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 150 Reputation: 13 Joined: 02/16/12 Last Seen: April 10, 2023 Author Share Posted June 26, 2012 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 Quote Link to comment Share on other sites More sharing options...
Mooka Posted June 26, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 21 Reputation: 8 Joined: 11/15/11 Last Seen: December 10, 2024 Share Posted June 26, 2012 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"); Quote Link to comment Share on other sites More sharing options...
Cyrix Posted June 26, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 150 Reputation: 13 Joined: 02/16/12 Last Seen: April 10, 2023 Author Share Posted June 26, 2012 (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 June 26, 2012 by Cyrix Quote Link to comment Share on other sites More sharing options...
Cyrix Posted June 26, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 150 Reputation: 13 Joined: 02/16/12 Last Seen: April 10, 2023 Author Share Posted June 26, 2012 Thank you. i'll test. Quote Link to comment Share on other sites More sharing options...
Question
Cyrix
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.