Thread: Elvarg teleport command help

Results 1 to 5 of 5
  1. #1 Elvarg teleport command help 
    Registered Member
    Join Date
    May 2018
    Posts
    17
    Thanks given
    4
    Thanks received
    0
    Rep Power
    11
    Alright so I found where commands are stored but struggling finding out how to put it so I teleport to a certain spot when the command is typed.

    I typed in

    } else if(parts[0].equals("loc2")) {
    player.moveTo(player.getPosition().add(2601, 4774, 0));

    but it just keeps moving me to different places :/
    Reply With Quote  
     

  2. #2  

    trash



    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    564
    Thanks given
    384
    Thanks received
    275
    Discord
    mikan#9999
    Rep Power
    1176
    you dont need to add position, you can just do new Position(xxxx, yyyy, height,) and you can use teleports like this
    Code:
    TeleportHandler.teleport(player, new Position(2100, 3200, 0), TeleportType.NORMAL);
    well i think its that, not looking at any code atm


    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    May 2018
    Posts
    17
    Thanks given
    4
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Expand View Post
    you dont need to add position, you can just do new Position(xxxx, yyyy, height,) and you can use teleports like this
    Code:
    TeleportHandler.teleport(player, new Position(2100, 3200, 0), TeleportType.NORMAL);
    well i think its that, not looking at any code atm
    Thank you!
    Reply With Quote  
     

  5. #4  
    Donator


    Join Date
    Jan 2010
    Age
    25
    Posts
    3,985
    Thanks given
    257
    Thanks received
    470
    Rep Power
    536
    Quote Originally Posted by memis2456 View Post
    Thank you!
    It was teleporting to random locations because you were adding 2601 steps to the x position and 4774 steps to the y postion, for using 'moveTo' you would use

    Code:
    player.moveTo(new Position(2601, 4774, 0));
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member

    Join Date
    Aug 2012
    Posts
    3,176
    Thanks given
    2,843
    Thanks received
    855
    Rep Power
    2235
    wow thats bulky
    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: 13
    Last Post: 07-24-2014, 04:58 AM
  2. Teleporting command help please
    By Verisimilitude in forum Help
    Replies: 13
    Last Post: 12-21-2013, 03:49 PM
  3. Teleport command help donator,all+
    By PvM Hussain in forum Help
    Replies: 11
    Last Post: 10-16-2013, 12:46 PM
  4. Help with teleport command?
    By sirgodric87 in forum Help
    Replies: 10
    Last Post: 12-20-2011, 06:27 AM
  5. [508]Teleport command right 1 help[508]
    By ghostrevan in forum Help
    Replies: 4
    Last Post: 06-28-2010, 12:58 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •