- Joined
- May 7, 2021
- Messages
- 1
- Thread Author
- #1
Hi guys, final year comp sci here, never worked with Java but thought it was a good time to start.
Anyway my bot has like 16 Class files so its not feasible to post them all here for help.
It is just meant to be a basic wood cutting bot (west varrock oaks and then banking).
Anyway the problem is once the inventory is full, 60%-70% of the time it wont run to the bank and deposit like I have intended. Sometimes it does but most times not (which is already baffling to me). Also I have used the exact same logic for it to run back to the oaks or run from somewhere nearby and that works flawlessly.
What could be the problem here??
Anyway my bot has like 16 Class files so its not feasible to post them all here for help.
It is just meant to be a basic wood cutting bot (west varrock oaks and then banking).
Anyway the problem is once the inventory is full, 60%-70% of the time it wont run to the bank and deposit like I have intended. Sometimes it does but most times not (which is already baffling to me). Also I have used the exact same logic for it to run back to the oaks or run from somewhere nearby and that works flawlessly.
What could be the problem here??
Code:
public class TravelToBank extends LeafTask {
Coordinate pointOne = new Coordinate(3184, 3435, 0);
Coordinate pointTwo = new Coordinate(3182, 3442, 0);
Area bankArea = new Area.Rectangular(pointOne, pointTwo);
@Override
public void execute() {
RegionPath regionPath = RegionPath.buildTo(bankArea.getRandomCoordinate());
if(regionPath != null) {
regionPath.step();
}
else {
getLogger().warn("regionPath was null in Walk");
}
}
}