62 outMsg.writeBeingId(being->
getId(),
"npc id");
63 outMsg.writeInt8(0,
"unused");
69 outMsg.writeBeingId(npcId,
"npc id");
75 outMsg.writeBeingId(npcId,
"npc id");
81 if (dialog !=
nullptr)
90 const unsigned char value)
const
93 outMsg.writeBeingId(npcId,
"npc id");
94 outMsg.writeInt8(value,
"value");
98 const int value)
const
101 outMsg.writeBeingId(npcId,
"npc id");
102 outMsg.writeInt32(value,
"value");
106 const std::string &value)
const
109 outMsg.writeInt16(
CAST_S16(value.length() + 9),
"len");
110 outMsg.writeBeingId(npcId,
"npc id");
111 outMsg.writeString(value,
CAST_S32(value.length()),
"value");
112 outMsg.writeInt8(0,
"null byte");
117 if (being ==
nullptr)
120 outMsg.writeBeingId(being->
getId(),
"npc id");
121 outMsg.writeInt8(0,
"action");
127 outMsg.writeBeingId(beingId,
"npc id");
128 outMsg.writeInt8(0,
"action");
134 outMsg.writeBeingId(beingId,
"npc id");
135 outMsg.writeInt8(1,
"action");
141 const int amount)
const
144 outMsg.writeInt16(8,
"len");
145 outMsg.writeInt16(
CAST_S16(amount),
"amount");
146 outMsg.writeInt16(
CAST_S16(itemId),
"item id");
155 const int amount)
const
158 outMsg.writeInt16(8,
"len");
161 outMsg.writeInt16(
CAST_S16(amount),
"amount");
175 const int materialId3
A_UNUSED)
const
207 const BeingId npcId =
msg.readBeingId(
"npc id");
void stopWalking(const bool sendToServer)
static NpcDialogs mNpcDialogs
void buyItem(const BeingId beingId, const int itemId, const ItemColor color, const int amount) const
void repair(const int index) const
void cooking(const CookingTypeT type, const int nameId) const
void sellItem(const BeingId beingId, const int itemId, const int amount) const
void refine(const int index) const
void listInput(const BeingId npcId, const unsigned char value) const
void nextDialog(const BeingId npcId) const
void identify(const int index) const
void talk(const Being *const being) const
void completeProgressBar() const
void produceMix(const int nameId, const int materialId1, const int materialId2, const int materialId3) const
void integerInput(const BeingId npcId, const int value) const
void requestAirship(const std::string &mapName, const int itemId) const
void sellItems(std::vector< ShopItem * > &items) const
void closeDialog(const BeingId npcId)
BeingId getNpc(Net::MessageIn &msg, const NpcActionT action)
void sell(const BeingId beingId) const
void selectArrow(const int nameId) const
void selectAutoSpell(const int skillId) const
void buyItems(std::vector< ShopItem * > &items) const
void stringInput(const BeingId npcId, const std::string &value) const
void buy(const Being *const being) const
static const int INVENTORY_OFFSET
CookingType ::T CookingTypeT
LocalPlayer * localPlayer
#define createOutPacket(name)
bool msg(InputEvent &event)
Net::NpcHandler * npcHandler