Thread: Death on rsps

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Death on rsps 
    Registered Member
    Join Date
    Apr 2014
    Posts
    176
    Thanks given
    17
    Thanks received
    4
    Rep Power
    11
    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
    Reply With Quote  
     

  2. #2  
    Registered Member Verisimilitude's Avatar
    Join Date
    Mar 2012
    Age
    26
    Posts
    487
    Thanks given
    45
    Thanks received
    17
    Rep Power
    0
    Quote Originally Posted by pityer tank View Post
    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
    post you applydead method.
    [spoil][/spoil]
    Code:
    [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'

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2014
    Posts
    176
    Thanks given
    17
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by Verisimilitude View Post
    post you applydead method.

    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;
    //}
    }
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2014
    Posts
    176
    Thanks given
    17
    Thanks received
    4
    Rep Power
    11
    bump
    Reply With Quote  
     

  5. #5  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Isn't it suppose to be like this
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2014
    Posts
    176
    Thanks given
    17
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by Vesia View Post
    Isn't it suppose to be like this
    i thought it was meant to be quicker plus it looks better when it quicker
    Reply With Quote  
     

  7. #7  
    Registered Member Swaggy Z's Avatar
    Join Date
    Jul 2014
    Posts
    39
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    its suppose to be like that isnt it?
    Reply With Quote  
     

  8. #8  
    Registered Member Verisimilitude's Avatar
    Join Date
    Mar 2012
    Age
    26
    Posts
    487
    Thanks given
    45
    Thanks received
    17
    Rep Power
    0
    Quote Originally Posted by pityer tank View Post
    i thought it was meant to be quicker plus it looks better when it quicker
    Yea, I'm sure it's suppose to be like this. I must've read it wrong. Thought you meant, once you reach 0 hp,
    it stands there, then does the death emote.
    Show a video of how you see it in your own perspective view.
    [spoil][/spoil]
    Code:
    [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'

    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Apr 2014
    Posts
    176
    Thanks given
    17
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by Verisimilitude View Post
    Yea, I'm sure it's suppose to be like this. I must've read it wrong. Thought you meant, once you reach 0 hp,
    it stands there, then does the death emote.
    Show a video of how you see it in your own perspective view.
    heres a link very short video- https://www.dropbox.com/s/kalwvk9p1pwtt7c/Untitled.mp4
    Reply With Quote  
     

  10. #10  
    Banned
    Join Date
    Aug 2009
    Posts
    490
    Thanks given
    22
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by pityer tank View Post
    Um, what seems to be the problem? Lol it works just fine
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Death on login.
    By -steven- in forum Help
    Replies: 6
    Last Post: 10-01-2009, 05:33 AM
  2. The best farming on RSPS - 317 Reborn
    By Ventrix in forum Show-off
    Replies: 36
    Last Post: 07-28-2009, 02:10 AM
  3. Death on Login? (317)
    By Re4master8 in forum Help
    Replies: 1
    Last Post: 06-20-2009, 10:37 PM
  4. Death on Login?
    By Markian in forum Help
    Replies: 6
    Last Post: 05-08-2009, 09:53 PM
  5. Still having probs with death on login{delta}
    By mudvayne5493 in forum Help
    Replies: 9
    Last Post: 02-07-2009, 01:58 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
  •