50 namespace CashShopRecv
62 count = (
msg.readInt16(
"len") - 12) / blockSize;
64 count = (
msg.readInt16(
"len") - 8) / blockSize;
73 currency =
info->getCurrency();
84 const int points =
msg.readInt32(
"cash points");
89 msg.readInt32(
"kafra points");
90 for (
int f = 0; f < count; f ++)
92 msg.readInt32(
"price");
93 const int value =
msg.readInt32(
"discount price");
95 msg.readUInt8(
"item type"));
96 const int itemId =
msg.readItemId(
"item id");
105 msg.readInt32(
"cash points");
106 msg.readInt32(
"kafra points");
107 const uint16_t res =
msg.readInt16(
"error");
140 msg.readInt32(
"cash points");
141 msg.readInt32(
"kafra points");
148 msg.readInt16(
"result");
149 msg.readInt32(
"cash points");
150 msg.readInt32(
"kafra points");
156 const int count = (
msg.readInt16(
"len") - 10) / 6;
157 msg.readInt32(
"tab");
158 const int itemsCount =
msg.readInt16(
"count");
159 if (count != itemsCount)
162 for (
int f = 0; f < count; f ++)
164 msg.readInt16(
"item id");
165 msg.readInt32(
"price");
175 const int count = (
msg.readInt16(
"len") - 8) / blockSize;
176 const int itemsCount =
msg.readInt16(
"count");
177 msg.readInt16(
"tab");
178 if (count != itemsCount)
181 for (
int f = 0; f < count; f ++)
183 msg.readItemId(
"item id");
184 msg.readInt32(
"price");
const BeingTypeId BeingTypeId_zero
ShopItem * addItem(const int id, const ItemTypeT type, const ItemColor color, const int amount, const int price)
void setMoney(const int amount)
void log(const char *const log_text,...)
const std::string DEFAULT_CURRENCY
#define fromInt(val, name)
const ItemColor ItemColor_one
#define UNIMPLEMENTEDPACKETFIELD(field)
#define UNIMPLEMENTEDPACKET
bool msg(InputEvent &event)
bool info(InputEvent &event)
void processCashShopBuy(Net::MessageIn &msg)
void processCashShopSchedule(Net::MessageIn &msg)
void processCashShopBuyAck(Net::MessageIn &msg)
void processCashShopOpen(Net::MessageIn &msg)
void processCashShopPoints(Net::MessageIn &msg)
void processCashShopTabPriceList(Net::MessageIn &msg)
BeingInfo * get(const BeingTypeId id)
void notify(const unsigned int message)
@ BUY_FAILED_NPC_NOT_FOUND
@ BUY_FAILED_SYSTEM_ERROR