RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
ArdougneWallClimbInteraction.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 ArdougneWallClimbInteraction extends ObstacleInteraction {
11 @Override
12 default void start(Player player) {
13 player.face(new Position(player.getX(), player.getY() + 1));
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
21 @Override
22 protected void execute() {
23 switch (ticks++) {
24 case 1:
25 player.animate(new Animation(737));
26 break;
27 case 2:
28 player.animate(new Animation(737));
29 player.move(new Position(start.getX(), start.getY(), 1));
30 break;
31 case 3:
32 player.animate(new Animation(737));
33 player.move(new Position(start.getX(), start.getY(), 2));
34 break;
35 case 4:
36 player.animate(new Animation(2588));
37 player.move(end);
38 cancel();
39 break;
40 }
41 }
42 });
43 }
44
45 @Override
46 default void onCancellation(Player player) {
47 }
48}