Be more specific, for what kind of locations do you want to disable that?
|
Could some one tell me how could i make that in some locations i could not use home teleports and any magic spells teleports?
Be more specific, for what kind of locations do you want to disable that?
i want like my own dungeon location (i need it to be custom coords i mean i need to make that square in wich you would not be able teleport by my self). Im trying to do dungeonerring so i need to make square around room and make it unable to teleport
I see...
From all I know is that Matrix has something like this included, Think of it like this: Whenever you jail a person
in 718 Matrix, a signal from JailController.java makes sure teleporting from the player can not be done, while being jailed.
I believe this the specifc code which blocks the teleporting:
public boolean processMagicTeleport(WorldTile toTile) {
I don't know if it helps, good luck!
This should help you
Good luck,Code:@Override public boolean processMagicTeleport(WorldTile toTile) { player.getDialogueManager().startDialogue("SimpleMessage", "You have been prevented from teleporting out of here!"); return false; } @Override public boolean processItemTeleport(WorldTile toTile) { player.getDialogueManager().startDialogue("SimpleMessage", "You have been prevented from teleporting out of here!"); return false; } @Override public boolean processObjectTeleport(WorldTile toTile) { player.getDialogueManager().startDialogue("SimpleMessage", "You have been prevented from teleporting out of here!"); return false; }
~Derek
change the coords to the correct ones then in the teleport button etcCode:public static boolean inDungArea(WorldTile tile) { return (tile.getX() >= 2689 && tile.getX() <= 2728 && tile.getY() >= 3709 && tile.getY() <= 3731); }
if (player.inDungArea) {
return false;
}
etc
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |