Thread: Kdr [pi]

Results 1 to 3 of 3
  1. #1 Kdr [pi] 
    Registered Member
    Join Date
    Mar 2012
    Posts
    710
    Thanks given
    19
    Thanks received
    5
    Rep Power
    37
    I followed this tutorial - http://www.rune-server.org/runescape...ath-ratio.html
    There were no errors, but the kills and deaths don't count.
    Any fix?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by i am here View Post
    I followed this tutorial - http://www.rune-server.org/runescape...ath-ratio.html
    There were no errors, but the kills and deaths don't count.
    Any fix?
    applyDead()

    o.KC++
    c.DC++

    Did you do that
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2012
    Posts
    710
    Thanks given
    19
    Thanks received
    5
    Rep Power
    37
    Yes I did that, but I have also added a o.pkp. That was already there, does that matter?
    Here is my applyDead -
    public void applyDead() {
    c.getTradeAndDuel().stakedItems.clear();
    c.respawnTimer = 15;
    c.overload = 0;
    c.isDead = false;
    c.getPA().sendFrame126(":quicksff", -1);
    Client o = (Client) Server.playerHandler.players[c.killerId];
    if(c.duelStatus != 6) {
    c.killerId = findKiller();
    if(o != null) {
    c.playerKilled = c.playerId;
    if(o.duelStatus == 5) {
    o.duelStatus++;
    }
    if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled) {
    int amount = Misc.random(4)+1;
    o.sendMessage("You have defeated "+c.playerName+" and received "+ amount + " Pk Points!");
    if (c.killerId != c.playerId) {
    if (o.inWild()) {
    o.pkp = (o.pkp + amount);
    o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
    }
    }
    } else {
    o.sendMessage("You do not recieve pk points because you have killed " +c.playerName+ " twice in a row.");
    }
    }
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [pi] kdr [pi]
    By JokerScape in forum Help
    Replies: 4
    Last Post: 07-16-2011, 09:32 AM
  2. [pi] kdr command rep++
    By IPh0n3Hacks in forum Help
    Replies: 5
    Last Post: 07-10-2011, 03:11 PM
  3. [pi] kdr error!!!@@@
    By Mark in forum Help
    Replies: 9
    Last Post: 04-19-2011, 12:03 AM
  4. [PI] Kdr
    By Mark in forum Help
    Replies: 2
    Last Post: 11-25-2010, 08:41 PM
  5. [pi] kdr saving
    By Lenin in forum Help
    Replies: 9
    Last Post: 08-15-2010, 02:48 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •