1package com.runehive.game.world.entity.combat.magic;
3import com.runehive.Config;
4import com.runehive.net.packet.out.SendConfig;
5import com.runehive.net.packet.out.SendMessage;
6import com.runehive.net.packet.out.SendString;
7import com.runehive.game.world.entity.mob.player.Player;
8import com.runehive.game.world.entity.mob.player.PlayerRight;
9import com.runehive.content.skill.impl.magic.Spellbook;
10import com.runehive.game.world.items.Item;
11import com.runehive.util.MessageColor;
12import com.runehive.util.StringUtils;
15 private final static int[]
ANCIENT_STAFFS = {21006, 4675, 4710, 11791, 12904, 6914};
16 private final static int[]
NO_AUTOCAST = {12899, 11907, 11908};
224 if (weaponId ==
id) {
252 player.
send(
new SendMessage(
"You can't autocast normal magicks with this staff!"));
269 player.
send(
new SendMessage(
"You don't have the runes required for this spell!"));
The class that contains setting-related constants for the server.
static final int ATTACK_TAB
All the tab identifications.
static void setAutocast(Player player, int id)
static void sendSelectionInterface(Player player, int weaponId)
static final int[] NO_AUTOCAST
static void reset(Player player)
static final int[] ANCIENT_STAFFS
static boolean clickButton(Player player, int button)
void setSidebar(int tab, int id)
This class represents a character controlled by a player.
final Equipment equipment
void setAutocast(CombatSpell autocast)
final InterfaceManager interfaceManager
void send(OutgoingPacket encoder)
Combat< Player > getCombat()
The combat of the mob.
The container class that represents an item that can be interacted with.
final boolean containsAny(int... identifiers)
Determines if this container contains any identifiers.
boolean contains(int[] bowsWithNoArrowsRequired)
The OutgoingPacket responsible for changing settings on a client.
The OutgoingPacket that sends a message to a Players chatbox in the client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
static String getAOrAn(String nextWord)
The in-game spellbooks for players.
RequiredRune[] getRunes()
static CombatSpell get(int id)
static boolean hasRunes(Player player, Item[] required)
Holds all the player right data.
static boolean isAdministrator(Player player)
Checks if the player is a privileged member.
Holds an enum of colors for ease.