1package com.osroyale.content.skill.impl.crafting.impl;
3import com.osroyale.Config;
4import com.osroyale.net.packet.out.SendInputAmount;
5import com.osroyale.net.packet.out.SendItemOnInterfaceZoom;
6import com.osroyale.net.packet.out.SendMessage;
7import com.osroyale.net.packet.out.SendString;
8import com.osroyale.game.world.entity.mob.player.Player;
9import com.osroyale.game.world.items.Item;
10import com.osroyale.game.world.items.ItemDefinition;
11import com.osroyale.util.Utility;
60 LEATHER(1739, 1741, 1),
61 HARD_LEATHER(1739, 1743, 3),
62 SNAKE_HIDE(6287, 6287, 15),
63 SNAKESKIN(6287, 6289, 20),
64 GREEN_LEATHER(1753, 1745, 20),
65 BLUE_LEATHER(1751, 2505, 20),
66 RED_LEATHER(1749, 2507, 20),
67 BLACK_LEATHER(1747, 2509, 20);
108 player.send(
new SendString((player.inventory.
contains(
new Item(
Config.
CURRENCY, data.cost)) ?
"<col=23db44>" :
"<col=e0061c>") + data.cost +
" coins", 14785 + count));
112 player.interfaceManager.
open(14670);
130 if (amount > contain)
133 int cost = data.cost * amount;
163 player.send(
new SendInputAmount(
"How many leathers would you like to tan?", 2, input -> {
164 tan(player, Integer.parseInt(input),
TanData.LEATHER);
179 player.send(
new SendInputAmount(
"How many leathers would you like to tan?", 2, input -> {
180 tan(player, Integer.parseInt(input),
TanData.HARD_LEATHER);
195 player.send(
new SendInputAmount(
"How many leathers would you like to tan?", 2, input -> {
196 tan(player, Integer.parseInt(input),
TanData.SNAKE_HIDE);
211 player.send(
new SendInputAmount(
"How many leathers would you like to tan?", 2, input -> {
212 tan(player, Integer.parseInt(input),
TanData.SNAKESKIN);
227 player.send(
new SendInputAmount(
"How many leathers would you like to tan?", 2, input -> {
228 tan(player, Integer.parseInt(input),
TanData.GREEN_LEATHER);
243 player.send(
new SendInputAmount(
"How many leathers would you like to tan?", 2, input -> {
244 tan(player, Integer.parseInt(input),
TanData.BLUE_LEATHER);
259 player.send(
new SendInputAmount(
"How many leathers would you like to tan?", 2, input -> {
260 tan(player, Integer.parseInt(input),
TanData.RED_LEATHER);
275 player.send(
new SendInputAmount(
"How many leathers would you like to tan?", 2, input -> {
276 tan(player, Integer.parseInt(input),
TanData.BLACK_LEATHER);
static final int CURRENCY
static void open(Player player)
static boolean click(Player player, int button)
static void tan(Player player, int amount, TanData data)
void open(int identification)
static ItemDefinition get(int id)
boolean remove(Item item)
final int computeAmountForId(int id)
static String formatEnum(final String string)
TanData(int ingredient, int product, int cost)