Everything posted by lisabe96
-
onLoop return value Antiban
This is somewhat similar idea of what I'm doing I have an enum with a bunch of actions we do irl (toilet, smoking, grab drink, check website, get lost in a read, ...) They have an frequenty rate as well as a min-max duration. Also got this for pseudo's. Then based on that I pass the duration as return for the onloop.
-
Best thing to Alch right now?
3rd age stuff
-
The future is here...(again)
Looks awesome
-
How to enable camera when input is disabled
Right, I used this before Thanks
-
How to enable camera when input is disabled
And how would I disable input from the script?
-
El's Little Design Shop [Fast] [Cheap]
Bought a logo design. Nice work for a cheap price, I added extra cuz I thought it was too cheap :p Vouch
-
How to enable camera when input is disabled
Currently the best I could come up with to keep it user friendly :p :
-
How to enable camera when input is disabled
It makes sense but it's not as user friendly as I'd want it to be. In case knowing the purpose would help to find ideas: It's for a firemaking script where I'd like the user to be able to select the tiles to use. This way I can allow them to make fire wherever they are, not limited by locations, also avoid the same patterns for everybody to be used. Based on the selected tiles I internally build lines and patterns.
-
How to enable camera when input is disabled
Maybe a way to enable input then programatically so the user doesn't have to bother about it. Then maybe block mouse clicks from the game so the character doesn't move?
-
How to enable camera when input is disabled
While input is disabled on the client, I'd like camera movement to be enabled. The reason is that I want to reach more tiles by moving the camera, but I don't want my character start running around like a tard when clicking the tiles. Which happens with input is enabled. So I'd only want camera input enabled.
-
How to convert mouse coordinate to RS position
Thanks, will use. Better avoid possible problems
-
Who do you think will win the SuperBowl Next Season?!
Club Brugge
-
How to convert mouse coordinate to RS position
Exactly what I wanted! Thanks a bunch
-
This guy slaps your girlfriend's ass what do you do?
It's used on anything not just an xbox, it just originates from xbox360.
-
This guy slaps your girlfriend's ass what do you do?
It's just a joke
-
How to convert mouse coordinate to RS position
Got it working It doesn't look good when the camera is tilted as it draws the screen and not the game world obviously. But it works. private List<Position> tiles = new ArrayList<>(); @Override public void mouseDragged(MouseEvent e) { handle(e); } @Override public void mouseClicked(MouseEvent e) { handle(e); } private void handle(MouseEvent e) { log(e.getX() + ", " + e.getY()); Position pos = getPosition(e.getPoint()); if (exists(pos)) { tiles.remove(pos); return; } tiles.add(pos); } @Override public void onPaint(Graphics2D graphics) { Graphics2D g = (Graphics2D) graphics; g.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF)); g.setColor(Color.GREEN); if (!tiles.isEmpty()) { for (Position t : tiles) { if (t.isVisible(getBot())) { g.draw(t.getPolygon(getBot()).getBounds()); } } } } private Position getPosition(Point mousePosition) { for(int x = 0; x < 104; x++) { for(int y = 0; y < 104; y++) { Position pos = new Position(getMap().getBaseX()+x, getMap().getBaseY()+y, getMap().getPlane()); if(pos.isVisible(getBot()) && pos.getPolygon(getBot()).contains(mousePosition)) { return pos; } } } return null; } private boolean exists(Position pos) { if (!tiles.isEmpty()) { for (Position tile : tiles) { if (tile.equals(pos)) { return true; } } } return false; }
-
How to convert mouse coordinate to RS position
Thanks! This should be enough information to get it working
-
How to convert mouse coordinate to RS position
I hope to find something more efficient, but I'll give it a try if I can't figure out anything else This would return java.awt.geom.Area
-
How to convert mouse coordinate to RS position
That's exactly what I need but I need it in code. Maybe this example will be more clear: void mouseMoved(MouseEvent e) { Tile tile = new Tile(mouseX, mouseY); log(tile.getPosition()); } This obvious doesn't work, I'm after how I would get this working within osbot
-
[Tutorial] Simple but Effective Tips
I personally find the first example a lot cleaner and easier on the eyes.
-
How to convert mouse coordinate to RS position
How can I with the API determine what Position I'm hovering at. The same as when you use the entity debug option that shows which tile coordinates your hovering on. It's probably something simple but I haven't found anything useful in the API.
-
RSlayer [AIO]
for (Item item : script.getInventory().getItems()) { if (item != null && item.getName().startsWith("Amulet of glory")) { return item; } } I win for readable oldschool code
-
This guy slaps your girlfriend's ass what do you do?
Always will be one falling for it
-
This guy slaps your girlfriend's ass what do you do?
Turn 360° and walk away
- Notifications bug