Everything posted by Mr Asshole
-
Flawless path walking
Not sure what other path walker your talking about. This is easier as you can use cory's path grabber to grab the path array and then you can feed it as a parameter. The other path walkers use multi dimensional arrays which isn't practical.
-
Flawless path walking
import org.osbot.script.Script; import org.osbot.script.rs2.map.Position; /** * Created by Pain aka Exarticus * Credit me if you use * Walks path, randomizes path */ public class Walk { private Script script; public Walk(Script s){ this.script = s; } public Position[] randomizePath(Position [] path, int maxX, int maxY){ Position [] randomizedPath = new Position[path.length]; for (int i = 0; i < path.length; i++){ int x = path[i].getX(); int y = path[i].getY(); if (maxX > 0){ double d = Math.random() * 2 - 1.0; d *= maxX; x += (int)d; } if (maxY > 0){ double d = Math.random() * 2 -1.0; d *= maxY; y += (int)d; } randomizedPath[i] = new Position(x,y,path[i].getZ()); } return randomizedPath; } public Position getNextPosition(Position [] path){ int dist = 99; int closest = -1; for (int i = path.length - 1; i >= 0; i--){ Position pos = path[i]; int d = script.distance(pos); if (d < dist){ dist = d; closest = i; } } if (closest == -1)return null; int index = -1; for (int i = closest; i < path.length; i++) { if (script.distance(path[i]) <= 16) { index = i; } else { break; } } if (index == -1) { return null; } else { return path[index]; } } public void walkPath(Position[] path) throws InterruptedException { Position nextPosition = getNextPosition(path); if (nextPosition == null)script.log("Could not find path"); if (nextPosition != null && script.canReach(nextPosition)){ script.log("Walking to "+nextPosition.getX()+","+nextPosition.getY()); script.walkMiniMap(nextPosition); } while (script.distance(nextPosition) > 5 || script.client.getMyPlayer().isMoving()){ script.sleep(50); } } } How to use: walker.walkPath(walker.randomizePath(toBank,2,2)); Position[] toBank = new Position[]{new Position(2611,3101,0),new Position(2612,3112,0),new Position(2604,3115,0)}; public void onStart() { try { Walk walker = new Walk(this); startTime = System.currentTimeMillis(); } catch (Exception e) { log("EXCEPTION" + e.getStackTrace()[0]); } }
-
rebuilding farm
Pick flax. Safest method in my opinion.
-
Notori-Fighter[Project Diary]
Wasting your time tbh If you want to make this premium.
-
DNAIOFighter Reworked - It's back!
Of course leecher. Everything should be free.
-
DNAIOFighter Reworked - It's back!
Work on your free scripts and fletcher before you do another project. You money whore. Lol.
- Toph NMZ | Best Combat XP In the Game!
-
Trade API
Stark is going to need this o.o
-
My dad can't wait untill no shave november is over...
Does no shave November apply to pubic hair? Cause i let it grow bushy :$
- Toph NMZ | Best Combat XP In the Game!
- Toph NMZ | Best Combat XP In the Game!
-
Need script requests.
Ur a newb. Gtfo
-
Least painful way to die?
What do you guys think it is? I think it has to be drowning. What about you guys?
-
OMG FINALLY - Blade and Soul
Isn't this a asian game? How can we read what the game says o.o?
-
Updating Stark GDK and Stark Abyss
Let's hope you don't run with the money again. Lol
-
[Paypal][RSGP][Cheapest guaranteed][Vouched]Exa's vps shop[Best prices]
Enjoy ;-) hope to serve your future vps needs.
-
Congratulate the new chatbox mods
u deserved it bb
-
Notori-Fish![Banking Multiple Locations!]
Your so hard bro
-
Where are you from?
u srs? wats wrong with being asian?
-
First Thing That Comes to Mind.
Blue waffle
-
How old are you be honest no one can see what you voted.
Virgins detected. I'm 14
-
Where are you from?
Beijing, china hyun province matha facka
-
Looking To Buy A New Gaming Computer
Alienware is the best. Go ahead and spend all your money on it.
-
The last week here on OSBot
You say when deciding script writers you look at the totality of their contributions but most of the official script developers have hardly contributed anything but paid scripts filling up their wallets. Lol
-
Stop complaining about Alek
I'm sure smart could of done the job alek did. It doesn't take a advanced java coder to detect code is malicious. What's done is done. I just don't think alek was worthy of the promotion.