RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
WildernessDitchObjective.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.entity.mob.Direction;
7import com.osroyale.game.world.position.Position;
8import com.osroyale.util.RandomUtils;
9
30
31public class WildernessDitchObjective implements BotObjectiveListener {
32
33 @Override
34 public void init(PlayerBot bot) {
35 int x = RandomUtils.inclusive(3083, 3108);
36 Position position = Position.create(x, 3520);
37 bot.walkTo(position, () -> finish(bot));
38 }
39
40 @Override
41 public void finish(PlayerBot bot) {
42 bot.face(Direction.NORTH);
43 bot.forceMove(3, 6132, 33, 60, new Position(0, 4), Direction.NORTH);
44 bot.schedule(4, () -> BotObjective.WALK_IN_WILDERNESS.init(bot));
45 }
46
47}
static Position create(int x, int y, int z)