iutils: UtilsScript will consider ring of wealth for a teleport method for Grand Exchange

This commit is contained in:
illumineawake 2021-08-23 17:18:32 +10:00
parent 541b3259c7
commit 0164172d0c
4 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "4.5.0"
version = "4.5.1"
project.extra["PluginName"] = "iUtils"
project.extra["PluginDescription"] = "Illumine - Utils required for plugins to function with added automation"

View File

@ -292,7 +292,7 @@ public abstract class UtilsScript extends Plugin {
protected GrandExchange grandExchange() {
if (!GRAND_EXCHANGE.contains(game.localPlayer().position())) {
if (GRAND_EXCHANGE.distanceTo(game.localPlayer().position()) > 50) {
TeleportMethod varrockTeleport = new TeleportMethod(game, TeleportLocation.VARROCK_CENTRE, 1);
TeleportMethod varrockTeleport = new TeleportMethod(game, TeleportLocation.GRAND_EXCHANGE, 1);
varrockTeleport.getTeleport(true);
}
walking.walkTo(GRAND_EXCHANGE);

File diff suppressed because one or more lines are too long