Thread: PKP on death

Results 1 to 3 of 3
  1. #1 PKP on death 
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    I don't understand why you get pkp on death (you only get it if you die in the wild)
    If you do know how to fix can you please tell me what the problem was

    Code:
        public void applyDead() {    
            c.respawnTimer = 10;
            c.isDead = false;
            if(c.duelStatus != 6) {
                //c.killerId = c.getCombat().getKillerId(c.playerId);
                c.killerId = findKiller();
                Client o = (Client) Server.playerHandler.players[c.killerId];
                if(o != null) {
                    if(!(c.npcIndex > 0) && c.inPits == false){
                    }
                    if (c.killerId != c.playerId)
                        o.sendMessage("You have defeated "+Misc.optimizeText(c.playerName)+"!");
                                    if(c.inWild()){
                                            c.pkPoints += 5;
                                            o.sendMessage("You have received 5 Pk Points");
                                    }
                    c.playerKilled = c.playerId;
                    if(o.duelStatus == 5) {
                        o.duelStatus++;
                    }
                }
            }
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2011
    Posts
    491
    Thanks given
    23
    Thanks received
    66
    Rep Power
    86
    Reply With Quote  
     

  3. #3  
    Howdy

    nMik's Avatar
    Join Date
    Nov 2010
    Posts
    1,060
    Thanks given
    144
    Thanks received
    147
    Rep Power
    107
    c.pkpoints should be o.pkpoiunts

    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. Replies: 6
    Last Post: 06-16-2012, 03:02 AM
  2. Replies: 6
    Last Post: 02-28-2012, 09:19 PM
  3. Replies: 19
    Last Post: 08-13-2011, 09:50 PM
  4. Replies: 5
    Last Post: 07-31-2011, 12:45 AM
  5. Replies: 4
    Last Post: 03-15-2011, 10:08 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •