? something along those lines im sureCode:if (cmd.equals("mypos")) player.sendMessage(player.getX()+ " : "+ player.getY());
|
|
Could someone give me the battlescape mypos command please

? something along those lines im sureCode:if (cmd.equals("mypos")) player.sendMessage(player.getX()+ " : "+ player.getY());
Didn't work but thanks for trying

i don't know battlescape method names so not much help, post another method and i may be able to build it from that
alright ill post a command
} else if (Command.startsWith("teleto")) {
try {
String nameToMove = Command.substring(7);
int movedSlot = Server.s.playerHandler.GetIdFromName(nameToMove);
if (movedSlot <= 0) {
sendMessage("Other player not online");
return;
}
Client moved = (Client) Server.s.playerHandler.players[movedSlot];
changeCoords(moved.absX, moved.absY, moved.heightLevel);
} catch (Exception e) {
sendMessage("::teleto playername");
}

I'll get you it. because im on school atm
if (Command.startsWith("teleto")) {
sendMessage(getYpos, getXpos);//im not sure i dont use battlescape... try and fix getypos or something like that and replace them with mine![]()

Code:if (Command.startsWith("mypos")) { sendMessage("x = "+c.absX+ " y = "+ c.absY);
i got it thanks though guys
| « String ids | Another option » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |