Everything posted by TheAnswer
-
Random path Walking (use waypoints)
yeah apparently no matter how many times i re pasted it the tabs would not show up =[ tabbed version - http://pastebin.com/djSDJb2p You have to use spaces instead of tabs. Also the word wrapping can mess things up so, start any new line on a new line to prevent weird word wrapping. Hope you don't mind here is the code formatted below public long lastRun = 0; public Position lastClick = null; public int randomDistance = 0; public boolean walkToLocation(Position p) throws InterruptedException { int maxY; int maxX; boolean revY = false; boolean revX = false; Position playerPosition = myPlayer().getPosition(); if(playerPosition.getX() < p.getX()) { revX = true; int distance = p.getX()-playerPosition.getX(); if(distance > 17) { maxX = 17; } else { maxX = distance; } } else { int distance = playerPosition.getX()-p.getX(); if(distance > 17) { maxX = 17; } else { maxX = distance; } } if(playerPosition.getY() < p.getY()) { revY = true; int distance = p.getY()-playerPosition.getY(); if(distance > 17) { maxY = 17; } else { maxY = distance; } } else { int distance = playerPosition.getY()-p.getY(); if(distance > 17) { maxY = 17; } else { maxY = distance; } } int addX = (int) (10+(Math.random()*(maxX-10))); int addY = (int) (10+(Math.random()*(maxY-10))); if(maxX < 10) { addX = maxX; } if(maxY < 10) { addY = maxY; } if(!revX) { addX = addX*-1; } if(!revY) { addY = addY*-1; } if(lastClick == null) { if(walk(new Position(playerPosition.getX()+addX, playerPosition.getY()+addY, playerPosition.getZ()))) { lastClick = new Position(playerPosition.getX()+addX, playerPosition.getY()+addY, playerPosition.getZ()); randomDistance = (int) (3+(Math.random() * 3)); } } else { if(lastClick.distance(myPlayer().getPosition()) < randomDistance) { if(walk(new Position(playerPosition.getX()+addX, playerPosition.getY()+addY, playerPosition.getZ()))) { lastClick = new Position(playerPosition.getX()+addX, playerPosition.getY()+addY, playerPosition.getZ()); randomDistance = (int) (3+(Math.random() * 3)); } } } if(lastClick.distance(p) < 5) { lastClick = null; return true; } return false; }
-
Search Bank
Nice work. One question, how does the "Context" part work? e.g Context.script.client.getInterface(12) You don't seem to use it for the search button part of the code. Just curious
-
★「 #1 Runescape Pin Seller 」「 BONDS NOW SOLD CHEAP 」「 1800+ Feedbacks 」 ▬Runescape Pin Shop▬ 「 CHEAP&FAST! 」「 07/RS3/MB/PP 」「 2000+ Pins Sold ★ 」
Looking to buy 2 membership cards plz. Paying in RS gold
-
Show Item IDs In Inventory & Equipment Source Code
Haha. Dam my bad on the if, else thing failed when doing the formatting. Thanks for pointing it out. Anyway ,the "return" I added, is to break out of the for loop and exit the method so it can do other things, and not sit there going through the rest of the for loop painting the ID's when the tab has changed. I know the for loop is small and you wont notice the difference, but I added as practice for myself and is really useful with big for loops etc. You can also use a break if you just want to exit the for loop prematurely.
-
Your teaachers are liars
OMG all this time....
-
Show Item IDs In Inventory & Equipment Source Code
Updated the code. Now simpler and a little better. Enjoy
-
BETA v1.7.35
You may need to clear your OSBot folder then restart client
-
BETA v1.7.35
Looks like the method .isFacing() is broken. Therefore most randoms will be broken. How to test: When talking to a NPC while having the "Entity Debugger" ticked, hover your mouse over the NPC your talking to. It no longer shows who the NPC is facing...
-
Show Item IDs In Inventory & Equipment Source Code
Nice liverare. I was in my learning phase at the time but thanks for updating
-
[08/14/2013] Website Downtime
awesome news
-
Client Bug
Looks like the script needs updating on their end. It might be getting a link from the internet and the website might be down. Try and get a hold of the Author to the above script
-
BETA v1.7.32
My Randoms Solver Pack solves the above problems. Just follow the link "Randoms Solver Pack" below. You can use it until they patch the bugs.
-
BETA v1.7.32
I have a randoms solver pack you can use until they fix them. Just follow the "Randoms Solver Pack" link below.
-
Frog cave random
For the mean time you can use my randoms pack. Follow the link "Randoms Solver Pack" below Frog Queen & Frog Cave Work.
-
BETA v1.7.32
Thanks for the update If frog random fails I have a randoms pack that has a working frog random solver . Just Follow the Randoms Solver Pack link.
-
Recent Downtime And What We're Doing About It!
Awesome. Thanks for keeping us up to date
-
IMPORTANT: Our Database Has Been Leaked!
Thanks for the update
-
randoms broken?
Sorry to hear that. If you want, you can try my Randoms Solver Pack for the mean time until they patch the bugs. Follow the link, Randoms Solver Pack below
-
Frog random event
Bummer looks like the random solver is using IDs. You can try my randoms pack for now until they fix it Follow The Randoms Solver Pack Link Below
-
whats this error
I would recommend using a previous osbot version like 1.7.28
-
BETA v1.7.31
You guys can try my randoms pack to fix the frog random Follow the link Randoms Solver Pack below
- Can you believe this?
- low fps
- Hi
-
Show Item IDs In Inventory & Equipment Source Code
I cleaned up the post