botutils: npe fix for webWalking

World Walker: additional locations added
This commit is contained in:
illumineawake 2020-09-18 18:17:45 +10:00
parent d28cfb1677
commit b89f43df4b
9 changed files with 28 additions and 7 deletions

View File

@ -25,7 +25,7 @@ import ProjectVersions.openosrsVersion
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "4.2.0"
version = "4.2.1"
project.extra["PluginName"] = "BotUtils"
project.extra["PluginDescription"] = "Illumine - Utils required for plugins to function with added automation"

View File

@ -1150,10 +1150,18 @@ public class BotUtils extends Plugin
if (!isMoving || (nextPoint != null && nextPoint.distanceTo(player.getWorldLocation()) < nextFlagDist))
{
nextPoint = getNextPoint(currentPath, randRadius);
log.info("Walking to next tile: {}", nextPoint);
walk(nextPoint, 0, sleepDelay);
nextFlagDist = nextPoint.equals(destination) ? 0 : getRandomIntBetweenRange(0, 10);
//log.info("Next flag distance: {}", nextFlagDist);
if (nextPoint != null)
{
log.info("Walking to next tile: {}", nextPoint);
walk(nextPoint, 0, sleepDelay);
nextFlagDist = nextPoint.equals(destination) ? 0 : getRandomIntBetweenRange(0, 10);
//log.info("Next flag distance: {}", nextFlagDist);
}
else
{
log.info("nextPoint is null");
return false;
}
}
}
return false;

File diff suppressed because one or more lines are too long

Binary file not shown.

BIN
release/botutils-4.2.1.jar Normal file

Binary file not shown.

View File

@ -32,6 +32,8 @@ public enum Location
TREE_GNOME_NIEVE("Tree Gnome Nieve", new WorldPoint(2611, 3092, 0)),
BARBARIAN_BANK("Barbarian Bank", new WorldPoint(2533, 3572, 0)),
BURTHORPE_SLAYER("Burthorpe Slayer", new WorldPoint(2931, 3536, 0)),
FISHING_GUILD("Fishing Guild", new WorldPoint(2611,3393,0)),
WINTERTODT_BANK("Wintertodt Bank", new WorldPoint(1639, 3943, 0)),
CUSTOM("Custom");
private final String name;

View File

@ -264,6 +264,17 @@ public interface WorldWalkerConfig extends Config
return 3;
}
@ConfigItem(
keyName = "notepad",
name = "Notepad for coords",
description = "Paste custom coords that you want to save for frequent use",
position = 30
)
default String notepad()
{
return "Paste custom co-ords that you want to save for frequent use";
}
@ConfigItem(
keyName = "enableUI",
name = "Enable UI",

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "1.0.1"
version = "1.0.3"
project.extra["PluginName"] = "World Walker Plugin"
project.extra["PluginDescription"] = "Illumine - World Walker plugin"