RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
MagicTeleports.java
1package com.osroyale.content.skill.impl.magic.spell.impl;
2
3import com.osroyale.content.skill.impl.magic.Spellbook;
4import com.osroyale.game.Animation;
5import com.osroyale.game.Graphic;
6import com.osroyale.game.world.items.Item;
7import com.osroyale.game.world.position.Position;
8import com.osroyale.util.Items;
9
27
28public enum MagicTeleports {
29
30 CATHERBY_TELEPORT("Catherby",30250, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 3), new Item(Items.LAW_RUNE, 3), new Item(Items.WATER_RUNE, 10)}, new Position(2814, 3436, 0), 87, 67.5, -1),
31 MOONCLAN_TELEPORT("Moonclan",30064, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 1), new Item(Items.EARTH_RUNE, 2)}, new Position(2114, 3914, 0), 69, 66, -1),
32 OURANIA_TELEPORT("Ourania", 30083, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 1), new Item(Items.EARTH_RUNE, 6)}, new Position(2465, 3249, 0), 71, 69, -1),
33 BARBARIAN_TELEPORT("Barbarian",30138, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 2), new Item(Items.FIRE_RUNE, 3)}, new Position(2541, 3570, 0), 75, 76, -1),
34 FISHING_TELEPORT("Fishing",30226, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 3), new Item(Items.LAW_RUNE, 3), new Item(Items.WATER_RUNE, 10)}, new Position(2809, 3435, 0), 85, 89, -1),
35 ICE_PLATEAU_TELEPORT("Ice Plateau",30266, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 3), new Item(Items.LAW_RUNE, 3), new Item(Items.WATER_RUNE, 8)}, new Position(2971, 3936, 0), 89, 96, 53),
36 KHAZARD_TELEPORT("Khazard",30162, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 2), new Item(Items.WATER_RUNE, 4)}, new Position(2650, 3158, 0), 78, 80, -1),
37 WATERBIRTH_TELEPORT("Waterbirth", 30106, Spellbook.LUNAR, Animation.LUNAR_TELE, Graphic.LUNAR_TELE, new Item[]{new Item(Items.ASTRAL_RUNE, 2), new Item(Items.LAW_RUNE, 1), new Item(Items.WATER_RUNE, 1)}, new Position(2521, 3756, 0), 72, 71, -1),
38 APE_ATOLL_TELEPORT("Ape Atoll", 18470, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.FIRE_RUNE, 2), new Item(Items.WATER_RUNE, 2), new Item(Items.BANANA, 1), new Item(Items.LAW_RUNE, 2)}, new Position(2744, 2754, 0), 64, 74, -1),
39 ARDOUGNE_TELEPORT("Ardougne", 1540, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.WATER_RUNE, 2), new Item(Items.LAW_RUNE, 2)}, new Position(2757, 3478, 0), 51, 61, -1),
40 CAMELOT_TELEPORT("Camelot",1174, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.AIR_RUNE, 5), new Item(Items.LAW_RUNE, 1)}, new Position(2757, 3478, 0), 45, 55.5, -1),
41 FALADOR_TELEPORT("Falador",1170, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.WATER_RUNE, 1), new Item(Items.AIR_RUNE, 3), new Item(Items.LAW_RUNE, 1)}, new Position(2966, 3380, 0), 37, 48, -1),
42 KOUREND_TELEPORT("Kourend",-25406, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.FIRE_RUNE, 5), new Item(Items.WATER_RUNE, 4), new Item(Items.SOUL_RUNE, 2), new Item(Items.LAW_RUNE, 2)}, new Position(1639, 3760, 0), 69, 81.5, -1),
43 LUMBRIDGE_TELEPORT("Lumbridge",1167, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.EARTH_RUNE, 1), new Item(Items.AIR_RUNE, 3), new Item(Items.LAW_RUNE, 1)}, new Position(3222, 3218, 0), 31, 41, -1),
44 TROLLHEIM_TELEPORT("Trollheim",7455, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.FIRE_RUNE, 2), new Item(Items.LAW_RUNE, 2)}, new Position(2891, 3677, 0), 61, 68, -1),
45 VARROCK_TELEPORT("Varrock",1164, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.FIRE_RUNE, 1), new Item(Items.AIR_RUNE, 3), new Item(Items.LAW_RUNE, 1)}, new Position(3210, 3424, 0), 25, 35.5, -1),
46 WATCHTOWER_TELEPORT("Watchtower",1541, Spellbook.MODERN, Animation.NORMAL_TELE, Graphic.NORMAL_TELE, new Item[]{new Item(Items.EARTH_RUNE, 2), new Item(Items.LAW_RUNE, 2)}, new Position(2583, 3096, 0), 58, 68, -1);
47
48 private final int buttonId;
49
50 private final Spellbook spellbook;
51 private final Item[] runes;
52
53 private final Position position;
54
55 private final int levelRequirement;
56 private final Graphic graphics;
57 private final Animation animation;
58 private final double experience;
59
60 private final int wildernessLevel;
61 private final String name;
62
63 MagicTeleports(String name, int buttonId, Spellbook spellbook, Animation animation, Graphic graphics, Item[] runes, Position position, int levelRequirement, double experience, int wildernessLevel) {
64 this.name = name;
65 this.buttonId = buttonId;
66 this.spellbook = spellbook;
67 this.animation = animation;
68 this.graphics = graphics;
69 this.runes = runes;
70 this.position = position;
71 this.levelRequirement = levelRequirement;
72 this.experience = experience;
73 this.wildernessLevel = wildernessLevel;
74 }
75
76 public static MagicTeleports forButtonId(int buttonId) {
77 for (MagicTeleports spell : MagicTeleports.values()) {
78 if (spell.getButtonId() == buttonId) {
79 return spell;
80 }
81 }
82 return null;
83 }
84
85 public int getButtonId() {
86 return buttonId;
87 }
88
89 public Position getPosition() {
90 return position;
91 }
92
93 public double getExperience() {
94 return experience;
95 }
96 public String getName() {
97 return name;
98 }
99
100 public int getLevelRequirement() {
101 return levelRequirement;
102 }
103
104 public Item[] getRunes() {
105 return runes;
106 }
107
108 public Animation getAnimation() {
109 return animation;
110 }
111 public Graphic getGraphics() {
112 return graphics;
113 }
114
115 public Spellbook getSpellbook() {
116 return spellbook;
117 }
118
119 public int getWildernessLevel() {
120 return wildernessLevel;
121 }
122}