60 const std::string &eventId =
event.getId();
66 if (eventId ==
"presell")
68 if (mAmountItems <= 0 || mAmountItems >
mMaxItems)
72 if (
info.isProtected())
79 info.getName().c_str()),
97 if (eventId ==
"confirm")
115 if (mAmountItems <= 0 || mAmountItems >
mMaxItems)
const bool Advanced_false
Net::BuySellHandler * buySellHandler
const std::string & getId() const
virtual unsigned int getRowHeight() const
void setSelected(const int selected)
virtual void close() const =0
virtual void sellItems(std::vector< ShopItem * > &items) const =0
virtual void sellItem(const BeingId beingId, const int itemId, const int amount) const =0
NpcSellDialog(const BeingId npcId)
void sellAction(const ActionEvent &event)
void sellManyItems(const std::string &eventId)
void updateButtonsAndLabels()
ShopListBox * mShopItemList
int getCurrentInvIndex() const
void increaseUsedQuantity(const int amount)
int sellCurrentDuplicate(const int quantity)
std::vector< ShopItem * > & allItems()
void del(const unsigned int i)
ShopItem * at(const size_t i) const
void setValue(const double value)
bool info(InputEvent &event)
const ItemInfo & get(const int id)
ServerTypeT getNetworkType()
bool isItemProtected(const int id)
Net::NpcHandler * npcHandler
static const std::string SOUND_REQUEST
std::string strprintf(const char *const format,...)