Dave
July 22nd, 2011, 18:55
public void applyRingOfLife() {
if (c.playerEquipment[c.playerRing] == 2570) {
if (c.playerLevel[3] > 0 && c.playerLevel[3] <= c.getLevelForXP(c.playerxp[3]) / 10 && c.underAttackby > 0) {
int wildlvl = (((c.absy - 3520) / 8) + 1);
if (wildlvl < 20) {
c.getItems().deleteEquipment(2570, c.playerRing);
c.getPA().startTeleport(Config.HOME_X, Config.HOME_Y, 0, type);
}
}
}
Enjoy.
goes in player.java btw.
if (c.playerEquipment[c.playerRing] == 2570) {
if (c.playerLevel[3] > 0 && c.playerLevel[3] <= c.getLevelForXP(c.playerxp[3]) / 10 && c.underAttackby > 0) {
int wildlvl = (((c.absy - 3520) / 8) + 1);
if (wildlvl < 20) {
c.getItems().deleteEquipment(2570, c.playerRing);
c.getPA().startTeleport(Config.HOME_X, Config.HOME_Y, 0, type);
}
}
}
Enjoy.
goes in player.java btw.