mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-08 00:32:12 +00:00
init, thx MrExtremez
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user