1package com.runehive.content.tradingpost;
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.net.packet.out.SendMessage;
27 this.initialQuantity = quantity;
28 if (this.initialQuantity == 0) {
29 this.initialQuantity = 1;
40 player.
send(
new SendMessage(
"Unable to set this price to this quantity. reason: above max integer value."));
void updatePriceStrings()
void updateQuantityString()
TradingPostListing(int itemId, String seller)
void removeQuantity(Player player, int amount)
void addQuantity(Player player, int amount)
void setPrice(Player player, int price)
void setInitialQuantity(int initialQuantity)
void addToAmountSold(int amountSold)
void setAmountSold(int amountSold)
void setQuantity(Player player, int quantity)
void checkAndUpdate(Player player)
This class represents a character controlled by a player.
final Inventory inventory
final TradingPost tradingPost
void send(OutgoingPacket encoder)
final int computeAmountForId(int id)
Computes the total quantity of the Items in this container with id.
The OutgoingPacket that sends a message to a Players chatbox in the client.