53 msg.readBeingId(
"pet id");
54 msg.readInt32(
"param");
59 const uint8_t
data =
msg.readUInt8(
"data");
76 const int count = (
msg.readInt16(
"len") - 4) / 2;
91 for (
int f = 0; f < count; f ++)
105 const int cmd =
msg.readUInt8(
"type");
108 const int data =
msg.readInt32(
"data");
144 const std::string name =
msg.readString(24,
"pet name");
145 msg.readUInt8(
"rename flag");
146 const int level =
msg.readInt16(
"level");
147 const int hungry =
msg.readInt16(
"hungry");
148 const int intimacy =
msg.readInt16(
"intimacy");
149 const int equip =
msg.readInt16(
"equip");
160 info->hungry = hungry;
161 info->intimacy = intimacy;
163 if (
msg.getVersion() >= 20081126)
164 info->race =
msg.readInt16(
"class");
171 const int result =
msg.readUInt8(
"result");
172 msg.readItemId(
"food id");
187 msg.readUInt8(
"result");
ActorManager * actorManager
Being * findBeing(const BeingId id) const
Item * getItem(const int index) const
virtual void selectEgg(const Item *const item) const =0
void addItem(const Item *const item, const int price)
static const int INVENTORY_OFFSET
Net::InventoryHandler * inventoryHandler
#define UNIMPLEMENTEDPACKET
bool msg(InputEvent &event)
bool info(InputEvent &event)
void processPetFood(Net::MessageIn &msg)
void processPetRoulette(Net::MessageIn &msg)
void processPetData(Net::MessageIn &msg)
void processPetCatchProcess(Net::MessageIn &msg)
void processPetStatus(Net::MessageIn &msg)
void processPetMessage(Net::MessageIn &msg)
void processPetEvolution(Net::MessageIn &msg)
void processEggsList(Net::MessageIn &msg)
void notify(const unsigned int message)
Inventory * getInventory()
void setPetBeing(Being *const being)
void setPet(PetInfo *const info)