1package com.osroyale.content.skill.impl.magic.spell.impl;
3import com.osroyale.Config;
4import com.osroyale.content.skill.impl.magic.Magic;
5import com.osroyale.content.skill.impl.magic.Spellbook;
6import com.osroyale.content.skill.impl.magic.spell.Spell;
7import com.osroyale.game.Animation;
8import com.osroyale.game.Graphic;
9import com.osroyale.game.world.entity.mob.player.Player;
10import com.osroyale.game.world.entity.skill.Skill;
11import com.osroyale.game.world.items.Item;
12import com.osroyale.net.packet.out.SendMessage;
42 return "Bones to peaches";
47 return new Item[]{
new Item(557, 4),
new Item(555, 4),
new Item(561, 2)};
60 for (
final int bones :
Magic.BONES) {
61 if (player.inventory.
contains(bones)) {
68 player.send(
new SendMessage(
"You have no bones to do this!"));
72 player.inventory.
remove(bone, amount);
73 player.inventory.
add(
new Item(6883, amount), -1,
true);
76 player.graphic(
new Graphic(141,
true));
78 player.send(
new SendMessage(
"You have converted " + amount +
" bones to peaches."));
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)