1package com.osroyale.content.skill.impl.magic.spell.impl;
3import com.osroyale.Config;
4import com.osroyale.content.activity.randomevent.RandomEventHandler;
5import com.osroyale.content.skill.impl.magic.Magic;
6import com.osroyale.content.skill.impl.magic.Spellbook;
7import com.osroyale.content.skill.impl.magic.spell.Spell;
8import com.osroyale.game.Animation;
9import com.osroyale.game.Graphic;
10import com.osroyale.game.world.entity.mob.player.Player;
11import com.osroyale.game.world.entity.skill.Skill;
12import com.osroyale.game.world.items.Item;
13import com.osroyale.net.packet.out.SendForceTab;
14import com.osroyale.net.packet.out.SendMessage;
16import java.util.Arrays;
61 return new Item[] {
new Item(554, 3),
new Item(561, 1) };
73 if (Arrays.stream(
Magic.UNALCHEABLES).anyMatch($it -> item.getId() == $it.getId())) {
74 player.send(
new SendMessage(
"You can not alch this item!"));
78 int value = item.getLowAlch();
80 if (value > 150_000) {
81 player.send(
new SendMessage(
"The value of this item is too high and can not be low-alched."));
86 player.graphic(
new Graphic(112,
true));
87 player.inventory.
remove(item.getId(), 1);
94 player.action.clearNonWalkableActions();
static final double MAGIC_MODIFICATION
static final int CURRENCY
void execute(Player player, Item item)
void addExperience(int id, double experience)
boolean remove(Item item)
boolean removeAll(Collection<? extends Item > items)