Files
2006Scape/2006Redone Server/src/redone/game/content/combat/magic/NonCombatSpells.java
T
2019-06-18 15:04:35 -04:00

24 lines
612 B
Java

package redone.game.content.combat.magic;
import redone.game.players.Client;
public class NonCombatSpells {
public static void teleportObelisk(Client c, int x, int y, int height) {
if (System.currentTimeMillis() - c.teleBlockDelay < c.teleBlockLength) {
c.getActionSender().sendMessage(
"You are teleblocked and can't teleport.");
return;
}
if (!c.isDead && !c.isTeleporting) {
c.stopMovement();
c.getPlayerAssistant().removeAllWindows();
c.npcIndex = 0;
c.playerIndex = 0;
c.faceNpc(0);
c.getPlayerAssistant().spellTeleport(x, y, height);
}
}
}