Thread: [718] unable to teleport

Results 1 to 8 of 8
  1. #1 [718] unable to teleport 
    Registered Member
    Join Date
    Jan 2010
    Posts
    696
    Thanks given
    109
    Thanks received
    29
    Rep Power
    3
    Could some one tell me how could i make that in some locations i could not use home teleports and any magic spells teleports?
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Dec 2012
    Posts
    541
    Thanks given
    44
    Thanks received
    47
    Rep Power
    27
    Be more specific, for what kind of locations do you want to disable that?
    :: Making money is not the point, it is the community that matters in the end. ::
    > Unless your name is Pim or Kevin of course.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2010
    Posts
    696
    Thanks given
    109
    Thanks received
    29
    Rep Power
    3
    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
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Dec 2012
    Posts
    541
    Thanks given
    44
    Thanks received
    47
    Rep Power
    27
    Quote Originally Posted by Tomasmu View Post
    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!
    :: Making money is not the point, it is the community that matters in the end. ::
    > Unless your name is Pim or Kevin of course.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2010
    Posts
    696
    Thanks given
    109
    Thanks received
    29
    Rep Power
    3
    Quote Originally Posted by SlaveScape View Post
    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:




    I don't know if it helps, good luck!
    yea i found this too but i dont know how do i select specific area only. like i want to make it around one dung room so people wont be able to tele out from there whit stuff.
    Reply With Quote  
     

  6. #6  
    Lost Redemption Owner & Founder
    Lost Redemption's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    915
    Thanks given
    212
    Thanks received
    60
    Rep Power
    0
    This should help you
    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;
    
    	}
    Good luck,
    ~Derek
    Please vouch for PortHosts! You get the most for your money with PortHosts!
    Reply With Quote  
     

  7. #7  
    Coder in training
    Alienware's Avatar
    Join Date
    Oct 2011
    Age
    27
    Posts
    517
    Thanks given
    35
    Thanks received
    58
    Rep Power
    12
    Make a boolean and toggle in when you enter and exit, disable teleporting while this boolean is true....
    Quote Originally Posted by Alienware
    The heart of a server is its community.
    Reply With Quote  
     

  8. #8  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    Code:
    	public static boolean inDungArea(WorldTile tile) {
    		return (tile.getX() >= 2689 && tile.getX() <= 2728 && tile.getY() >= 3709 && tile.getY() <= 3731);
    	}
    change the coords to the correct ones then in the teleport button etc

    if (player.inDungArea) {
    return false;
    }

    etc
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 7
    Last Post: 07-09-2009, 12:27 AM
  2. Help With Command To Teleport Someone Somewhere
    By dirty boy in forum Tutorials
    Replies: 2
    Last Post: 07-04-2008, 11:37 PM
  3. How do i Delete a tab to teleport somewere.
    By heroesrising in forum Tutorials
    Replies: 2
    Last Post: 06-23-2008, 12:32 AM
  4. Unable to boot DVD-R
    By Alex in forum Software
    Replies: 2
    Last Post: 05-18-2008, 09:34 AM
  5. Adding objects to teleport you(Lagg free)
    By Bladeserver in forum Tutorials
    Replies: 0
    Last Post: 01-19-2008, 05:58 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •