lol easy man sec
EDIT: Nvm just look for your death anim and change it.
|
Okay, When i got killed its not doing the dead animations the character is standing there for 5 secs and respawning back at home.
My Question is the codes to get the animations back I will Rep =D
lol easy man sec
EDIT: Nvm just look for your death anim and change it.
looks for the 5 sec delay... put the anim right before the delay is started lol
look in your death methods
post your applydead please
EDIT:you dont have any rep to rep with
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) {
c.DC++;
o.KC++;
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++;
}
}
}
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;
}
probably not the right way to go about fixing it but try adding
c.startAnimation(1); (i don't know the animation id)
under:
public void applyDead() {
definiately not the right way to fix it
but it may be n easy way of going around the hard way of doing it
in client.java processCode:if(respawnTimer == 7) { respawnTimer = -6; getPA().giveLife(); } else if(respawnTimer == 12) { respawnTimer--; startAnimation(836); poisonDamage = -1; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |