October 30, 20169 yr Author too general. make your question more specific if my acc is above 20 wildy it cant teleport how do i make it go to 20 so it can use teleport?
October 30, 20169 yr if my acc is above 20 wildy it cant teleport how do i make it go to 20 so it can use teleport? walk south Edited October 30, 20169 yr by Imateamcape
October 30, 20169 yr know nothing about scripting but make it run south until it detects its in 20wild, then queue it to tele
October 30, 20169 yr or maybe just make an area in the wildly at level 20 so it walks to there Edited October 30, 20169 yr by Mr Pro Pop
October 30, 20169 yr You could try reading the widget and finding the wilderness level from it keep -1 your position until you are at < 20 wildy Edit: there's a method in the API to get the wilderness level Edited October 30, 20169 yr by Zappster
October 30, 20169 yr As you really didn't specify where you want it to walk, I needed to get creative, there might be a better way to do this, but it should work. if(myPlayer().getPosition().getY() > 3678){ ArrayList<Position> closestTile = new ArrayList<Position>(); if(closestTile.size() <= 383){ for(int i = 0; i <= 383; i++){ closestTile.add(new Position(3678, 2946 + i, 0)); } }else{ closestTile.sort(new Comparator<Position>() { public int compare(Position entry1, Position entry2) { return entry1.distance(myPlayer()) - entry2.distance(myPlayer()); } }); getWalking().webWalk(closestTile.get(0)); } }else{ //do tele } Edited October 30, 20169 yr by Vilius
October 30, 20169 yr As you really didn't specify where you want it to walk, I needed to get creative, there might be a better way to do this, but it should work. if(myPlayer().getPosition().getY() > 3678){ ArrayList<Position> closestTile = new ArrayList<Position>(); if(closestTile.size() <= 383){ for(int i = 0; i <= 383; i++){ closestTile.add(new Position(3678, 2946 + i, 0)); } }else{ closestTile.sort(new Comparator<Position>() { public int compare(Position entry1, Position entry2) { return entry1.distance(myPlayer()) - entry2.distance(myPlayer()); } }); getWalking().webWalk(closestTile.get(0)); } }else{ //do tele } if(map.getWildernessLevel() > 20) { getWalking().walk(new Position(myPosition().getX(), myPosition().getY() - 5, myPosition.getZ()); }
Create an account or sign in to comment