Go to the documentation of this file.
23 #ifndef PROTOCOLGAME_H
24 #define PROTOCOLGAME_H
34 void login(
const std::string& accountName,
const std::string& accountPassword,
const std::string& host,
uint16 port,
const std::string& characterName,
const std::string& authenticatorToken,
const std::string& sessionKey);
43 void sendAutoWalk(
const std::vector<Otc::Direction>& path);
60 void sendBuyItem(
int itemId,
int subType,
int amount,
bool ignoreCapacity,
bool buyWithBackpack);
61 void sendSellItem(
int itemId,
int subType,
int amount,
bool ignoreEquipped);
105 void sendEditVip(
uint playerId,
const std::string& description,
int iconId,
bool notifyLogin);
107 void sendRuleViolation(
const std::string& target,
int reason,
int action,
const std::string& comment,
const std::string& statement,
int statementId,
bool ipBanishment);
108 void sendDebugReport(
const std::string& a,
const std::string& b,
const std::string& c,
const std::string& d);
111 void sendNewNewRuleViolation(
int reason,
int action,
const std::string& characterName,
const std::string& comment,
const std::string& translation);
119 void sendOpenStore(
int serviceType,
const std::string &category);
129 void onError(
const boost::system::error_code& error);
264 std::string m_accountName;
265 std::string m_accountPassword;
266 std::string m_authenticatorToken;
267 std::string m_sessionKey;
268 std::string m_characterName;
void sendChangeMapAwareRange(int xrange, int yrange)
void sendCancelAttackAndFollow()
void sendExcludeFromOwnChannel(const std::string &name)
void sendBugReport(const std::string &comment)
void sendJoinChannel(int channelId)
void sendCloseNpcChannel()
void sendLeaveChannel(int channelId)
void sendNewNewRuleViolation(int reason, int action, const std::string &characterName, const std::string &comment, const std::string &translation)
void setMapDescription(const InputMessagePtr &msg, int x, int y, int z, int width, int height)
void sendCancelRuleViolation()
void sendSeekInContainer(int cid, int index)
void sendOpenOwnChannel()
Outfit getOutfit(const InputMessagePtr &msg)
void sendUseOnCreature(const Position &pos, int thingId, int stackpos, uint creatureId)
void sendBuyItem(int itemId, int subType, int amount, bool ignoreCapacity, bool buyWithBackpack)
ThingPtr getThing(const InputMessagePtr &msg)
void addPosition(const OutputMessagePtr &msg, const Position &position)
void send(const OutputMessagePtr &outputMessage)
void sendLoginPacket(uint challengeTimestamp, uint8 challengeRandom)
void sendMove(const Position &fromPos, int thingId, int stackpos, const Position &toPos, int count)
void sendPassLeadership(uint creatureId)
void sendRotateItem(const Position &pos, int thingId, int stackpos)
void sendAnswerModalDialog(uint32 dialog, int button, int choice)
void sendAddVip(const std::string &name)
void sendDebugReport(const std::string &a, const std::string &b, const std::string &c, const std::string &d)
void sendInviteToOwnChannel(const std::string &name)
void sendRuleViolation(const std::string &target, int reason, int action, const std::string &comment, const std::string &statement, int statementId, bool ipBanishment)
void sendFollow(uint creatureId, uint seq)
ItemPtr getItem(const InputMessagePtr &msg, int id=0)
void onRecv(const InputMessagePtr &inputMessage)
void sendOpenTransactionHistory(int entriesPerPage)
void sendBuyStoreOffer(int offerId, int productType, const std::string &name)
void sendCloseContainer(int containerId)
void sendSellItem(int itemId, int subType, int amount, bool ignoreEquipped)
void sendShareExperience(bool active)
void sendRequestItemInfo(int itemId, int subType, int index)
void sendEditVip(uint playerId, const std::string &description, int iconId, bool notifyLogin)
void sendRequestStoreOffers(const std::string &categoryName, int serviceType)
void sendChangeFightModes(Otc::FightModes fightMode, Otc::ChaseModes chaseMode, bool safeFight, Otc::PVPModes pvpMode)
void sendInspectNpcTrade(int itemId, int count)
void sendLookCreature(uint creatureId)
void sendEditList(uint id, int doorId, const std::string &text)
void sendAutoWalk(const std::vector< Otc::Direction > &path)
void sendRemoveVip(uint playerId)
void sendCloseRuleViolation(const std::string &reporter)
void sendRequestQuestLog()
void sendRequestTrade(const Position &pos, int thingId, int stackpos, uint creatureId)
CreaturePtr getCreature(const InputMessagePtr &msg, int type=0)
void sendInviteToParty(uint creatureId)
void sendAttack(uint creatureId, uint seq)
int setTileDescription(const InputMessagePtr &msg, Position position)
void sendOpenRuleViolation(const std::string &reporter)
Position getPosition(const InputMessagePtr &msg)
void sendTalk(Otc::MessageMode mode, int channelId, const std::string &receiver, const std::string &message)
void sendInspectTrade(bool counterOffer, int index)
void onError(const boost::system::error_code &error)
void sendEquipItem(int itemId, int countOrSubType)
void sendLook(const Position &position, int thingId, int stackpos)
void sendExtendedOpcode(uint8 opcode, const std::string &buffer)
void sendRevokeInvitation(uint creatureId)
void sendMountStatus(bool mount)
void sendBrowseField(const Position &position)
void sendUseItemWith(const Position &fromPos, int itemId, int fromStackPos, const Position &toPos, int toThingId, int toStackPos)
void sendTransferCoins(const std::string &recipient, int amount)
void sendJoinParty(uint creatureId)
void sendOpenPrivateChannel(const std::string &receiver)
void sendRequestTransactionHistory(int page, int entriesPerPage)
void sendEditText(uint id, const std::string &text)
void sendRequestQuestLine(int questId)
void sendChangeOutfit(const Outfit &outfit)
void sendOpenStore(int serviceType, const std::string &category)
ThingPtr getMappedThing(const InputMessagePtr &msg)
StaticTextPtr getStaticText(const InputMessagePtr &msg, int type=0)
void login(const std::string &accountName, const std::string &accountPassword, const std::string &host, uint16 port, const std::string &characterName, const std::string &authenticatorToken, const std::string &sessionKey)
void sendUseItem(const Position &position, int itemId, int stackpos, int index)
void sendRequestChannels()
void sendUpContainer(int containerId)
void sendRefreshContainer(int containerId)
int setFloorDescription(const InputMessagePtr &msg, int x, int y, int z, int width, int height, int offset, int skip)