Botre Posted March 26, 2015 Posted March 26, 2015 (edited) getRegion() always returns the same hash and equals always returns true. Edited March 26, 2015 by Botre
Czar Posted March 26, 2015 Posted March 26, 2015 I can only think of cheaphax ways atm, hopefully a dev posts 1
Botre Posted March 26, 2015 Author Posted March 26, 2015 I can only think of cheaphax ways atm, hopefully a dev posts You could probably do it via getClippingPanes() but f that. getTiles() is super confusing. Each region should return a proper identifier / hash imo..
Mysteryy Posted March 26, 2015 Posted March 26, 2015 getRegion() always returns the same hash and equals always returns true. Isn't there a region base x and y? If either base changes then a new region has loaded. I remember using those before.
LeBron Posted March 26, 2015 Posted March 26, 2015 (edited) // on start int startX = pos.getX() /104; int startY = pos.getY() /104; int mapX = pos.getX() /104; int mapY = pos.getY() /104; if(startX != mapX || startY !=mapY) //moved region There ya go buddy. (might not work 100% though) Try this as well, it should work Position pos = script.myPosition(); int prevX = pos.getLocalX(script.getBot()); int prevY = pos.getLocalY(script.getBot()); sleep(250,500) int nextX = pos.getLocalX(script.getBot()); int nextY = pos.getLocalY(script.getBot()); if(Math.abs(prevX - nextX) > 20 || Math.abs(prevY - nextY) > 20) //move region Edited March 26, 2015 by LeBron
Botre Posted March 26, 2015 Author Posted March 26, 2015 (edited) // on start int startX = pos.getX() /104; int startY = pos.getY() /104; int mapX = pos.getX() /104; int mapY = pos.getY() /104; if(startX != mapX || startY !=mapY) //moved region There ya go buddy. (might not work 100% though) Try this as well, it should work Position pos = script.myPosition(); int prevX = pos.getLocalX(script.getBot()); int prevY = pos.getLocalY(script.getBot()); sleep(250,500) int nextX = pos.getLocalX(script.getBot()); int nextY = pos.getLocalY(script.getBot()); if(Math.abs(prevX - nextX) > 20 || Math.abs(prevY - nextY) > 20) //move region Nope. The last method could work but you'd have to check every 300 milliseconds. The first one just doesn't work. I just want an id/config/hash method. Edited March 26, 2015 by Botre