keeping items

Discussion in 'RuneScape Miscellaneous' started by Drowning, Aug 13, 2008.

Thread Status:
Not open for further replies.
keeping items
  1. Unread #1 - Aug 13, 2008 at 2:28 PM
  2. Drowning
    Referrals:
    0

    Drowning Guest

    keeping items

    Ok I got my pits to telly to the right location AND do the emote BUT I lose items
    Here is what I did

    If you search for
    Code:
    public void youdied()
    A lil ways under that you'll find something like this
    Code:
    ApplyDead();
    			updateRequired = true;
    			appearanceUpdateRequired = true;
    So Under that I added
    Code:
    FightPits();
    			updateRequired = true;
    			appearanceUpdateRequired = true;
    Then Under
    Code:
    //If killed apply dead
    I added
    Code:
            	if ((absX >= 2375 && absX <= 2418 && absY >= 5129 && absY <= 5167 && IsDead == true && NewHP <= 1)) {
    			FightPits();
    		}
    Then Under
    Code:
    public boolean ApplyDead() {
    I added
    Code:
        public boolean FightPits() {	
            if (IsDeadTimer == false) {
                actionAmount++;
                actionTimer = 4;
                IsDeadTimer = true;
                startAnimation(2304);
                waittimer = 1;
                ResetAttack();
                ResetAttackNPC();
                IsDeadTimer = true;
                FightPits();
                specialAttacks();
                specialAttacks2();
                specialAttacks3();
                specialAttacks4();
                specialAttacks5();
                specialAttacks6();
    	    eatFood = false;
            }
            if (actionTimer == 0 && IsDeadTimer == true) {
                set();
                teleportToX = 2398;
                teleportToY = 5172;
                frame1();
                updateRequired = true;
                appearanceUpdateRequired = true;
                NewHP = getLevelForXP(playerXP[3]);
                setSkillLevel(3, getLevelForXP(playerXP[3]),
                        playerXP[playerHitpoints]);
                playerLevel[3] = getLevelForXP(playerXP[3]);
                refreshSkills();
    	    EntangleDelay = 0;
            }
            return true;
        }
    Then I added
    Code:
            public void set() {
    client killerz = (client) server.playerHandler.players[KillerId];
    killerz.ResetAttack();
    }
    I added that so the person who killed the person will stop attacking once they die
    (didn't work anyway)
    Everything works right BUT
    i lose items

    Here's a small video
    http://tinypic.com/player.php?v=k1oohv&s=4

    Edit - When you kill somebody and they do the emote..they teleport as you see in the vid but the killerz point of view the dead player is still on the ground
     
< Need server testers!!! | Powerzscape Great server!!! Has EVERYTHING! >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site