74 outMsg.writeInt32(0,
"unused");
75 outMsg.writeString(name, 24,
"guild name");
88 outMsg.writeBeingId(being->
getId(),
"account id");
89 outMsg.writeInt32(0,
"unused");
90 outMsg.writeInt32(0,
"unused");
95 outMsg.writeString(name, 24,
"name");
101 if (being ==
nullptr)
105 outMsg.writeBeingId(being->
getId(),
"account id");
106 outMsg.writeInt32(0,
"unused");
107 outMsg.writeInt32(0,
"unused");
111 const bool response)
const
114 outMsg.writeInt32(guildId,
"guild id");
115 outMsg.writeInt8(
static_cast<int8_t
>(response),
"response");
116 outMsg.writeInt8(0,
"unused");
117 outMsg.writeInt16(0,
"unused");
126 outMsg.writeInt32(guildId,
"guild id");
129 outMsg.writeString(
"", 40,
"message");
133 const std::string &
restrict reason)
const
135 if ((member ==
nullptr) || (member->getGuild() ==
nullptr))
139 outMsg.writeInt32(member->getGuild()->getId(),
"guild id");
140 outMsg.writeBeingId(member->getID(),
"account id");
141 outMsg.writeInt32(member->getCharId(),
"char id");
142 outMsg.writeString(reason, 40,
"message");
155 outMsg.writeInt16(
CAST_U16(str.size() + 4),
"len");
156 outMsg.writeString(str,
CAST_S32(str.length()),
"message");
160 outMsg.writeInt16(
CAST_U16(str.size() + 4 + 1),
"len");
161 outMsg.writeString(str,
CAST_S32(str.length()),
"message");
162 outMsg.writeInt8(0,
"zero byte");
175 outMsg.writeInt32(1,
"action");
188 outMsg.writeInt32(0,
"action");
192 const int level)
const
194 if ((member ==
nullptr) || (member->
getGuild() ==
nullptr))
198 outMsg.writeInt16(16,
"len");
199 outMsg.writeBeingId(member->
getID(),
"account id");
200 outMsg.writeInt32(member->
getCharId(),
"char id");
201 outMsg.writeInt32(level,
"pos");
209 outMsg.writeInt32(guildId,
"guild id");
210 outMsg.writeString(msg1, 60,
"msg1");
211 outMsg.writeString(
msg2, 120,
"msg2");
221 if (being ==
nullptr)
225 outMsg.writeBeingId(being->
getId(),
"account id");
226 outMsg.writeInt32(0,
"inviter account id");
227 outMsg.writeInt32(0,
"inviter char id");
234 outMsg.writeInt32(beingId,
"account id");
235 outMsg.writeInt32(
static_cast<int32_t
>(
accept),
"accept flag");
239 const int flag)
const
242 outMsg.writeInt32(guildId,
"guild id");
243 outMsg.writeInt32(flag,
"flag");
250 const std::string &name)
const
253 outMsg.writeInt16(44,
"len");
254 outMsg.writeInt32(posId,
"position id");
255 outMsg.writeInt32(mode,
"mode");
256 outMsg.writeInt32(ranking,
"ranking");
257 outMsg.writeInt32(payRate,
"pay rate");
258 outMsg.writeString(name, 24,
"name");
263 if (being ==
nullptr)
267 outMsg.writeBeingId(being->
getId(),
"account id");
273 outMsg.writeString(name, 40,
"name");
279 if (emblem.size() > 200)
280 emblem = emblem.substr(0, 200);
281 const int sz =
CAST_S32(emblem.size());
282 outMsg.writeInt16(
CAST_S16(sz + 4),
"len");
283 outMsg.writeString(emblem, sz,
"emblem");
289 outMsg.writeInt32(guildId,
"guild id");
ActorManager * actorManager
Being * findBeingByName(const std::string &name, const ActorTypeT type) const
const std::string & getName() const
void kick(const GuildMember *const member, const std::string &reason) const
void changeMemberPostion(const GuildMember *const member, const int level) const
void invite(const std::string &name) const
void changeNotice(const int guildId, const std::string &msg1, const std::string &msg2) const
void requestAlliance(const Being *const being) const
void requestAllianceResponse(const int beingId, const bool accept) const
void changeEmblem(std::string emblem) const
void requestEmblem(const int guildId) const
void requestOpposition(const Being *const being) const
void breakGuild(const std::string &name) const
void endAlliance(const int guildId, const int flag) const
void chat(const std::string &text) const
void inviteResponse(const int guildId, const bool response) const
void leave(const int guildId) const
void changePostionInfo(const int posId, const int mode, const int ranking, const int payRate, const std::string &name) const
void create(const std::string &name) const
const Guild * getGuild() const
Net::GuildHandler * guildHandler
LocalPlayer * localPlayer
#define createOutPacket(name)
bool msg2(InputEvent &event)
TcpNet::Socket accept(const TcpNet::Socket sock)