Thread: Kill/Deaths [PI]

Results 1 to 6 of 6
  1. #1 Kill/Deaths [PI] 
    Registered Member
    Join Date
    Mar 2012
    Posts
    710
    Thanks given
    19
    Thanks received
    5
    Rep Power
    37
    Every time I kill someone in the wild my kills remain the same. Whenever I die in the wild my deaths and kill go up. How can I fix this?
    I think its the Applydead method in the playerassistant.java file.

    This part-
    c.cwDeaths += 1;
    o.cwKills += 1;
    }
    Reply With Quote  
     

  2. #2  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,433
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    show the whole applydead method
    Reply With Quote  
     

  3. #3  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    go to playerassistant.java and search for
    apply Dead
    then replace the whole apply dead methode with

    public void applyDead() {
    c.respawnTimer = 10;
    c.startAnimation(2304);
    c.isDead = false;
    c.cwDeaths++;
    Client o = (Client) Server.playerHandler.players[c.killerId];
    if(c.duelStatus != 6) {
    c.killerId = findKiller();
    if(o != null) {
    if(!(c.npcIndex > 0) && c.inPits == false){
    }

    if (c.killerId != c.playerId)



    if (c.inFunPk) {
    return ;
    }

    if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
    o.pkPoints = (o.pkPoints + 2);

    o.cwKills ++;

    o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
    }
    c.playerKilled = c.playerId;
    if(o.duelStatus == 5) {
    o.duelStatus++;
    }
    }
    }
    c.poisonDamage = 0;
    c.faceUpdate(0);
    c.npcIndex = 0;
    c.playerIndex = 0;
    c.stopMovement();
    if(c.duelStatus <= 4) {
    c.sendMessage("Oh dear you are dead!");
    } else if(c.duelStatus != 6) {
    c.sendMessage("You have lost the duel!");
    }
    resetDamageDone();
    c.specAmount = 10;
    c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    c.lastVeng = 0;
    c.vengOn = false;
    resetFollowers();
    c.attackTimer = 10;
    removeAllWindows();
    c.tradeResetNeeded = true;
    }
    Reply With Quote  
     

  4. #4  
    Zaros Developer

    Nomac's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    1,068
    Thanks given
    318
    Thanks received
    200
    Rep Power
    1092
    change it to o.cwDeaths at the top first of all.
    Attached image


    Reply With Quote  
     

  5. #5  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    my applydead methode works 100% he just have to replace
    Reply With Quote  
     

  6. #6  
    Donator


    Join Date
    Sep 2011
    Posts
    2,730
    Thanks given
    1,150
    Thanks received
    907
    Rep Power
    668
    Quote Originally Posted by Bridpkz Dennis View Post
    go to playerassistant.java and search for

    then replace the whole apply dead methode with
    Oh man...That's....That's ugly.....

    Cba to fetch my applyDead method but I'll clean up Dennis's.

    Code:
    public void applyDead() {
    		c.respawnTimer = 10;
    		c.startAnimation(2304);
    		c.isDead = false;
    		c.cwDeaths++;
    		Client o = (Client) Server.playerHandler.players[c.killerId];
    		if (c.duelStatus != 6) {
    			c.killerId = findKiller();
    			if (o != null) {
    				if (!(c.npcIndex > 0) && c.inPits == false) {
    				}
    
    				if (c.killerId != c.playerId)
    
    					if (c.inFunPk) {
    						return;
    					}
    
    				if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled
    						&& c.duelStatus == 0) {
    					o.pkPoints = (o.pkPoints + 2);
    
    					o.cwKills++;
    
    					o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
    				}
    				c.playerKilled = c.playerId;
    				if (o.duelStatus == 5) {
    					o.duelStatus++;
    				}
    			}
    		}
    		c.poisonDamage = 0;
    		c.faceUpdate(0);
    		c.npcIndex = 0;
    		c.playerIndex = 0;
    		c.stopMovement();
    		if (c.duelStatus <= 4) {
    			c.sendMessage("Oh dear you are dead!");
    		} else if (c.duelStatus != 6) {
    			c.sendMessage("You have lost the duel!");
    		}
    		resetDamageDone();
    		c.specAmount = 10;
    		c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    		c.lastVeng = 0;
    		c.vengOn = false;
    		resetFollowers();
    		c.attackTimer = 10;
    		removeAllWindows();
    		c.tradeResetNeeded = true;
    	}
    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. Npcs Upon Deaths
    By Boolean in forum Help
    Replies: 4
    Last Post: 05-13-2012, 08:13 PM
  2. Help please. Npc deaths
    By .java in forum Help
    Replies: 3
    Last Post: 12-23-2011, 02:37 AM
  3. [DELTA]Kill/deaths in quest tab? :P
    By furyquitrslol in forum Help
    Replies: 4
    Last Post: 06-03-2011, 02:50 AM
  4. My Old Nomad Deaths
    By Grim Line in forum Media
    Replies: 5
    Last Post: 05-02-2011, 02:42 AM
  5. Replies: 11
    Last Post: 02-16-2009, 12:25 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
  •