Go to the documentation of this file.
58 typedef std::tuple<std::string, uint, std::string, int, bool>
Vip;
70 void resetGameStates();
104 void processOpenContainer(
int containerId,
const ItemPtr& containerItem,
const std::string& name,
int capacity,
bool hasParent,
const std::vector<ItemPtr>& items,
bool isUnlocked,
bool hasPages,
int containerSize,
int firstIndex);
111 void processChannelList(
const std::vector<std::tuple<int, std::string> >& channelList);
124 void processVipAdd(
uint id,
const std::string& name,
uint status,
const std::string& description,
int iconId,
bool notifyLogin);
134 const std::vector<std::tuple<int, std::string> >& mountList);
137 void processOpenNpcTrade(
const std::vector<std::tuple<ItemPtr, std::string, int, int, int> >& items);
138 void processPlayerGoods(
int money,
const std::vector<std::tuple<ItemPtr, int> >& goods);
142 void processOwnTrade(
const std::string& name,
const std::vector<ItemPtr>& items);
147 void processEditText(
uint id,
int itemId,
int maxLength,
const std::string& text,
const std::string& writer,
const std::string& date);
151 void processQuestLog(
const std::vector<std::tuple<int, std::string, bool> >& questList);
152 void processQuestLine(
int questId,
const std::vector<std::tuple<std::string, std::string> >& questMissions);
155 void processModalDialog(
uint32 id, std::string title, std::string message, std::vector<std::tuple<int, std::string> > buttonList,
int enterButton,
int escapeButton, std::vector<std::tuple<int, std::string> > choiceList,
bool priority);
162 void loginWorld(
const std::string& account,
const std::string& password,
const std::string& worldName,
const std::string& worldHost,
int worldPort,
const std::string& characterName,
const std::string& authenticatorToken,
const std::string& sessionKey);
170 void autoWalk(std::vector<Otc::Direction> dirs);
176 void look(
const ThingPtr& thing,
bool isBattleList =
false);
200 void talk(
const std::string& message);
227 void addVip(
const std::string& name);
229 void editVip(
int playerId,
const std::string& description,
int iconId,
bool notifyLogin);
249 void buyItem(
const ItemPtr& item,
int amount,
bool ignoreCapacity,
bool buyWithBackpack);
261 void editList(
uint id,
int doorId,
const std::string& text);
269 void reportBug(
const std::string& comment);
270 void reportRuleViolation(
const std::string& target,
int reason,
int action,
const std::string& comment,
const std::string& statement,
int statementId,
bool ipBanishment);
271 void debugReport(
const std::string& a,
const std::string& b,
const std::string& c,
const std::string& d);
292 void buyStoreOffer(
int offerId,
int productType,
const std::string& name =
"");
295 void openStore(
int serviceType = 0,
const std::string& category =
"");
296 void transferCoins(
const std::string& recipient,
int amount);
325 bool isLogging() {
return !m_online && m_protocolGame; }
334 std::map<int, Vip>
getVips() {
return m_vips; }
348 bool isGM() {
return !m_gmActions.empty(); }
359 void setAttackingCreature(
const CreaturePtr& creature);
360 void setFollowingCreature(
const CreaturePtr& creature);
366 std::map<int, ContainerPtr> m_containers;
367 std::map<int, Vip> m_vips;
372 bool m_expertPvpMode;
386 int m_openPvpSituations;
388 bool m_canReportBugs;
389 std::vector<uint8> m_gmActions;
390 std::string m_characterName;
391 std::string m_worldName;
392 std::bitset<Otc::LastGameFeature> m_features;
396 bool m_connectionFailWarned;
397 int m_protocolVersion;
399 std::string m_clientSignature;
400 int m_clientCustomOs;
void openRuleViolation(const std::string &reporter)
int findEmptyContainerId()
void setCanReportBugs(bool enable)
void editList(uint id, int doorId, const std::string &text)
void look(const ThingPtr &thing, bool isBattleList=false)
void loginWorld(const std::string &account, const std::string &password, const std::string &worldName, const std::string &worldHost, int worldPort, const std::string &characterName, const std::string &authenticatorToken, const std::string &sessionKey)
void cancelRuleViolation()
std::vector< uint8 > getGMActions()
void close(const ContainerPtr &container)
void processQuestLine(int questId, const std::vector< std::tuple< std::string, std::string > > &questMissions)
void processModalDialog(uint32 id, std::string title, std::string message, std::vector< std::tuple< int, std::string > > buttonList, int enterButton, int escapeButton, std::vector< std::tuple< int, std::string > > choiceList, bool priority)
void processWalkCancel(Otc::Direction direction)
void leaveChannel(int channelId)
CreaturePtr getFollowingCreature()
void processOpenChannel(int channelId, const std::string &name)
void processTextMessage(Otc::MessageMode mode, const std::string &text)
void browseField(const Position &position)
void processOpenOutfitWindow(const Outfit ¤tOutfit, const std::vector< std::tuple< int, std::string, int > > &outfitList, const std::vector< std::tuple< int, std::string > > &mountList)
void closeRuleViolation(const std::string &reporter)
bool operator==(const UnjustifiedPoints &other)
void inspectNpcTrade(const ItemPtr &item)
void processDeath(int deathType, int penality)
void processEditList(uint id, int doorId, const std::string &text)
void setPingDelay(int delay)
void processQuestLog(const std::vector< std::tuple< int, std::string, bool > > &questList)
void inviteToOwnChannel(const std::string &name)
void setClientVersion(int version)
void processRuleViolationChannel(int channelId)
void setProtocolVersion(int version)
void requestItemInfo(const ItemPtr &item, int index)
void move(const ThingPtr &thing, const Position &toPos, int count)
void setFeature(Otc::GameFeature feature, bool enabled)
std::map< int, ContainerPtr > getContainers()
void processInventoryChange(int slot, const ItemPtr &item)
void processTutorialHint(int id)
void processPlayerGoods(int money, const std::vector< std::tuple< ItemPtr, int > > &goods)
void processEditText(uint id, int itemId, int maxLength, const std::string &text, const std::string &writer, const std::string &date)
void openParent(const ContainerPtr &container)
void processGMActions(const std::vector< uint8 > &actions)
void setPVPMode(Otc::PVPModes pvpMode)
void processLoginToken(bool unknown)
void openPrivateChannel(const std::string &receiver)
void processAddAutomapFlag(const Position &pos, int icon, const std::string &message)
void setFightMode(Otc::FightModes fightMode)
void turn(Otc::Direction direction)
void useInventoryItem(int itemId)
void useWith(const ItemPtr &item, const ThingPtr &toThing)
void processLoginAdvice(const std::string &message)
void processOpenOwnPrivateChannel(int channelId, const std::string &name)
void equipItem(const ItemPtr &item)
std::map< int, Vip > getVips()
void processLoginError(const std::string &error)
bool walk(Otc::Direction direction, bool dash=false)
void partyInvite(int creatureId)
void processCloseNpcTrade()
void processPendingGame()
ItemPtr findItemInContainers(uint itemId, int subType)
void processRemoveAutomapFlag(const Position &pos, int icon, const std::string &message)
void disableFeature(Otc::GameFeature feature)
void requestStoreOffers(const std::string &categoryName, int serviceType=0)
int open(const ItemPtr &item, const ContainerPtr &previousContainer)
void setServerBeat(int beat)
void partyShareExperience(bool active)
void partyJoin(int creatureId)
void requestTrade(const ItemPtr &item, const CreaturePtr &creature)
CreaturePtr getAttackingCreature()
void requestQuestLine(int questId)
void processContainerRemoveItem(int containerId, int slot, const ItemPtr &lastItem)
void buyItem(const ItemPtr &item, int amount, bool ignoreCapacity, bool buyWithBackpack)
void use(const ThingPtr &thing)
void answerModalDialog(uint32 dialog, int button, int choice)
std::string getCharacterName()
void setUnjustifiedPoints(UnjustifiedPoints unjustifiedPoints)
void processOpenContainer(int containerId, const ItemPtr &containerItem, const std::string &name, int capacity, bool hasParent, const std::vector< ItemPtr > &items, bool isUnlocked, bool hasPages, int containerSize, int firstIndex)
void setChaseMode(Otc::ChaseModes chaseMode)
void inspectTrade(bool counterOffer, int index)
void follow(CreaturePtr creature)
uint8 killsMonthRemaining
void talkPrivate(Otc::MessageMode mode, const std::string &receiver, const std::string &message)
void processCloseContainer(int containerId)
void forceWalk(Otc::Direction direction)
bool getFeature(Otc::GameFeature feature)
ticks_t getElapsedTicksSinceLastRead()
void talkChannel(Otc::MessageMode mode, int channelId, const std::string &message)
bool dashWalk(Otc::Direction direction)
void processConnectionError(const boost::system::error_code &ec)
void openStore(int serviceType=0, const std::string &category="")
Otc::Direction getLastWalkDir()
void editVip(int playerId, const std::string &description, int iconId, bool notifyLogin)
void processRuleViolationLock()
void processContainerAddItem(int containerId, const ItemPtr &item, int slot)
void sellItem(const ItemPtr &item, int amount, bool ignoreEquipped)
void excludeFromOwnChannel(const std::string &name)
void processVipAdd(uint id, const std::string &name, uint status, const std::string &description, int iconId, bool notifyLogin)
Otc::FightModes getFightMode()
void refreshContainer(const ContainerPtr &container)
void enableFeature(Otc::GameFeature feature)
void partyRevokeInvitation(int creatureId)
void processOpenPrivateChannel(const std::string &name)
void talk(const std::string &message)
void processChannelList(const std::vector< std::tuple< int, std::string > > &channelList)
void setOpenPvpSituations(int openPvpSituations)
void changeMapAwareRange(int xrange, int yrange)
void transferCoins(const std::string &recipient, int amount)
void processRuleViolationRemove(const std::string &name)
std::string formatCreatureName(const std::string &name)
Otc::PVPModes getPVPMode()
UnjustifiedPoints getUnjustifiedPoints()
ProtocolGamePtr getProtocolGame()
void processContainerUpdateItem(int containerId, int slot, const ItemPtr &item)
void setSafeFight(bool on)
LocalPlayerPtr getLocalPlayer()
void buyStoreOffer(int offerId, int productType, const std::string &name="")
void processCounterTrade(const std::string &name, const std::vector< ItemPtr > &items)
std::tuple< std::string, uint, std::string, int, bool > Vip
void processVipStateChange(uint id, uint status)
void openTransactionHistory(int entriesPerPage)
void reportBug(const std::string &comment)
void processRuleViolationCancel(const std::string &name)
void changeOutfit(const Outfit &outfit)
void removeVip(int playerId)
Otc::ChaseModes getChaseMode()
ContainerPtr getContainer(int index)
void processTalk(const std::string &name, int level, Otc::MessageMode mode, const std::string &text, int channelId, const Position &pos)
std::string getWorldName()
bool canPerformGameAction()
void processUpdateNeeded(const std::string &signature)
void cancelAttackAndFollow()
void processAttackCancel(uint seq)
void seekInContainer(int cid, int index)
void joinChannel(int channelId)
void requestTransactionHistory(int page, int entriesPerPage)
void rotate(const ThingPtr &thing)
void editText(uint id, const std::string &text)
void setExpertPvpMode(bool enable)
bool checkBotProtection()
void processLoginWait(const std::string &message, int time)
void moveToParentContainer(const ThingPtr &thing, int count)
void attack(CreaturePtr creature)
void reportRuleViolation(const std::string &target, int reason, int action, const std::string &comment, const std::string &statement, int statementId, bool ipBanishment)
void processPlayerHelpers(int helpers)
void useInventoryItemWith(int itemId, const ThingPtr &toThing)
void processOwnTrade(const std::string &name, const std::vector< ItemPtr > &items)
void debugReport(const std::string &a, const std::string &b, const std::string &c, const std::string &d)
void autoWalk(std::vector< Otc::Direction > dirs)
void processOpenNpcTrade(const std::vector< std::tuple< ItemPtr, std::string, int, int, int > > &items)
void addVip(const std::string &name)
void processCloseChannel(int channelId)
void processPlayerModes(Otc::FightModes fightMode, Otc::ChaseModes chaseMode, bool safeMode, Otc::PVPModes pvpMode)
void partyPassLeadership(int creatureId)
int getOpenPvpSituations()