combat_acc Posted October 30, 2016 Share Posted October 30, 2016 how do i make it run to lvl 20 wilderness when it wants to teleport Quote Link to comment Share on other sites More sharing options...
Team Cape Posted October 30, 2016 Share Posted October 30, 2016 too general. make your question more specific Quote Link to comment Share on other sites More sharing options...
combat_acc Posted October 30, 2016 Author Share Posted October 30, 2016 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? Quote Link to comment Share on other sites More sharing options...
Team Cape Posted October 30, 2016 Share Posted October 30, 2016 (edited) 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, 2016 by Imateamcape 3 Quote Link to comment Share on other sites More sharing options...
Spookz Posted October 30, 2016 Share Posted October 30, 2016 know nothing about scripting but make it run south until it detects its in 20wild, then queue it to tele 2 Quote Link to comment Share on other sites More sharing options...
Mr Pro Pop Posted October 30, 2016 Share Posted October 30, 2016 (edited) or maybe just make an area in the wildly at level 20 so it walks to there Edited October 30, 2016 by Mr Pro Pop Quote Link to comment Share on other sites More sharing options...
Zappster Posted October 30, 2016 Share Posted October 30, 2016 (edited) 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, 2016 by Zappster Quote Link to comment Share on other sites More sharing options...
Vilius Posted October 30, 2016 Share Posted October 30, 2016 (edited) 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, 2016 by Vilius Quote Link to comment Share on other sites More sharing options...
Team Cape Posted October 30, 2016 Share Posted October 30, 2016 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()); } Quote Link to comment Share on other sites More sharing options...