your 3rd question isn't a question.....
For pits death.
In player.java Under
AddCode:resetAttack();
Code:if (AtPits() && !isPVP()) setCoords(2395+Misc.random(8), 5170+Misc.random(4), 0); getActionSender().sendMessage(this, "Oh dear, you have died!");
For that attack NPC add these to variables.
Code:public boolean attackingNpc; public int attackNpc;