|
okay so on my rsps when you go to 0hp you die but after a while. for example, i go to 0hp and after about 1 second my character does the death emote. how can i make it so that as soon as i go to 0hp my character starts dying? many thanks- pit
[Today 05:35 AM] Verisimilitude: My new siggy [Today 05:34 AM] Verisimilitude: Ikr [Today 05:34 AM] a Kitty: 'there is litteraly nothing i can do to reach him, so i will just stand here and accept my fate'
public void applyDead() {
c.respawnTimer = 15;
c.isDead = false;
Client o = (Client) Server.playerHandler.players[c.killerId];
Client c2 = (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.killerId].connectedFrom == Server.playerHandler.players[c.playerKilled].connectedFrom) {
c.faceUpdate(0);
c.npcIndex = 0;
c.playerIndex = 0;
c.stopMovement();
if(c.InDung()) {
for (int i = 0; i < 24; i++) {
c.playerLevel[i] = getLevelForXP(c.playerXP[i]);
c.getPA().refreshSkill(i);
}
c.getCombat().resetPrayers();
c.getItems().deleteAllItems();
c.sendMessage("Sorry, You have failed to complete Dungeoneering.");
c.sendMessage("You find yourself in the Lobby.");
c.teleportToX = 1861;
c.teleportToY = 4622;
PlayerSave.saveGame(c);
requestUpdates();
return;
}
if(c.duelStatus <= 4) {
c.sendMessage("Oh dear you are dead!");
} else if(c.duelStatus != 6) {
c.sendMessage("You have lost the duel!");
PlayerSave.saveGame(o);
PlayerSave.saveGame(c);
}
resetDamageDone();
c.lastVeng = 0;
c.vengOn = false;
resetFollowers();
c.attackTimer = 10;
removeAllWindows();
// sendFrame126("PkP: "+c.pkPoints+" K: "+c.kills+" D: "+c.deaths+"", 663); demise sendframe
c.tradeResetNeeded = true;
return;
}
if (c.inWild() && Server.playerHandler.players[c.killerId].connectedFrom.equals(Server.playerHandler.players[c.playerKilled].connectedFrom)) {
o.sendMessage("Multiple IP detected, PK point reward removed.");
c.faceUpdate(0);
c.npcIndex = 0;
c.playerIndex = 0;
c.stopMovement();
if(c.InDung()) {
for (int i = 0; i < 24; i++) {
c.playerLevel[i] = getLevelForXP(c.playerXP[i]);
c.getPA().refreshSkill(i);
}
c.getCombat().resetPrayers();
c.getItems().deleteAllItems();
c.sendMessage("Sorry, You have failed to complete Dungeoneering.");
c.sendMessage("You find yourself in the Lobby.");
c.teleportToX = 1861;
c.teleportToY = 4622;
PlayerSave.saveGame(c);
requestUpdates();
return;
}
if(c.duelStatus <= 4) {
c.sendMessage("Oh dear you are dead!");
} else if(c.duelStatus != 6) {
c.sendMessage("You have lost the duel!");
PlayerSave.saveGame(o);
PlayerSave.saveGame(c);
}
resetDamageDone();
c.lastVeng = 0;
c.vengOn = false;
resetFollowers();
c.attackTimer = 10;
removeAllWindows();
c.tradeResetNeeded = true;
return;
}
if (c.inWild() && Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
o.pkPoints = (o.pkPoints + 5);
o.playersPked += 1;
o.killStreak += 1;
o.sendMessage("You recieved 5 PkPoints.");
o.sendMessage("You have defeated " +Misc.optimizeText(c.playerName)+ "!");
o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
o.getPA().addSkillXP(20000, 23);
if (o.earningPotential >= 85) {
o.earningPotential -= 40 + Misc.random(50);
int random = (int)(Math.random() * (xEP.length - 1));
Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY,
xEP[random][1], o.playerId);
o.sendMessage("You recieved an EP drop.");
o.sendMessage("Your EP decreased to: "+c.earningPotential+".");
}
} else if (c.inWild()) {
//c.getPA().addSkillXP(-4000, 23);
o.sendMessage("<shad=16745472>[Server]</col><shad=65288>Kill Streak not added because you have killed " +c.playerName+ " twice in a row.");
o.sendMessage("<shad=16745472>[Server]</col><shad=65288>You do not recieve Pk-Points because you have killed " +c.playerName+ " twice in a row.");
o.sendMessage("<shad=16745472>[Server]</col><shad=65288>You do not recieve That KC because you have killed " +c.playerName+ " twice in a row.");
if (o.earningPotential >= 85) {
o.earningPotential -= 40 + Misc.random(50);
int random = (int)(Math.random() * (xEP.length - 1));
Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY,
xEP[random][1], c.playerId);
o.sendMessage("Your EP decreased to: "+c.earningPotential+".");
}
}
}
}
c.faceUpdate(0);
c.npcIndex = 0;
c.playerIndex = 0;
c.stopMovement();
if(c.InDung()) {
for (int i = 0; i < 24; i++) {
c.playerLevel[i] = getLevelForXP(c.playerXP[i]);
c.getPA().refreshSkill(i);
}
c.getCombat().resetPrayers();
c.getItems().deleteAllItems();
c.sendMessage("Sorry, You have failed to complete Dungeoneering.");
c.sendMessage("You find yourself in the Lobby.");
c.teleportToX = 1861;
c.teleportToY = 4622;
PlayerSave.saveGame(c);
requestUpdates();
return;
}
if (c.duelStatus <= 4) {
c.killStreak = 0;
c.amountDied += 1;
/**for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] == null)
continue;
Client all = (Client)Server.playerHandler.players[j];
all.sendMessage("<shad=16745472>[Server]</col><shad=65288> " + c2.playerName + " has just killed " + c.playerName + " and is on a KS of " + c2.killStreak + ".");
}*/
c.sendMessage("Oh dear you are dead!");
} else if(c.duelStatus != 6 || !c.inArena()) {
c.sendMessage("You have lost the duel!");
PlayerSave.saveGame(o);
PlayerSave.saveGame(c);
/*o.getPA().movePlayer(
Config.DUELING_RESPAWN_X
+ (Misc.random(Config.RANDOM_DUELING_RESPAWN)),
Config.DUELING_RESPAWN_Y
+ (Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);*/
}
resetDamageDone();
c.DC++;
c.KC++;
c.specAmount = 10;
c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
c.lastVeng = 0;
c.vengOn = false;
resetFollowers();
c.attackTimer = 10;
//if (Server.playerHandler.players[c.killerId].connectedFrom.equals(Server.playerHandler.players[c.playerKilled].connectedFrom)) {
//o.sendMessage("You Don't Recieve PK Points for killing yourself!");
//System.out.println(" ");
//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.lastVeng = 0;
//c.vengOn = false;
//resetFollowers();
//c.attackTimer = 10;
removeAllWindows();
c.tradeResetNeeded = true;
return;
//}
}
bump
Isn't it suppose to be like this
its suppose to be like that isnt it?
[Today 05:35 AM] Verisimilitude: My new siggy [Today 05:34 AM] Verisimilitude: Ikr [Today 05:34 AM] a Kitty: 'there is litteraly nothing i can do to reach him, so i will just stand here and accept my fate'
heres a link very short video- https://www.dropbox.com/s/kalwvk9p1pwtt7c/Untitled.mp4
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |