70 const Keep keep)
const
73 outMsg.writeBeingId(
id,
"target id");
75 outMsg.writeInt8(7,
"action");
77 outMsg.writeInt8(0,
"action");
88 outMsg.writeInt8(emoteId,
"emote id");
92 const int amount)
const
97 outMsg.writeInt16(
CAST_S16(attr),
"attribute id");
98 outMsg.writeInt8(
CAST_S8(amount),
"increase");
108 outMsg.writeInt16(skillId,
"skill id");
113 if (floorItem ==
nullptr)
120 outMsg.writeBeingId(
id,
"object id");
124 outMsg.writeInt32(0,
"unused");
125 outMsg.writeInt8(0,
"unused");
126 outMsg.writeBeingId(
id,
"object id");
130 outMsg.writeInt32(0,
"unused");
131 outMsg.writeBeingId(
id,
"object id");
135 outMsg.writeInt32(0,
"unused");
136 outMsg.writeInt8(0,
"unused");
137 outMsg.writeBeingId(
id,
"object id");
141 outMsg.writeInt32(0,
"unused");
142 outMsg.writeInt16(0,
"unused");
143 outMsg.writeInt8(0,
"unused");
144 outMsg.writeBeingId(
id,
"object id");
148 outMsg.writeInt8(0,
"unused");
149 outMsg.writeBeingId(
id,
"object id");
153 outMsg.writeInt32(0,
"unused");
154 outMsg.writeInt8(0,
"unused");
155 outMsg.writeBeingId(
id,
"object id");
159 outMsg.writeInt16(0,
"unused");
160 outMsg.writeBeingId(
id,
"object id");
164 outMsg.writeInt16(0,
"unused");
165 outMsg.writeInt8(0,
"unused");
166 outMsg.writeBeingId(
id,
"object id");
170 outMsg.writeInt8(0,
"unused");
171 outMsg.writeBeingId(
id,
"object id");
175 outMsg.writeInt16(0,
"unused");
176 outMsg.writeInt8(0,
"unused");
177 outMsg.writeBeingId(
id,
"object id");
181 outMsg.writeInt32(0,
"unused");
182 outMsg.writeBeingId(
id,
"object id");
186 outMsg.writeInt32(0,
"unused");
187 outMsg.writeInt32(0,
"unused");
188 outMsg.writeBeingId(
id,
"object id");
192 outMsg.writeInt32(0,
"unused");
193 outMsg.writeInt8(0,
"unused");
194 outMsg.writeBeingId(
id,
"object id");
198 outMsg.writeInt32(0,
"unused");
199 outMsg.writeInt16(0,
"unused");
200 outMsg.writeInt8(0,
"unused");
201 outMsg.writeBeingId(
id,
"object id");
205 outMsg.writeInt32(0,
"unused");
206 outMsg.writeBeingId(
id,
"object id");
210 outMsg.writeBeingId(
id,
"object id");
221 outMsg.writeInt8(0,
"head direction");
222 outMsg.writeInt8(0,
"unused");
228 outMsg.writeInt16(0,
"unused");
229 outMsg.writeInt8(0,
"head direction");
230 outMsg.writeInt32(0,
"unused");
236 outMsg.writeInt32(0,
"unused");
237 outMsg.writeInt16(0,
"unused");
238 outMsg.writeInt8(0,
"head direction");
239 outMsg.writeInt16(0,
"unused");
245 outMsg.writeInt32(0,
"unused");
246 outMsg.writeInt32(0,
"unused");
247 outMsg.writeInt8(0,
"head direction");
248 outMsg.writeInt16(0,
"unused");
254 outMsg.writeInt32(0,
"unused");
255 outMsg.writeInt8(0,
"unused");
256 outMsg.writeInt8(0,
"head direction");
257 outMsg.writeInt8(0,
"unused");
258 outMsg.writeInt16(0,
"unused");
264 outMsg.writeInt32(0,
"unused");
265 outMsg.writeInt16(0,
"unused");
266 outMsg.writeInt8(0,
"head direction");
267 outMsg.writeInt8(0,
"unused");
268 outMsg.writeInt32(0,
"unused");
269 outMsg.writeInt16(0,
"unused");
275 outMsg.writeInt32(0,
"unused");
276 outMsg.writeInt8(0,
"head direction");
277 outMsg.writeInt8(0,
"unused");
278 outMsg.writeInt16(0,
"unused");
284 outMsg.writeInt32(0,
"unused");
285 outMsg.writeInt16(0,
"unused");
286 outMsg.writeInt8(0,
"head direction");
287 outMsg.writeInt8(0,
"unused");
288 outMsg.writeInt32(0,
"unused");
289 outMsg.writeInt16(0,
"unused");
295 outMsg.writeInt8(0,
"unused");
296 outMsg.writeInt32(0,
"unused");
297 outMsg.writeInt16(0,
"unused");
298 outMsg.writeInt8(0,
"head direction");
299 outMsg.writeInt8(0,
"unused");
300 outMsg.writeInt16(0,
"unused");
306 outMsg.writeInt32(0,
"unused");
307 outMsg.writeInt32(0,
"unused");
308 outMsg.writeInt16(0,
"unused");
309 outMsg.writeInt8(0,
"head direction");
310 outMsg.writeInt8(0,
"unused");
311 outMsg.writeInt32(0,
"unused");
312 outMsg.writeInt32(0,
"unused");
318 outMsg.writeInt8(0,
"unused");
319 outMsg.writeInt8(0,
"head direction");
320 outMsg.writeInt8(0,
"unused");
321 outMsg.writeInt16(0,
"unused");
327 outMsg.writeInt32(0,
"unused");
328 outMsg.writeInt8(0,
"head direction");
329 outMsg.writeInt8(0,
"unused");
330 outMsg.writeInt32(0,
"unused");
331 outMsg.writeInt16(0,
"unused");
337 outMsg.writeInt16(0,
"unused");
338 outMsg.writeInt8(0,
"unused");
339 outMsg.writeInt8(0,
"head direction");
340 outMsg.writeInt32(0,
"unused");
341 outMsg.writeInt16(0,
"unused");
347 outMsg.writeInt32(0,
"unused");
348 outMsg.writeInt16(0,
"unused");
349 outMsg.writeInt8(0,
"head direction");
350 outMsg.writeInt32(0,
"unused");
351 outMsg.writeInt32(0,
"unused");
357 outMsg.writeInt16(0,
"unused");
358 outMsg.writeInt8(0,
"head direction");
359 outMsg.writeInt16(0,
"unused");
360 outMsg.writeInt16(0,
"unused");
366 outMsg.writeInt16(0,
"unused");
367 outMsg.writeInt16(0,
"unused");
368 outMsg.writeInt8(0,
"unused");
369 outMsg.writeInt8(0,
"head direction");
370 outMsg.writeInt16(0,
"unused");
371 outMsg.writeInt8(0,
"unused");
377 outMsg.writeInt8(0,
"unused");
378 outMsg.writeInt8(0,
"unused");
379 outMsg.writeInt8(0,
"unused");
380 outMsg.writeInt8(0,
"head direction");
381 outMsg.writeInt16(0,
"unused");
382 outMsg.writeInt16(0,
"unused");
383 outMsg.writeInt16(0,
"unused");
389 outMsg.writeInt8(0,
"head direction");
390 outMsg.writeInt8(0,
"unused");
397 const int direction)
const
401 outMsg.writeInt32(0,
"unused");
404 CAST_U8(direction),
"destination");
430 outMsg.writeInt32(0,
"unused");
431 outMsg.writeInt8(type,
"action");
437 outMsg.writeInt8(0,
"action");
448 outMsg.writeInt8(status,
"status");
449 outMsg.writeInt8(0,
"unused");
456 const int level)
const
463 outMsg.writeInt16(
CAST_S16(tab),
"tab");
465 outMsg.writeInt16(
CAST_S16(idx),
"index");
466 outMsg.writeInt8(
CAST_S8(type),
"type");
467 outMsg.writeInt32(
id,
"id");
468 outMsg.writeInt16(
CAST_S16(level),
"level");
481 outMsg.writeInt16(
CAST_S16(tab),
"tab");
483 outMsg.writeInt8(
CAST_S8(row),
"row");
494 outMsg.writeInt16(
CAST_S16(type),
"type");
515 outMsg.writeInt32(0,
"char id");
516 outMsg.writeInt32(0,
"account id");
525 const int data)
const
528 outMsg.writeInt32(
id,
"config option");
529 outMsg.writeInt32(
data,
"config data");
532 #define setStatComplex(stat) \
533 PlayerInfo::setStatBase(stat, CAST_S32(base), notify); \
535 PlayerInfo::setStatMod(stat, mod, Notify_true)
666 if (newMoney > oldMoney)
671 else if (newMoney < oldMoney)
815 const int middleStyle,
816 const int bottomStyle,
817 const int bodyStyle)
const
826 outMsg.writeInt16(
CAST_S16(headColor),
"head color");
827 outMsg.writeInt16(
CAST_S16(headStyle),
"head style");
828 outMsg.writeInt16(
CAST_S16(bodyColor),
"body color");
829 outMsg.writeInt16(
CAST_S16(topStyle),
"top style");
830 outMsg.writeInt16(
CAST_S16(middleStyle),
"middle style");
831 outMsg.writeInt16(
CAST_S16(bottomStyle),
"bottom style");
832 outMsg.writeInt16(
CAST_S16(bodyStyle),
"body style");
837 outMsg.writeInt16(
CAST_S16(headColor),
"head color");
838 outMsg.writeInt16(
CAST_S16(headStyle),
"head style");
839 outMsg.writeInt16(
CAST_S16(bodyColor),
"body color");
840 outMsg.writeInt16(
CAST_S16(topStyle),
"top style");
841 outMsg.writeInt16(
CAST_S16(middleStyle),
"middle style");
842 outMsg.writeInt16(
CAST_S16(bottomStyle),
"bottom style");
851 outMsg.writeInt32(titleId,
"title");
861 #undef setStatComplex
Attributes ::T AttributesT
BeingAction ::T BeingActionT
void setMaxHp(const int maxHp)
void setAttackSpeed(const int speed)
void setLevel(const int n)
void setWalkSpeed(const int speed)
void pickUp(const FloorItem *const floorItem) const
void changeCart(const int type) const
void attack(const BeingId id, const Keep keep) const
void setDestination(const int x, const int y, const int direction) const
void updateStatus(const uint8_t status) const
void closeStyleWindow() const
void setTitle(const int titleId) const
void setShortcut(const int idx, const int tab, const uint8_t type, const int id, const int level) const
void requestOnlineList() const
void requestPvpInfo() const
void emote(const uint8_t emoteId) const
void removeOption() const
void setStat(Net::MessageIn &msg, const int type, const int64_t base, const int mod, const Notify notify) const
void increaseSkill(const uint16_t skillId) const
void changeAction(const BeingActionT &action) const
void increaseAttribute(const AttributesT attr, const int amount) const
void setConfigOption(const int id, const int data) const
void setDirection(const unsigned char direction) const
void shortcutShiftRow(const int row, const int tab) const
void selectStyle(const int headColor, const int headStyle, const int bodyColor, const int topStyle, const int middleStyle, const int bottomStyle, const int bodyStyle) const
void explosionSpirits() const
static void pushPickup(const BeingId floorId)
static unsigned char toServerDirection(unsigned char direction) A_CONST
PartyMember * getMember(const BeingId id) const
static Party * getParty(const int16_t id)
std::string update(const int id)
void setPointsNeeded(const AttributesT id, const int needed)
#define setStatComplex(stat)
LocalPlayer * localPlayer
#define UNIMPLEMENTEDPACKETFIELD(field)
#define createOutPacket(name)
bool msg(InputEvent &event)
void notify(const unsigned int message)
void setStatMod(const AttributesT id, const int value, const Notify notify)
int32_t getAttribute(const AttributesT id)
void setAttribute(const AttributesT id, const int64_t value, const Notify notify)
void setStatBase(const AttributesT id, const int value, const Notify notify)
std::string formatCurrency(const int value)
Net::PlayerHandler * playerHandler
SkillDialog * skillDialog
StatusWindow * statusWindow