Thread: [Shards] ::teleto x y command

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [Shards] ::teleto x y command 
    Registered Member
    Join Date
    Aug 2012
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    i need the teleto x y command but i dont know where to find it or how to make it work, could somebody help please?
    Reply With Quote  
     

  2. #2  
    Registered Member Mostwantedruels's Avatar
    Join Date
    Aug 2012
    Posts
    65
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    you are welcome
    Code:
    			if (playerCommand.startsWith("xteleto")) {
    				String name = playerCommand.substring(8);
    				for (int i = 0; i < Config.MAX_PLAYERS; i++) {
    					if (Server.playerHandler.players[i] != null) {
    						if (Server.playerHandler.players[i].playerName.equalsIgnoreCase(name)) {
    							c.getPA().movePlayer(Server.playerHandler.players[i].getX(), Server.playerHandler.players[i].getY(), Server.playerHandler.players[i].heightLevel);
    						}
    					}
    				}
    You add this in the commands in the Src/Server/Model/Players/Packet/commands.java
    under any command
    any error post
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2012
    Posts
    175
    Thanks given
    32
    Thanks received
    47
    Rep Power
    35
    Quote Originally Posted by Mostwantedruels View Post
    you are welcome
    Code:
    			if (playerCommand.startsWith("xteleto")) {
    				String name = playerCommand.substring(8);
    				for (int i = 0; i < Config.MAX_PLAYERS; i++) {
    					if (Server.playerHandler.players[i] != null) {
    						if (Server.playerHandler.players[i].playerName.equalsIgnoreCase(name)) {
    							c.getPA().movePlayer(Server.playerHandler.players[i].getX(), Server.playerHandler.players[i].getY(), Server.playerHandler.players[i].heightLevel);
    						}
    					}
    				}
    You add this in the commands in the Src/Server/Model/Players/Packet/commands.java
    under any command
    any error post
    Wrong command.

    Use this:

    Code:
    if (playerCommand.startsWith("tele")) {
    				String[] args = playerCommand.split(" ", 3);
    				int x, y;
    				try {
    					x = Integer.parseInt(args[1]);
    					y = Integer.parseInt(args[2]);
    				} catch (NumberFormatException nfe) {
    					c.sendMessage("Incorrect arguments. Use as ::tele (x) (y)");
    					return;
    				}
    
    				c.getPA().movePlayer(x, y, c.heightLevel);
    				
    }
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2012
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    O_o so confused right now

    guys i dont know shit xDD
    Reply With Quote  
     

  5. #5  
    Registered Member Mostwantedruels's Avatar
    Join Date
    Aug 2012
    Posts
    65
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    just add it to your command file
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2012
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Pretty sure those two won't work with shard revolutions.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2012
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Yeah tryed them both, both dont work with shards :/
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Aug 2012
    Posts
    303
    Thanks given
    2
    Thanks received
    58
    Rep Power
    0
    Bro add it to your command file
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Aug 2012
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Tryed the first one, put it in commands under a fresh new .java file
    got this error on compile

    src\com\rs2\model\player\commandmanager\commands\T eleto.java:1: error: class, in
    terface, or enum expected
    if (playerCommand.startsWith("xteleto")) {
    ^
    src\com\rs2\model\player\commandmanager\commands\T eleto.java error: class, in
    terface, or enum expected
    for (int i = 0; i < Config.MAX_PLAYERS; i++) {
    ^
    src\com\rs2\model\player\commandmanager\commands\T eleto.java error: class, in
    terface, or enum expected
    for (int i = 0; i < Config.MAX_PLAYERS; i++) {
    ^
    src\com\rs2\model\player\commandmanager\commands\T eleto.java error: class, in
    terface, or enum expected
    for (int i = 0; i < Config.MAX_PLAYERS; i++) {
    ^
    src\com\rs2\model\player\commandmanager\commands\T eleto.java:7: error: class, in
    terface, or enum expected
    }
    ^
    5 errors
    Press any key to continue . . .
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jun 2012
    Posts
    175
    Thanks given
    32
    Thanks received
    47
    Rep Power
    35
    Oh I'm not sure how shards commands are laid out. Thats how it works for Project Insanity.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. [Shards] Some basic Command Errors
    By ParadoxPvP in forum Help
    Replies: 4
    Last Post: 04-02-2012, 07:03 PM
  2. [639] Dementhium, Teleto Command - Fix
    By TemperrrShot in forum Tutorials
    Replies: 6
    Last Post: 03-29-2012, 05:02 AM
  3. non teleto owner
    By Scenemo in forum Help
    Replies: 3
    Last Post: 05-20-2011, 03:06 AM
  4. Teletome and Teleto commands help
    By Cody_ in forum Help
    Replies: 3
    Last Post: 02-10-2011, 11:20 PM
  5. [525] Teleto
    By Ramsin in forum Configuration
    Replies: 15
    Last Post: 07-29-2009, 12:02 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
  •