59 const std::string &partner =
msg.readString(24,
"name");
60 if (
msg.getVersion() >= 6)
62 msg.readInt32(
"char id");
63 msg.readInt16(
"base level");
70 const uint8_t type =
msg.readUInt8(
"type");
71 msg.readInt32(
"char id");
72 msg.readInt16(
"base level");
78 const int type =
msg.readItemId(
"item id");
80 if (
msg.getVersion() >= 20100223)
83 msg.readUInt8(
"item type"));
85 const int amount =
msg.readInt32(
"amount");
86 const uint8_t identify =
msg.readUInt8(
"identify");
88 const uint8_t refine =
msg.readUInt8(
"refine");
91 cards[f] =
msg.readItemId(
"card");
93 if (
msg.getVersion() >= 20150226)
96 for (
int f = 0; f < 5; f ++)
98 const uint16_t idx =
msg.readInt16(
"option index");
99 const uint16_t val =
msg.readInt16(
"option value");
100 msg.readUInt8(
"option param");
101 options->
add(idx, val);
133 msg.readInt16(
"index");
134 const uint8_t res =
msg.readUInt8(
"fail");
#define fromBool(val, name)
Item * getItem(const int index) const
static ItemColor getColorFromCards(const int *const cards)
uint8_t getRefine() const
const ItemOptionsList * getOptions() const
Equipm isEquipment() const
Favorite getFavorite() const
ItemColor getColor() const
Identified getIdentified() const
ItemTypeT getType() const
Damaged getDamaged() const
const int * getCards() const
void increaseQuantity(const int amount)
void setMoney(const int quantity)
void addItem2(const int id, const ItemTypeT type, const int *const cards, const ItemOptionsList *const options, const int sz, const bool own, const int quantity, const uint8_t refine, const ItemColor color, const Identified identified, const Damaged damaged, const Favorite favorite, const Equipm equipment) const
const bool Favorite_false
#define UNIMPLEMENTEDPACKETFIELD(field)
#define UNIMPLEMENTEDPACKET
bool msg(InputEvent &event)
void processTradeRequest(Net::MessageIn &msg)
void processTradeResponse(Net::MessageIn &msg)
void processTradeUndo(Net::MessageIn &msg)
void processTradeItemAdd(Net::MessageIn &msg)
void processTradeItemAddResponse(Net::MessageIn &msg)
void processTradeResponseContinue(const uint8_t type)
void processTradeRequestContinue(const std::string &partner)
void notify(const unsigned int message)
@ TRADE_ADD_PARTNER_OVER_WEIGHT
Inventory * getInventory()
void add(const uint16_t index, const uint16_t value)
TradeWindow * tradeWindow