-
Posts
1130 -
Joined
-
Last visited
-
Feedback
100%
Posts posted by TheScrub
-
-
I start the script and nothing pops up it just sits there, any suggestions on what to do?
is there a paint on the screen did u get any error messages did u have food? were u logged in?
no need to hound me i replied as soon as i got online..
-
You need food to use the script
- 1
-
Great script. Only dream fighter is slightly better. Other AIO script blows before this beast
it's not fully converted for osbot 2.0 yet i need to this next week!
-
posted about this 3 weeks ago in the tracker confirm my bug so they do something...
-
out yet??? 21st almost 22nd...
and when u give deadlines could you add a countdown timer because time/dates varies from country to country
-
It drinks all my damn potions.
Can you make it loot by string? like for clue scrolls
it should auto download the cluescroll file i believe run the one on osbot 1 and it will download
-
this error occurs when your using an integer and trying to do a large multiplication ie 3600* 600k goes over 2.1b
proof:
-
FIX CANREACH ON OSBOT 2 KTHANKX
-
Edit: close please seemed to be on my side.
-
-
@ OP with your node class you might want to invest some time into making a controller class and maybe having a priority abstract integer:
so that if two nodes are valid it will choose the one with the higher priority
have methods as such in mine...
-
-
i released a full prayer api include section method of quick prayers in the snippets before have a look
-
next song..
samples one of the greats.
-
as a friday tradition me and my younger brother listen to hip hop together on friday nights so were open to suggestions were currently listening to....
-
i mean it's like riding a bike you will pick it up with ease but from what i saw your script handled every potion differently instead of just writing a generic way to handle a potion alot of redundant code thus saying this this is almost 4 years ago and developers do grow.
-
thought u were at least going to calculate the rectangle bounds or something i expected better from you but it still is alright you keep shooting shooter!
-
just a quick convert of my osbot 1 script removed special attacks due to conversion issues...
but it's the same as the one on the mvc just for osbot 2..
Forum with information link:
http://osbot.org/forum/topic/33805-scrubs-auto-fighter/
Download Link:
http://scrubscripting.com/scripts/downloads/osbot2/fighter.jar
- 3
-
Edit: The interactions are still not smooth if there moving or have a smaller model than others..
-
# Package name here..
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.RenderingHints;
import java.util.ArrayList;
import org.osbot.script.MethodProvider;
import org.osbot.script.Script;
import org.osbot.script.rs2.map.Position;
import org.osbot.script.rs2.utility.Utilities;
public class Walking {
/*
* Does not contain obstacle handling or path finding.
*/
private Script script;
public Walking(Script script) {
this.script = script;
}
/*
* Used in the drawing method returns the minimap position of the farthest
* away position in the array.
*/
private Point getNextPoint(Position[] positions) {
if (positions != null && positions.length > 0) {
Point last = null;
for (Position p : positions) {
Point point = Utilities.getMinimapScreenCoordinate(script.bot,
p.getX(), p.getY());
if (point != null) {
// checks if it's in the minimap section
if (point.x > 500)
last = point;
}
}
return last;
}
return null;
}
private Position getNextPosition(Position[] positions) {
if (positions != null && positions.length > 0) {
Position next = null;
for (Position p : positions) {
Point point = Utilities.getMinimapScreenCoordinate(script.bot,
p.getX(), p.getY());
if (point != null) {
// checking the point is valid.
if (point.x > 500)
next = p;
}
}
return next;
}
return null;
}
/*
* Path Walking method will require a path array.
*/
public void walkPath(Position[] path) throws InterruptedException {
setRun();
if (path != null && path.length > 0) {
Position n = getNextPosition(path);
// Checking if were not at the last position and if were along the path
if (n != null
&& script.myPosition().distance(path[path.length - 1]) > 7
|| n != null && alongPath(path)) {
script.log("Walking to Position: " + n.toString());
long t = System.currentTimeMillis();
n.walkMinimap(script.bot);
// ghetto dynamic sleep.
while (getNextPosition(path) != null
&& getNextPosition(path).equals(n)
&& System.currentTimeMillis() - t < 4000) {
script.sleep(20);
}
}
}
}
/*
* Used to set the run.
*/
private void setRun() throws InterruptedException {
if (script.client.getRunEnergy() > (20 + MethodProvider.random(20, 25))
&& !script.isRunning()) {
script.setRunning(true);
}
}
/*
* checks if the player is along the path based on distance
*/
public boolean alongPath(Position[] path) {
Position me = script.client.getMyPlayer().getPosition();
if (path != null && path.length > 0)
for (int i = 0; i < path.length; i++) {
if (i != path.length - 1)
if (me.distance(path) < 8) {
return true;
}
}
return false;
}
/*
* Just reverses a position array.
*/
public Position[] reversePath(Position[] path) {
ArrayList<Position> pos = new ArrayList<Position>();
Position[] target = null;
if (path != null && path.length > 0) {
for (int i = 0; i < path.length; i++) {
pos.add(path[path.length - i - 1]);
}
}
target = pos.toArray(new Position[pos.size()]);
return target;
}
/*
* Testing method.
*/
public void drawPoints(Position[] path, Graphics g) {
Point p = getNextPoint(path);
if (p != null) {
Graphics2D g2d = (Graphics2D) g;
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setColor(Color.BLACK);
g2d.drawOval(p.x - 1, p.y - 1, 5, 5);
g2d.setColor(Color.MAGENTA);
g2d.fillOval(p.x, p.y, 4, 4);
}
}
}
-
the api is suppose to be better aka smoother interactions improved cpu performance security improvements and osbot 1 is not getting any new content.
- 1
-
This is the method I used to use with no problem but lately it does not seem to work anymore:
private boolean isTextInOpenInterfaces(String message) { return searchInterfacesForText(message) != null && !searchInterfacesForText(message).isEmpty(); } It is returning false even when the String is clearly in the chat interface. It was working fine before for months.
i wrote my own search function works fine
-
You'll have to use the interface debugger and find what interface parent and child ID it is, then use:
client.getInterface(PARENT_ID).getChild(CHILD_ID).interact("Make-x");
i believe smelting has a color tag in it example "Smelt X <col=ff9040>Iron"
-
if((client.getConfig(index) & BITMASK ) == x){
// most configs will use a bitmask look at some of my snippets on the forum
}this class uses configs to determine how many of item is inside the leprechaun
http://osbot.org/forum/topic/45485-farming-leprechaun-toolshed/
Making Tele tabs: Most profitable
in Guides
Posted
it's a bitch to sell teletabs