RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
ArdougneRoofJumpInteraction2.java
1package com.osroyale.content.skill.impl.agility.obstacle.impl;
2
3import com.osroyale.content.skill.impl.agility.obstacle.ObstacleInteraction;
4import com.osroyale.game.Animation;
5import com.osroyale.game.task.Task;
6import com.osroyale.game.world.World;
7import com.osroyale.game.world.entity.mob.player.Player;
8import com.osroyale.game.world.position.Position;
9
10public interface ArdougneRoofJumpInteraction2 extends ObstacleInteraction {
11 @Override
12 default void start(Player player) {
13 player.face(new Position(2658, 3298));
14 }
15
16 @Override
17 default void onExecution(Player player, Position start, Position end) {
18 World.schedule(new Task(1) {
19 int ticks = 0;
20 @Override
21 public void execute() {
22 switch (ticks++) {
23 case 1:
24 player.animate(new Animation(2586));
25 player.move(new Position(2658, 3298, 1));
26 break;
27 case 2:
28 player.face(new Position(2658, 3298));
29 player.animate(new Animation(2588));
30 break;
31 case 3:
32 player.movement.walkTo(3, 0);
33 break;
34 case 7:
35 player.face(new Position(2663, 3296));
36 player.animate(new Animation(2586));
37 break;
38 case 8:
39 player.animate(new Animation(2588));
40 player.move(new Position(2663, 3297, 1));
41 break;
42 case 9:
43 player.movement.walkTo(3, 0);
44 break;
45 case 13:
46 player.animate(new Animation(2586));
47 break;
48 case 14:
49 player.move(end);
50 cancel();
51 break;
52 }
53 }
54 });
55 }
56
57 @Override
58 default void onCancellation(Player player) {
59 }
60}