void ProtocolGame::sendCloseContainer(int containerId) { OutputMessage oMsg; oMsg.addU8(Proto::ClientCloseContainer); oMsg.addU8(containerId); send(oMsg); }
void ProtocolGame::sendLeaveChannel(int channelId) { OutputMessage msg; msg.addU8(Proto::ClientLeaveChannel); msg.addU16(channelId); send(msg); }
void ProtocolGame::sendRequestQuestLine(int questId) { OutputMessage msg; msg.addU8(Proto::ClientRequestQuestLine); msg.addU16(questId); send(msg); }
void ProtocolGame::sendRemoveVip(uint playerId) { OutputMessage oMsg; oMsg.addU8(Proto::ClientRemoveBuddy); oMsg.addU32(playerId); send(oMsg); }
void ProtocolGame::sendGetQuestLine(int questId) { OutputMessage oMsg; oMsg.addU8(Proto::ClientGetQuestLine); oMsg.addU16(questId); send(oMsg); }
void ProtocolGame::sendAddVip(const std::string& name) { OutputMessage oMsg; oMsg.addU8(Proto::ClientAddBuddy); oMsg.addString(name); send(oMsg); }
void ProtocolGame::sendOpenChannel(int channelId) { OutputMessage oMsg; oMsg.addU8(Proto::ClientOpenChannel); oMsg.addU16(channelId); send(oMsg); }
void ProtocolGame::sendInviteToParty(uint creatureId) { OutputMessage oMsg; oMsg.addU8(Proto::ClientInviteToParty); oMsg.addU32(creatureId); send(oMsg); }
static void notifyAll( Common< Package > &common ) { common.progress(); OutputMessage msg; msg.tag( Tag::Done ); Daemon::instance().sendAll( msg ); }
void ProtocolGame::sendExcludeFromOwnChannel(const std::string& name) { OutputMessage msg; msg.addU8(Proto::ClientExcludeFromOwnChannel); msg.addString(name); send(msg); }
void ProtocolGame::sendOpenPrivateChannel(const std::string& receiver) { OutputMessage msg; msg.addU8(Proto::ClientOpenPrivateChannel); msg.addString(receiver); send(msg); }
void ProtocolGame::sendInviteToOwnChannel(const std::string& name) { OutputMessage msg; msg.addU8(Proto::ClientInviteToOwnChannel); msg.addString(name); send(msg); }
void ProtocolGame::sendPassLeadership(uint creatureId) { OutputMessage msg; msg.addU8(Proto::ClientPassLeadership); msg.addU32(creatureId); send(msg); }
void ProtocolGame::sendJoinParty(uint creatureId) { OutputMessage msg; msg.addU8(Proto::ClientJoinParty); msg.addU32(creatureId); send(msg); }
void ProtocolGame::sendRevokeInvitation(uint creatureId) { OutputMessage msg; msg.addU8(Proto::ClientRevokeInvitation); msg.addU32(creatureId); send(msg); }
void ProtocolGame::sendRemoveVip(uint playerId) { OutputMessage msg; msg.addU8(Proto::ClientRemoveVip); msg.addU32(playerId); send(msg); }
void ProtocolGame::sendFollow(uint creatureId) { OutputMessage msg; msg.addU8(Proto::ClientFollow); msg.addU32(creatureId); send(msg); }
void ProtocolGame::sendPrivateChannel(const std::string& receiver) { OutputMessage oMsg; oMsg.addU8(Proto::ClientPrivateChannel); oMsg.addString(receiver); send(oMsg); }
void ProtocolGame::sendBugReport(const std::string& comment) { OutputMessage msg; msg.addU8(Proto::ClientBugReport); msg.addString(comment); send(msg); }
void ProtocolGame::sendAddVip(const std::string& name) { OutputMessage msg; msg.addU8(Proto::ClientAddVip); msg.addString(name); send(msg); }
void ProtocolGame::sendUpContainer(int containerId) { OutputMessage msg; msg.addU8(Proto::ClientUpContainer); msg.addU8(containerId); send(msg); }
void ProtocolGame::sendEditText(uint id, const std::string& text) { OutputMessage msg; msg.addU8(Proto::ClientEditText); msg.addU32(id); msg.addString(text); send(msg); }
void ProtocolGame::sendShareExperience(bool active, int unknown) { OutputMessage msg; msg.addU8(Proto::ClientShareExperience); msg.addU8(active ? 0x01 : 0x00); msg.addU8(unknown); send(msg); }
void ProtocolGame::sendLookInShop(int thingId, int count) { OutputMessage oMsg; oMsg.addU8(Proto::ClientInspectNpcTrade); oMsg.addU16(thingId); oMsg.addU8(count); send(oMsg); }
void ProtocolGame::sendInspectTrade(bool counterOffer, int index) { OutputMessage msg; msg.addU8(Proto::ClientInspectTrade); msg.addU8(counterOffer ? 0x01 : 0x00); msg.addU8(index); send(msg); }
void ProtocolGame::sendInspectNpcTrade(int itemId, int count) { OutputMessage msg; msg.addU8(Proto::ClientInspectNpcTrade); msg.addU16(itemId); msg.addU8(count); send(msg); }
void ProtocolLogin::disconnectClient(uint8_t error, const char* message) { OutputMessage* output = OutputMessagePool::getInstance()->getOutputMessage(this, false); output->AddByte(error); output->AddString(message); OutputMessagePool::getInstance()->send(output); getConnection()->closeConnection(); }
void ProtocolGame::sendTextWindow(uint windowTextId, const std::string& text) { OutputMessage oMsg; oMsg.addU8(Proto::ClientEditText); oMsg.addU32(windowTextId); oMsg.addString(text); send(oMsg); }
void ProtocolGame::sendChangeFightModes(Otc::FightModes fightMode, Otc::ChaseModes chaseMode, bool safeFight) { OutputMessage msg; msg.addU8(Proto::ClientChangeFightModes); msg.addU8(fightMode); msg.addU8(chaseMode); msg.addU8(safeFight ? 0x01: 0x00); send(msg); }
void ProtocolGame::sendAttack(uint creatureId) { OutputMessage msg; msg.addU8(Proto::ClientAttack); msg.addU32(creatureId); msg.addU32(0); msg.addU32(0); send(msg); }