Everything posted by Joseph
-
Walking snippet OSB2
i really would like that, i know you could use clipping flags, for obstacle handling but ive never used them so i dont know
-
Walking snippet OSB2
It uses the local path finder. When using entity, they must have been loaded. Also canReach() is bugged when checking to see if your on top of the position. So i tweaked it a bit. This doesnt contain obstacle handling, im still a bit confused on how im going to add it in. If you have an idea i would love to hear it. import java.util.LinkedList; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.util.LocalPathFinder; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import org.osbot.rs07.script.MethodProvider; import org.osbot.rs07.script.Script; public class Walking { /* * Doesn't contain obstacle handling. */ private LocalPathFinder pathFinder; private Script script; public Walking(Script script) { this.script = script; this.pathFinder = new LocalPathFinder(script.bot); } public boolean canReach(Position pos) { if (script.myPlayer().getPosition().equals(pos)) return true; else return script.map.canReach(pos); } public boolean setRun(int amount) { if (script.settings.getRunEnergy() >= amount && !script.settings.isRunning()) { if (script.settings.isDataOrbsActive()) return script.interfaces.getChild(548, 39).interact(); else return script.settings.setRunning(true); } return script.settings.getRunEnergy() >= amount && script.settings.isRunning(); } public boolean walkMiniMap(int threshold, Position pos) throws InterruptedException { MiniMapTileDestination des = new MiniMapTileDestination(script.bot, pos); if (canReach(pos)) { int fail = 0; script.mouse.click(des); //script.log("tries: " +fail); while (script.myPosition().distance(pos) > threshold && fail < 10) { MethodProvider.sleep(500); if (!script.myPlayer().isMoving()) fail++; } return fail != 10; } return false; } public void walkPath(int threshold, Entity entity) throws InterruptedException { LinkedList<Position> path = pathFinder.findPath(entity); if (pathFinder.foundPath()) { for (Position pos: path) { if (pos != null && script.myPosition().distance(pos) > threshold) { if (canReach(pos)) { this.walkMiniMap(threshold, pos); }else{ script.log("cant reach pos: " +pos.toString()); } } } }else script.log("error looking for path"); } public void walkPath(int threshold, Position endPos) throws InterruptedException { LinkedList<Position> path = pathFinder.findPath(endPos); if (pathFinder.foundPath()) { for (Position pos: path) { if (pos != null && script.myPosition().distance(pos) > threshold) { if (canReach(pos)) { this.walkMiniMap(threshold, pos); }else{ script.log("cant reach pos: " +pos.toString()); } } } }else script.log("error looking for path"); } }
-
48 Hour Ban [NEVER BOTTED]
fuck it, fuck jagex
-
How to use Local path finder
@Divinity please move this to the right section
-
deselect inventory item snippet
check the op
-
48 Hour Ban [NEVER BOTTED]
you dont bot but you still make scripts. How do i know your not lying . But naw, that some flaw shit, you should try fighting it.
-
deselect inventory item snippet
correct me if im wrong, but i havent seen any random that disable all tabs. and i love randomization
-
OSBot 2.2.2 - New server, offline support, more!
That shits been fixed since 2.1.19
-
deselect inventory item snippet
else { // DEAD SPACE Rectangle deadSpaceLeftColumn = new Rectangle(520, 205, 25, 260); Rectangle deadSpaceRightColumn = new Rectangle(740, 205, 25, 260); Rectangle deadSpaceRightFromMap = new Rectangle(720, 10, 45, 155); Rectangle[] deadSpaceAll = new Rectangle[] { deadSpaceLeftColumn, deadSpaceRightColumn, deadSpaceRightFromMap }; int i = MethodProvider.random(0, deadSpaceAll.length - 1); if (deadSpaceAll[i] != null && MoveMouse.toRectangle(script, deadSpaceAll[i], true, 3)) { MethodProvider.sleep(MethodProvider.random(600, 900)); } } where you have this at is a bit useless since. The code below will never be empty nor null if (openableTabs != null && !openableTabs.isEmpty()) { So you should add a boolean to switch between both methods. Also, rather then putting the tabs in an arraylist couldnt you loop through all tab, add a boolean that check to see if it isnt open. Interact with it and add a break statement to end the loop. Plus, why does the method return item is selected true return script.inventory.isItemSelected();
-
Social environment snippet
its better because even though you iterating through all players. You not consistently checking to see if that player is interacting with you especially with people that are like 10 tiles away. Also i was talking about this method script.myPlayer().getArea(radius);
-
Social environment snippet
I think there a method that creates an area around an entity. You could use that, and loop through everybody in the area to see if they are interacting with you. Also it should be smaller or equal to one
-
Null pointers
you could always use a enhanced for loop for (Item item: script.inventory.getItems()) { if (item != null && item.getName().equalsIgnoreCase(argument)) { blah blah } }
-
How to use Local path finder
im just wonder, i want to try out local path finder. they have a method that will find a path for you, using findPath(entity) but what if is the entity isnt in the loaded region. how would that method work? Also i read somewhere that local path finder returns npe. That there another way to do it. How? Thank you to who ever, is trying to help me out
-
4'99 per months? what happen
This is why @Ely said to be be patience, because this is a new market. We dont know what we want, and what other people want. So were trying to work on it. The new market hasnt been out for that long.
-
MagicTracker
That's on the todo list, I'll hit you up soon, I have other things a bit more important, but I will comeback and update it soon
- MagicTracker
- USA! USA! USA! USA! USA!
- Change your Avatar for 1M+
-
15-99 Crafting Bow Strings
or you could use my script, which i feel might be better link: http://osbot.org/forum/topic/53910-ds-aio-crafter/
-
We should get refunded for the scripts we bought that are not supported anymore.
This is exactly the same reason why, we moved into a monthly payment. Because of the word lifetime. Nothing is life time, so your tell me because you brought a script from osbot 1 lifetime. We should give you osbot 2 scripts. That doesn't work out like that. Osbot 1 & 2 are to different products. It like saying I brought free runs 1, and you guys came out if free runs 2. I should get it for free because I had free runs 1, and they are obsolete. It doesn't work like that. I say if you had a lifetime script, and it was longer then a month. No refund. If you had a monthly script, and you didn't get to use up the whole month, you could get a refund. If you had lifetime, and was able to use it for a month, then you could get a refund
-
Looks like Runescape got hit
Is that's a good thing or bad thing
-
Script Promotions/Free Trial Forum Section
Where would it go under, I'm down for one
-
Lol @ sweeping monthly scripts
Speak for yourself
-
Bank withdraw Mode snippet
i mean i like to post them up so everybody could see it. Maybe even for one of the managers @Ericthecmh to see them.
-
Bank withdraw Mode snippet
created my own method, because the osbot api once is bugged. public boolean bankWithdrawModeAsItem() { return script.configs.get(115) == 0; } public boolean setBankWithdrawMode(boolean asItem) { if (script.bank.isOpen()) { int parent = 12; int child = asItem ? 19: 21; if (script.interfaces.getChild(parent, child) != null) return script.interfaces.getChild(parent, child).interact("item", "note"); } return false; }