RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
BankObjective.java
1package com.osroyale.content.bot.objective.impl;
2
3import com.osroyale.content.bot.PlayerBot;
4import com.osroyale.content.bot.objective.BotObjective;
5import com.osroyale.content.bot.objective.BotObjectiveListener;
6import com.osroyale.game.world.position.Position;
7import com.osroyale.util.RandomUtils;
8
31
32public class BankObjective implements BotObjectiveListener {
33
35 private static final Position[] BANK_LOCATIONS = {
36 new Position(3096, 3493),
37 new Position(3098, 3493),
38 new Position(3095, 3491),
39 new Position(3095, 3489)
40 };
41
42 @Override
43 public void init(PlayerBot bot) {
44 Position position = RandomUtils.random(BANK_LOCATIONS);
45 bot.walkTo(position, () -> finish(bot));
46 }
47
48 @Override
49 public void finish(PlayerBot bot) {
50 bot.schedule(RandomUtils.random(6, 12), () -> BotObjective.RESTOCK.init(bot));
51 }
52
53}