RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
InfernoBoss.java
1package com.osroyale.content.activity.inferno;
2
3import com.osroyale.game.Animation;
4import com.osroyale.game.task.Task;
5import com.osroyale.game.world.World;
6import com.osroyale.game.world.entity.mob.npc.Npc;
7import com.osroyale.game.world.entity.mob.player.Player;
8import com.osroyale.game.world.position.Position;
9import com.osroyale.net.packet.out.SendMessage;
10
39
40public class InfernoBoss extends Task {
41
42 private int tick;
43
44 public InfernoBoss() {
45 super(1);
46 this.tick = 0;
47 // TODO Auto-generated constructor stub
48 }
49
50 public void spawnbosswave(Player player) {
51
52 Npc mager = new Npc(7703, new Position(2264, 5351, 0));
53 Npc ranger = new Npc(7702, new Position(2271, 5350, 0));
54 Npc Jad = new Npc(7700, new Position(2269, 5345, 0));
55 Npc Healer = new Npc(7750, new Position(2276, 5363, 0));
56 Npc Healer1 = new Npc(7750, new Position(2280, 5363, 0));
57 Npc Healer2 = new Npc(7750, new Position(2266, 5363, 0));
58 Npc Healer3 = new Npc(7750, new Position(2262, 5363, 0));
59 Npc Glyph = new Npc(7707, new Position(2270, 5363, 0));
60 Npc TzKalZuk = new Npc(7706, new Position(2268, 5362, 0));
61
62 player.send(new SendMessage("@red@ Inferno Boss Wave has begun!"));
63 // World.sendMessage("@red@" + player.getName() + " has just Started the Inferno!!");
64 World.schedule(new Task(1) {
65
66 @Override
67 protected void execute() {
68 // when does the
69 // my code for it is broken aswell feelsbad
70 switch (tick) {
71 case 0:
72 Glyph.register();
73 Glyph.face(new Position(2271, 1));
74 break;
75 case 1:
76 TzKalZuk.register();
77 TzKalZuk.animate(new Animation(7563));
78 TzKalZuk.face(new Position(2271, 1));
79 break;
80 case 2:
81
82 Glyph.walkExactlyTo(new Position(2257, 5361, 0), () -> {
83 System.err.println("WALKING GLYPH TO SET POSITION!");
84 });
85
86 // for(int i = 0; i > Glyph.getCurrentHealth(); i++) {
87
88 // }
89 break;
90 case 3:
91 mager.register();
92 ranger.register();
93 if (Glyph.getCurrentHealth() <= 10) {
94 mager.attack(Glyph);
95 ranger.attack(Glyph);
96 } else {
97 mager.attack(player);
98 ranger.attack(player);
99 }
100 break;
101 }
102 tick++;
103 }
104 });
105 }
106
107 protected void execute() {
108 // TODO Auto-generated method stub
109
110 }
111
112}
Task(boolean instant, int delay)
Definition Task.java:75
static void schedule(Task task)
Definition World.java:284
void face(GameObject object)
Definition Mob.java:326