1package com.osroyale.content.skill.impl.magic.spell.impl;
3import com.osroyale.Config;
4import com.osroyale.content.achievement.AchievementHandler;
5import com.osroyale.content.achievement.AchievementKey;
6import com.osroyale.content.activity.randomevent.RandomEventHandler;
7import com.osroyale.content.skill.impl.magic.Magic;
8import com.osroyale.content.skill.impl.magic.Spellbook;
9import com.osroyale.content.skill.impl.magic.spell.Spell;
10import com.osroyale.game.Animation;
11import com.osroyale.game.Graphic;
12import com.osroyale.game.world.entity.mob.player.Player;
13import com.osroyale.game.world.entity.skill.Skill;
14import com.osroyale.game.world.items.Item;
15import com.osroyale.net.packet.out.SendForceTab;
16import com.osroyale.net.packet.out.SendMessage;
18import java.util.Arrays;
53 return "High alchemy";
63 return new Item[] {
new Item(554, 5),
new Item(561, 1) };
75 if (Arrays.stream(
Magic.UNALCHEABLES).anyMatch($it -> item.getId() == $it.getId())) {
76 player.send(
new SendMessage(
"You can not alch this item!"));
80 int value = item.getHighAlch();
83 player.graphic(
new Graphic(113,
true));
84 player.inventory.
remove(item.getId(), 1);
92 player.action.clearNonWalkableActions();
static final double MAGIC_MODIFICATION
static final int CURRENCY
static void activate(Player player, AchievementKey achievement)
void execute(Player player, Item item)
void addExperience(int id, double experience)
boolean remove(Item item)
boolean removeAll(Collection<? extends Item > items)