1package com.runehive.content.skill.impl.magic.spell.impl;
3import com.runehive.Config;
4import com.runehive.content.activity.randomevent.RandomEventHandler;
5import com.runehive.content.skill.impl.magic.Magic;
6import com.runehive.content.skill.impl.magic.Spellbook;
7import com.runehive.content.skill.impl.magic.spell.Spell;
8import com.runehive.game.Animation;
9import com.runehive.game.Graphic;
10import com.runehive.game.world.entity.mob.player.Player;
11import com.runehive.game.world.entity.skill.Skill;
12import com.runehive.game.world.items.Item;
13import com.runehive.net.packet.out.SendForceTab;
14import com.runehive.net.packet.out.SendMessage;
16import java.util.Arrays;
37 return new Item[] {
new Item(554, 3),
new Item(561, 1) };
56 if (value > 150_000) {
57 player.
send(
new SendMessage(
"The value of this item is too high and can not be low-alched."));
The class that contains setting-related constants for the server.
static final int CURRENCY
The currency identification of the server.
static final double MAGIC_MODIFICATION
The experience modification for magic.
static void trigger(Player player)
static final Item[] UNALCHEABLES
Stopwatch castingDelay
The casting stopwatch.
int getLevel()
Gets the level required to cast spell.
String getName()
Gets the name of the spell.
void execute(Player player, Item item)
Executes the magic spell.
Item[] getRunes()
Gets the runes required to cast the spell.
Class that models a single animation used by an entity.
Represents a single graphic that can be used by entities.
void clearNonWalkableActions()
Purges actions in the queue with a WalkablePolicy of NON_WALKABLE.
final SkillManager skills
void animate(int animation)
Optional< Graphic > graphic
This class represents a character controlled by a player.
final Inventory inventory
SpellCasting spellCasting
void send(OutgoingPacket encoder)
Represents a trainable and usable skill.
static final int MAGIC
The magic skill id.
void addExperience(int id, double experience)
Adds experience to a given skill.
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
boolean remove(Item item)
Attempts to withdraw item from this container.
boolean add(Item item)
Attempts to deposit item into this container.
boolean removeAll(Collection<? extends Item > items)
Attempts to withdraw items in bulk from this container.
void refresh()
Refreshes the players inventory.
The OutgoingPacket that sends a message to a Players chatbox in the client.
boolean elapsed(long time, TimeUnit unit)
The in-game spellbooks for players.
The itemcontainer for casting a spell.