Everything posted by PolishCivil
-
AIOFighter development, JAVAFX, WEBWalking, etc
- OSBot BETA 2.1.1 - Proxy Support, CPU Enhancements, and More!
Shiit i would never come up with this lol, seriously- OSBot BETA 2.1.1 - Proxy Support, CPU Enhancements, and More!
And aaa Can i turn this shit off?- AIOFighter development, JAVAFX, WEBWalking, etc
Just add my skype guys.- AIOFighter development, JAVAFX, WEBWalking, etc
If someone knows how to make paint, add me on skype.- Professional programs
- Why was my Veteran rank removed?
I know many others that works exactly like osbot: paid+free scripts. Osbot is not free at all if you want to have best working script.- Why was my Veteran rank removed?
Because it sucks. The only thing that is keeping community is that osbot was developed quickly so there was not much of choice which bot u want to use, now we have plenty of better bots. But yh, I wont move cuz i spent too much time on developing current scripts.- 3D to 2D source code.
public static final int minimapX = 545; public static final int minimapY = 4; public static Point getMinimapScreenCoordinate(Client client, int localX, int localY, boolean clipOval) { int minimapX = localX * 4 + 2 - client.getMyPlayer().getGridX() / 32; int minimapY = localY * 4 + 2 - client.getMyPlayer().getGridY() / 32; if (clipOval && (minimapX < -73 || minimapX >= 73 || minimapY < -75 || minimapY > 75)) return new Point(-1, -1); int rotation = client.getMinimapX() + client.getMinimapRotation() & 2047; int minimapZoom = 256 + client.getMinimapZoom(); int sine = 256 * Utilities.CAMERA_SIN[rotation] / minimapZoom; int cosine = 256 * Utilities.CAMERA_COS[rotation] / minimapZoom; int i1 = -minimapX * sine + minimapY * cosine >> 16; int i2 = minimapX * cosine + minimapY * sine >> 16; int posX = Calculations.minimapX + 98 + i2; int posY = Calculations.minimapY + 80 - i1; return new Point(posX, posY); } Old: Mine: Why? client.getInterface(548).getChild(71);- 3D to 2D source code.
Ye, lol. But this is decompiled, not my version. You get it or not? http://freespace.virgin.net/hugo.elias/routines/3d_to_2d.htm http://en.wikipedia.org/wiki/Fixed-point_arithmetic Rite.- 3D to 2D source code.
Ye, osbot's api is f closed source but that doesnt mean i can't decompile it and release. public static short[][] getScreenCoordinates(Client client, int gridX, int gridY, int gridZ, Model model) { int cameraX = client.getCameraX(); int cameraY = client.getCameraY(); int cameraZ = client.getCameraZ(); int sinP = Utilities.CAMERA_SIN[client.getCameraPitch()]; int cosP = Utilities.CAMERA_COS[client.getCameraPitch()]; int sinY = Utilities.CAMERA_SIN[client.getCameraYaw()]; int cosY = Utilities.CAMERA_COS[client.getCameraYaw()]; if (model.getTriangleCount() < 0) { return new short[0][]; } short[][] screenCoords = new short[model.getVerticeCount()][]; for (int n = 0; n < model.getVerticeCount(); n++) { int x0 = model.getVerticesX()[n] + gridX; int z0 = model.getVerticesZ()[n] + gridY; int y0 = model.getVerticesY()[n] + Utilities.getTileHeight(client.getBot(), x0, z0, gridZ) - cameraZ; int n15 = (z0 -= cameraY) * sinY + (x0 -= cameraX) * cosY >> 16; z0 = z0 * cosY - x0 * sinY >> 16; x0 = n15; n15 = y0 * cosP - z0 * sinP >> 16; z0 = y0 * sinP + z0 * cosP >> 16; y0 = n15; if (z0 >= 50) { x0 = 260 + (x0 << 9) / z0; y0 = 171 + (y0 << 9) / z0; if (x0 >= 0 && y0 >= 0) { screenCoords[n] = new short[2]; screenCoords[n][0] = (short) x0; screenCoords[n][1] = (short) y0; } } } return screenCoords; } Its just exact copy of Utilities.getScreenCoordinates It could be used in faster model debugging (u need add some edits ofc, thats why its snippet) for new scripters. Yeah, if you want anything more (not engine) pm me, and i will see what i can do.- AIOFighter development, JAVAFX, WEBWalking, etc
Super pro amazing wow progress:- [Snippet] Get the Nearest Npc You can Attack
Um this will eat cpu.- multiple ints
http://www.learnjavaonline.org/en/Arrays- Advanced Java OOP Assignment
lol- Timekeepers Weekly Pizza Giveaway Bonanza!
\\\- Timekeepers Weekly Pizza Giveaway Bonanza!
- Timekeepers Weekly Pizza Giveaway Bonanza!
U pay shipping?- Post your IRL pictures
Fuck gravity.- Checking if a door is closed and open if it's closed
public final RS2Object get(Script ctx) { for (RS2Object object : ctx.closestObjectListForName(getName())) if (object != null && object.getPosition().equals(getLocation())) return object; return null; } Just a little enhancement by me: public WallObject getWallObjectOnPosition(Position position, String... names) { try { if (position == null) { return null; } if (client.getCurrentRegion() == null || client.getCurrentRegion().instance == null || client.getCurrentRegion().instance.getTiles() == null) { return null; } int localX = position.getLocalX(bot); int localY = position.getLocalY(bot); if (localX <= 104 && localY <= 104 && localX >= 0 && localY >= 0) { if (client.getCurrentRegion().instance.getTiles()[position.getZ()][localX][localY] == null) { return null; } XWallObject wallObject = client.getCurrentRegion().instance.getTiles()[position.getZ()][localX][localY].getWallObject(); WallObject wrap = WallObject.wrap(wallObject, position.getZ()); if (names.length == 0 || Arrays.asList(names).contains(wrap.getDefinition().getName())) { return wallObject == null ? null : wrap; } } } catch (Exception ignored) { } return null; }- hi someone convert c++ to java for me
LOL... Xavier sent me this too a while ago. What a noob cant translate it?- ATBundle Master Race checking in
OP be like- Null pointer with .getZ()
add System.out.println(client.myPlayer());System.out.println(client.getPosition());System.out.println(client.getPosition().getZ()); show output But yh u can always try script.client.getPlane()- Null pointer with .getZ()
Are you logged in?- AIOFighter development, JAVAFX, WEBWalking, etc
Ye i think its kinda redundant ;s Cuz i can train it with script im making, so nvm. Just combat. - OSBot BETA 2.1.1 - Proxy Support, CPU Enhancements, and More!