110 outMsg.writeInt32(0xFFFFFFFFU,
"wear location");
112 outMsg.writeInt16(0x7FFFU,
"wear location");
133 outMsg.writeInt32(item->
getId(),
"unused");
137 const int16_t useType)
const
147 outMsg.writeInt16(useType,
"use type");
154 outMsg.writeInt32(item->
getId(),
"unused");
167 outMsg.writeInt16(index,
"index");
168 outMsg.writeInt16(
CAST_S16(amount),
"amount");
172 outMsg.writeInt16(0,
"unknown");
173 outMsg.writeInt16(index,
"index");
174 outMsg.writeInt32(0,
"unknown");
175 outMsg.writeInt16(0,
"unknown");
176 outMsg.writeInt8(0,
"unknown");
177 outMsg.writeInt16(
CAST_S16(amount),
"amount");
181 outMsg.writeInt16(0,
"unknown");
182 outMsg.writeInt8(0,
"unknown");
183 outMsg.writeInt16(index,
"index");
184 outMsg.writeInt8(0,
"unknown");
185 outMsg.writeInt16(
CAST_S16(amount),
"amount");
189 outMsg.writeInt32(0,
"unknown");
190 outMsg.writeInt32(0,
"unknown");
191 outMsg.writeInt16(0,
"unknown");
192 outMsg.writeInt16(index,
"index");
193 outMsg.writeInt32(0,
"unknown");
194 outMsg.writeInt16(
CAST_S16(amount),
"amount");
198 outMsg.writeInt32(0,
"unknown");
199 outMsg.writeInt16(0,
"unknown");
200 outMsg.writeInt16(index,
"index");
201 outMsg.writeInt32(0,
"unknown");
202 outMsg.writeInt8(0,
"unknown");
203 outMsg.writeInt16(
CAST_S16(amount),
"amount");
207 outMsg.writeInt8(0,
"unknown");
208 outMsg.writeInt16(index,
"index");
209 outMsg.writeInt8(0,
"unknown");
210 outMsg.writeInt32(0,
"unknown");
211 outMsg.writeInt16(
CAST_S16(amount),
"amount");
215 outMsg.writeInt32(0,
"unknown");
216 outMsg.writeInt16(index,
"index");
217 outMsg.writeInt16(0,
"unknown");
218 outMsg.writeInt16(
CAST_S16(amount),
"amount");
222 outMsg.writeInt8(0,
"unknown");
223 outMsg.writeInt16(index,
"index");
224 outMsg.writeInt32(0,
"unknown");
225 outMsg.writeInt8(0,
"unknown");
226 outMsg.writeInt16(
CAST_S16(amount),
"amount");
230 outMsg.writeInt16(0,
"unknown");
231 outMsg.writeInt8(0,
"unknown");
232 outMsg.writeInt16(index,
"index");
233 outMsg.writeInt8(0,
"unknown");
234 outMsg.writeInt16(
CAST_S16(amount),
"amount");
238 outMsg.writeInt32(0,
"unknown");
239 outMsg.writeInt32(0,
"unknown");
240 outMsg.writeInt32(0,
"unknown");
241 outMsg.writeInt8(0,
"unknown");
242 outMsg.writeInt16(index,
"index");
243 outMsg.writeInt8(0,
"unknown");
244 outMsg.writeInt16(
CAST_S16(amount),
"amount");
248 outMsg.writeInt16(0,
"unknown");
249 outMsg.writeInt16(index,
"index");
250 outMsg.writeInt32(0,
"unknown");
251 outMsg.writeInt16(
CAST_S16(amount),
"amount");
255 outMsg.writeInt32(0,
"unknown");
256 outMsg.writeInt16(index,
"index");
257 outMsg.writeInt16(0,
"unknown");
258 outMsg.writeInt16(
CAST_S16(amount),
"amount");
262 outMsg.writeInt16(0,
"unknown");
263 outMsg.writeInt8(0,
"unknown");
264 outMsg.writeInt16(index,
"index");
265 outMsg.writeInt32(0,
"unknown");
266 outMsg.writeInt8(0,
"unknown");
267 outMsg.writeInt16(
CAST_S16(amount),
"amount");
271 outMsg.writeInt32(0,
"unknown");
272 outMsg.writeInt32(0,
"unknown");
273 outMsg.writeInt16(0,
"unknown");
274 outMsg.writeInt16(index,
"index");
275 outMsg.writeInt16(0,
"unknown");
276 outMsg.writeInt8(0,
"unknown");
277 outMsg.writeInt16(
CAST_S16(amount),
"amount");
281 outMsg.writeInt32(0,
"unknown");
282 outMsg.writeInt16(index,
"index");
283 outMsg.writeInt32(0,
"unknown");
284 outMsg.writeInt16(0,
"unknown");
285 outMsg.writeInt8(0,
"unknown");
286 outMsg.writeInt16(
CAST_S16(amount),
"amount");
290 outMsg.writeInt32(0,
"unknown");
291 outMsg.writeInt16(0,
"unknown");
292 outMsg.writeInt16(index,
"index");
293 outMsg.writeInt32(0,
"unknown");
294 outMsg.writeInt8(0,
"unknown");
295 outMsg.writeInt16(
CAST_S16(amount),
"amount");
299 outMsg.writeInt16(0,
"unknown");
300 outMsg.writeInt8(0,
"unknown");
301 outMsg.writeInt16(index,
"index");
302 outMsg.writeInt32(0,
"unknown");
303 outMsg.writeInt8(0,
"unknown");
304 outMsg.writeInt16(
CAST_S16(amount),
"amount");
308 outMsg.writeInt16(index,
"index");
309 outMsg.writeInt16(
CAST_S16(amount),
"amount");
319 const int amount)
const
325 outMsg.writeInt32(amount,
"amount");
329 outMsg.writeInt8(0,
"unknown");
331 outMsg.writeInt32(0,
"unknown");
332 outMsg.writeInt32(0,
"unknown");
333 outMsg.writeInt32(0,
"unknown");
334 outMsg.writeInt16(0,
"unknown");
335 outMsg.writeInt8(0,
"unknown");
336 outMsg.writeInt32(amount,
"amount");
340 outMsg.writeInt32(0,
"unknown");
341 outMsg.writeInt8(0,
"unknown");
343 outMsg.writeInt8(0,
"unknown");
344 outMsg.writeInt32(amount,
"amount");
348 outMsg.writeInt16(0,
"unknown");
350 outMsg.writeInt32(0,
"unknown");
351 outMsg.writeInt16(0,
"unknown");
352 outMsg.writeInt8(0,
"unknown");
353 outMsg.writeInt32(amount,
"amount");
357 outMsg.writeInt16(0,
"unknown");
358 outMsg.writeInt8(0,
"unknown");
360 outMsg.writeInt32(0,
"unknown");
361 outMsg.writeInt32(0,
"unknown");
362 outMsg.writeInt32(0,
"unknown");
363 outMsg.writeInt32(amount,
"amount");
367 outMsg.writeInt32(0,
"unknown");
368 outMsg.writeInt32(0,
"unknown");
369 outMsg.writeInt32(0,
"unknown");
370 outMsg.writeInt16(0,
"unknown");
372 outMsg.writeInt32(0,
"unknown");
373 outMsg.writeInt32(0,
"unknown");
374 outMsg.writeInt8(0,
"unknown");
375 outMsg.writeInt32(amount,
"amount");
379 outMsg.writeInt32(0,
"unknown");
380 outMsg.writeInt32(0,
"unknown");
381 outMsg.writeInt16(0,
"unknown");
383 outMsg.writeInt16(0,
"unknown");
384 outMsg.writeInt8(0,
"unknown");
385 outMsg.writeInt32(amount,
"amount");
389 outMsg.writeInt32(0,
"unknown");
390 outMsg.writeInt32(0,
"unknown");
391 outMsg.writeInt32(0,
"unknown");
392 outMsg.writeInt16(0,
"unknown");
394 outMsg.writeInt32(0,
"unknown");
395 outMsg.writeInt32(0,
"unknown");
396 outMsg.writeInt16(0,
"unknown");
397 outMsg.writeInt32(amount,
"amount");
401 outMsg.writeInt32(0,
"unknown");
402 outMsg.writeInt8(0,
"unknown");
404 outMsg.writeInt8(0,
"unknown");
405 outMsg.writeInt32(amount,
"amount");
409 outMsg.writeInt32(0,
"unknown");
410 outMsg.writeInt32(0,
"unknown");
412 outMsg.writeInt32(0,
"unknown");
413 outMsg.writeInt16(0,
"unknown");
414 outMsg.writeInt32(amount,
"amount");
418 outMsg.writeInt16(0,
"unknown");
420 outMsg.writeInt32(0,
"unknown");
421 outMsg.writeInt32(amount,
"amount");
425 outMsg.writeInt32(0,
"unknown");
427 outMsg.writeInt8(0,
"unknown");
428 outMsg.writeInt32(amount,
"amount");
432 outMsg.writeInt16(0,
"unknown");
433 outMsg.writeInt8(0,
"unknown");
435 outMsg.writeInt32(0,
"unknown");
436 outMsg.writeInt8(0,
"unknown");
437 outMsg.writeInt32(amount,
"amount");
441 outMsg.writeInt32(0,
"unknown");
443 outMsg.writeInt32(0,
"unknown");
444 outMsg.writeInt32(0,
"unknown");
445 outMsg.writeInt32(0,
"unknown");
446 outMsg.writeInt8(0,
"unknown");
447 outMsg.writeInt32(amount,
"amount");
451 outMsg.writeInt8(0,
"unknown");
453 outMsg.writeInt32(0,
"unknown");
454 outMsg.writeInt32(0,
"unknown");
455 outMsg.writeInt16(0,
"unknown");
456 outMsg.writeInt32(amount,
"amount");
460 outMsg.writeInt16(0,
"unknown");
461 outMsg.writeInt8(0,
"unknown");
463 outMsg.writeInt32(0,
"unknown");
464 outMsg.writeInt32(0,
"unknown");
465 outMsg.writeInt32(0,
"unknown");
466 outMsg.writeInt32(amount,
"amount");
470 outMsg.writeInt16(0,
"unknown");
471 outMsg.writeInt8(0,
"unknown");
473 outMsg.writeInt32(0,
"unknown");
474 outMsg.writeInt8(0,
"unknown");
475 outMsg.writeInt32(amount,
"amount");
480 outMsg.writeInt32(amount,
"amount");
500 packet = CMSG_MOVE_TO_CART;
507 packet = CMSG_MOVE_FROM_STORAGE;
509 packet = CMSG_MOVE_FROM_STORAGE_TO_CART;
514 packet = CMSG_MOVE_FROM_CART;
516 packet = CMSG_MOVE_FROM_CART_TO_STORAGE;
523 outMsg.writeInt16(
CAST_S16(slot + offset),
"index");
524 outMsg.writeInt32(amount,
"amount");
540 const int itemIndex)
const
550 const bool favorite)
const
560 outMsg.writeInt8(
static_cast<int8_t
>(favorite),
"favorite flag");
575 if (serverSlot < 0 || serverSlot >= 17)
582 const int type)
const
587 outMsg.writeBeingId(accountId,
"account id");
588 outMsg.writeInt8(
CAST_S8(type),
"type");
603 const size_t sz = items.size();
604 outMsg.writeInt16(
CAST_S16(sz * 2 + 4),
606 FOR_EACH (STD_VECTOR<Item*>::const_iterator, it, items)
608 outMsg.writeInt16(
CAST_S16((*it)->getInvIndex() + 2),
void unequipItem(const Item *const item) const
void expandInventoryConfirm() const
void expandInventoryReject() const
void moveItemInventoryToStorage(const int slot, const int amount) const
void selectCart(const BeingId accountId, const int type) const
void favoriteItem(const Item *const item, const bool favorite) const
void expandInventory() const
void dropItem(const Item *const item, const int amount) const
void equipItem(const Item *const item) const
void identifyItem(const Item *const item) const
void mergeItemsAck(const std::vector< Item * > &items) const
void moveItem2(const InventoryTypeT source, const int slot, const int amount, const InventoryTypeT destination) const
void closeStorage() const
void selectEgg(const Item *const item) const
void useItem(const Item *const item) const
void mergetItemsCancel() const
void insertCard(const int cardIndex, const int itemIndex) const
int convertFromServerSlot(const int serverSlot) const
void useCard(const Item *const item)
static const int STORAGE_OFFSET
static const int INVENTORY_OFFSET
const EquipSlot::Type EQUIP_CONVERT[]
#define FOR_EACH(type, iter, array)
Net::InventoryHandler * inventoryHandler
InventoryType ::T InventoryTypeT
#define createOutPacket(name)
Ea::InventoryItems mCartItems
Ea::InventoryItems mInventoryItems
InventoryItems mStorageItems
#define packet(name, id, sz, comment)