52 outMsg.writeInt32(msgId,
"message id");
58 outMsg.writeInt32(msgId,
"message id");
64 outMsg.writeInt32(msgId,
"message id");
70 outMsg.writeInt32(msgId,
"message id");
71 outMsg.writeString(
"", 24,
"unused");
78 outMsg.writeInt32(amount,
"amount");
84 outMsg.writeInt16(
CAST_S16(0),
"index");
85 outMsg.writeInt32(money,
"money");
91 outMsg.writeInt16(
CAST_S16(flag),
"flag");
95 const std::string &title,
96 std::string message)
const
98 if (message.size() > 255)
99 message = message.substr(0, 255);
100 const int sz =
CAST_S32(message.size());
103 outMsg.writeInt16(
CAST_S16(69 + sz),
"len");
104 outMsg.writeString(name, 24,
"name");
105 outMsg.writeString(title, 40,
"title");
106 outMsg.writeInt8(
CAST_S8(sz),
"message size");
107 outMsg.writeString(message, sz,
"message");
void getAttach(const int msgId) const
void returnMessage(const int msgId) const
void setAttach(const int index, const int amount) const
void setAttachMoney(const int money) const
void send(const std::string &name, const std::string &title, std::string message) const
void readMessage(const int msgId) const
void resetAttach(const int flag) const
void deleteMessage(const int msgId) const
static const int INVENTORY_OFFSET
Net::MailHandler * mailHandler
#define createOutPacket(name)