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.Spellbook;
6import com.osroyale.net.packet.out.SendMessage;
7import com.osroyale.game.Animation;
8import com.osroyale.game.Graphic;
9import com.osroyale.game.world.entity.mob.player.Player;
10import com.osroyale.content.skill.impl.magic.Magic;
11import com.osroyale.content.skill.impl.magic.spell.Spell;
12import com.osroyale.game.world.entity.skill.Skill;
13import com.osroyale.game.world.items.Item;
43 return "Bones to bananas";
48 return new Item[] {
new Item(557, 2),
new Item(555, 2),
new Item(561, 1) };
63 for (
final int bones :
Magic.BONES) {
64 if (player.inventory.
contains(bones)) {
71 player.send(
new SendMessage(
"You have no bones to do this!"));
77 player.inventory.
remove(bone, amount);
78 player.inventory.
add(
new Item(1963, amount), -1,
true);
81 player.graphic(
new Graphic(141,
true));
83 player.send(
new SendMessage(
"You have converted " + amount +
" bones to bananas."));
static final double MAGIC_MODIFICATION
void execute(Player player, Item item)
void addExperience(int id, double experience)
boolean remove(Item item)
final int computeAmountForId(int id)
boolean removeAll(Collection<? extends Item > items)