void openRuleViolation(const std::string &reporter)
void setHealth(double health, double maxHealth)
PainterShaderProgramPtr createItemShader(const std::string &name, const std::string &file)
static Color getColor(int color)
void setDrawHealthBars(bool enable)
double getMagicLevelPercent()
bool loadDat(std::string file)
void editList(uint id, int doorId, const std::string &text)
stdext::shared_object_ptr< Town > TownPtr
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()
const CreatureTypePtr & getCreatureByLook(int look)
void close(const ContainerPtr &container)
void unlockVisibleFloor()
ThingPtr getTopMultiUseThing()
void leaveChannel(int channelId)
CreaturePtr getFollowingCreature()
ItemTypeList findItemTypesByString(std::string name)
double getBaseMagicLevel()
bool canWalk(Otc::Direction direction)
void setEmblemTexture(const std::string &filename)
ItemPtr getContainerItem()
void browseField(const Position &position)
void setMana(double mana, double maxMana)
const TilePtr & getTile()
void bindClassStaticFunction(const std::string &functionName, const F &function)
void setKeepAspectRatio(bool enable)
bool loadOtmm(const std::string &fileName)
virtual void setId(uint32)
MarketData getMarketData()
void closeRuleViolation(const std::string &reporter)
const CreatureTypePtr & getCreatureByName(std::string name)
PainterShaderProgramPtr getMapShader()
void inspectNpcTrade(const ItemPtr &item)
Position getTilePosition(const Point &mousePos)
void setMaxZoomIn(int maxZoomIn)
std::vector< ThingPtr > getThings()
void setText(const std::string &text)
void setPingDelay(int delay)
void inviteToOwnChannel(const std::string &name)
void removeTown(uint32 townId)
const std::vector< CreatureTypePtr > & getCreatures()
stdext::shared_object_ptr< Effect > EffectPtr
void fillPosition(const UIWidgetPtr &anchoredWidget, const Position &hookedPosition)
void setClientVersion(int version)
stdext::shared_object_ptr< UIMap > UIMapPtr
void lockWalk(int millis=250)
void setProtocolVersion(int version)
void setAutoViewMode(bool enable)
void setMapDescription(const InputMessagePtr &msg, int x, int y, int z, int width, int height)
void setViewMode(MapView::ViewMode viewMode)
const ItemTypePtr & findItemTypeByName(std::string name)
void requestItemInfo(const ItemPtr &item, int index)
bool loadOtml(std::string file)
bool isWalkable(bool ignoreCreatures=false)
ThingPtr getTopLookThing()
void setFixedCreatureSize(bool fixed)
void move(const ThingPtr &thing, const Position &toPos, int count)
void setDescription(const std::string &desc)
void addThing(const ThingPtr &thing, int stackPos)
void setSkullTexture(const std::string &filename)
CreaturePtr getTopCreature()
void setDirection(Otc::Direction direction)
void setFeature(Otc::GameFeature feature, bool enabled)
void setName(const std::string &name)
std::map< int, ContainerPtr > getContainers()
std::vector< ItemPtr > getItems()
void setLevel(double level, double levelPercent)
bool hasFlag(uint32 flag)
void loadOtbm(const std::string &fileName)
bool isShowingAnimations()
void setHouseFile(const std::string &file)
Rect getTileRect(const Position &pos)
void saveOtbm(const std::string &fileName)
void setShowZone(tileflags_t zone, bool show)
Outfit getOutfit(const InputMessagePtr &msg)
CreaturePtr getFollowingCreature()
stdext::shared_object_ptr< Missile > MissilePtr
bool isAutoViewModeEnabled()
void openParent(const ContainerPtr &container)
void setPos(const Position &pos)
void setMaxZoom(int maxZoom)
void setIconTexture(const std::string &filename)
bool autoWalk(const Position &destination)
ThingPtr getThing(const InputMessagePtr &msg)
bool addMessage(const std::string &name, Otc::MessageMode mode, const std::string &text)
PainterShaderProgramPtr createMapShader(const std::string &name, const std::string &file)
ThingPtr getThing(const Position &pos, int stackPos)
ItemPtr getContainerItem(int slot)
bool loadOtcm(const std::string &fileName)
std::string getHouseFile()
void setPVPMode(Otc::PVPModes pvpMode)
void setKnown(bool known)
void clearContainerItems()
void addPosition(const OutputMessagePtr &msg, const Position &position)
void openPrivateChannel(const std::string &receiver)
int getSkillBaseLevel(Otc::Skill skill)
const Position & getPosition()
void cleanTile(const Position &pos)
void setFightMode(Otc::FightModes fightMode)
bool isCompletelyCovered(const Position &pos, int firstFloor=0)
void turn(Otc::Direction direction)
void useInventoryItem(int itemId)
void useWith(const ItemPtr &item, const ThingPtr &toThing)
PainterShaderProgramPtr createFragmentShaderFromCode(const std::string &name, const std::string &code)
const TilePtr & getTile(const Position &pos)
void setText(std::string txt)
void anchorPosition(const UIWidgetPtr &anchoredWidget, Fw::AnchorEdge anchoredEdge, const Position &hookedPosition, Fw::AnchorEdge hookedEdge)
void addCreature(const Position &placePos, const CreatureTypePtr &cType)
const ItemTypePtr & getItemType(uint16 id)
void setSpawnTime(int32 spawnTime)
void setInventoryItem(Otc::InventorySlot inventory, const ItemPtr &item)
void setCenterPos(const Position &pos)
void registerSingletonClass(const std::string &className)
bool isLimitVisibleRangeEnabled()
void equipItem(const ItemPtr &item)
void setItem(const ItemPtr &item)
void setMapShader(const PainterShaderProgramPtr &shader, float fadeout, float fadein)
void addContainerItemIndexed(const ItemPtr &i, int slot)
std::map< int, Vip > getVips()
void saveImage(const std::string &fileName, const Rect &mapRect)
ThingPtr getThing(int stackPos)
void setUniqueId(uint16 uniqueId)
bool walk(Otc::Direction direction, bool dash=false)
ItemVector getContainerItems()
int getThingStackPos(const ThingPtr &thing)
bool hasSight(const Position &pos)
void partyInvite(int creatureId)
bool removeThing(ThingPtr thing)
stdext::shared_object_ptr< Creature > CreaturePtr
ItemPtr findItemInContainers(uint itemId, int subType)
MarketData getMarketData()
CreaturePtr getCreature()
void deleteSpawn(const SpawnPtr &spawn)
const ThingTypeList & getThingTypes(ThingCategory category)
std::tuple< std::vector< Otc::Direction >, Otc::PathFindResult > findPath(const Position &start, const Position &goal, int maxComplexity, int flags=0)
const PainterShaderProgramPtr & getDefaultMapShader()
void setMinZoom(int minZoom)
CreatureManager g_creatures
friend class ProtocolGame
void disableFeature(Otc::GameFeature feature)
bool isKeepAspectRatioEnabled()
void requestStoreOffers(const std::string &categoryName, int serviceType=0)
Position getCameraPosition()
int open(const ItemPtr &item, const ContainerPtr &previousContainer)
void setPercent(float percent)
void setZoneColor(tileflags_t zone, const Color &color)
void setDescription(std::string desc)
void load(const std::string &fileName)
Point getTilePoint(const Position &pos)
bool isDrawingHealthBars()
void addDoor(const ItemPtr &door)
void partyShareExperience(bool active)
void setTownId(uint32 tid)
void movePixels(int x, int y)
uint16 getContentRevision()
bool hasAttr(ThingAttr attr)
void loadXml(const std::string &file)
void setCameraPosition(const Position &pos)
ItemPtr getItem(const InputMessagePtr &msg, int id=0)
void partyJoin(int creatureId)
void setCreature(const CreaturePtr &creature)
void requestTrade(const ItemPtr &item, const CreaturePtr &creature)
void removeThingColor(const ThingPtr &thing)
CreaturePtr getAttackingCreature()
void followCreature(const CreaturePtr &creature)
void requestQuestLine(int questId)
void setMinimumAmbientLight(float intensity)
std::string getDescription()
Position getTeleportDestination()
void bindClassMemberFunction(const std::string &functionName, F FC::*function)
void setOutfitColor(const Color &color, int duration)
stdext::shared_object_ptr< UICreature > UICreaturePtr
void setTeleportDestination(const Position &pos)
void setMagicLevel(double magicLevel, double magicLevelPercent)
void saveSpawns(const std::string &fileName)
const TownPtr & getTownByName(std::string name)
void setStates(int states)
std::map< Position, ItemPtr > findItemsById(uint16 clientId, uint32 max)
void buyItem(const ItemPtr &item, int amount, bool ignoreCapacity, bool buyWithBackpack)
HousePtr getHouse(uint32 houseId)
void setItemVisible(bool visible)
void removeContainerItem(int slot)
const PainterShaderProgramPtr & getDefaultItemShader()
void setShowAnimations(bool show)
void use(const ThingPtr &thing)
std::vector< int > getSprites()
void setTypeTexture(const std::string &filename)
PainterShaderProgramPtr getShader(const std::string &name)
void setExperience(double experience)
virtual bool isCreature()
void answerModalDialog(uint32 dialog, int button, int choice)
std::string getCharacterName()
std::vector< CreaturePtr > getCreatures()
void setTile(const TilePtr &tile)
void setSoul(double soul)
ItemPtr getItem(int slot)
const TileList getTiles(int floor=-1)
void setChaseMode(Otc::ChaseModes chaseMode)
void addThing(const ThingPtr &thing, const Position &pos, int stackPos=-1)
void inspectTrade(bool counterOffer, int index)
std::vector< SpawnPtr > getSpawns()
void follow(CreaturePtr creature)
virtual bool isLocalPlayer()
void setMultifloor(bool enable)
ThingPtr getTopUseThing()
void jump(int height, int duration)
void loadNpcs(const std::string &folder)
static ItemPtr createFromOtb(int id)
stdext::shared_object_ptr< CreatureType > CreatureTypePtr
void talkPrivate(Otc::MessageMode mode, const std::string &receiver, const std::string &message)
void colorizeThing(const ThingPtr &thing, const Color &color)
void addHouse(const HousePtr &house)
stdext::shared_object_ptr< UIItem > UIItemPtr
CreaturePtr getCreature(const InputMessagePtr &msg, int type=0)
const ItemTypePtr & findItemTypeByClientId(uint16 id)
const TilePtr & createTile(const Position &pos)
void setFlag(uint32 flag)
void saveOtcm(const std::string &fileName)
stdext::shared_object_ptr< House > HousePtr
void setActionId(uint16 actionId)
PainterShaderProgramPtr createFragmentShader(const std::string &name, std::string file)
ItemTypeList findItemTypeByCategory(ItemCategory category)
void setZoneOpacity(float opacity)
static Otc::Direction getDirectionFromPositions(const Position &fromPos, const Position &toPos)
void saveSpr(std::string fileName)
void centerInPosition(const UIWidgetPtr &anchoredWidget, const Position &hookedPosition)
void forceWalk(Otc::Direction direction)
void setOutfit(const Outfit &o)
const TownPtr & getTown(uint32 townId)
void setVirtual(bool virt)
TilePtr getTile(const Point &mousePos)
float getMinimumAmbientLight()
const ThingTypePtr & getThingType(uint16 id, ThingCategory category)
void registerClass(const std::string &className, const std::string &baseClass="LuaObject")
bool getFeature(Otc::GameFeature feature)
void removeCreatureById(uint32 id)
int setTileDescription(const InputMessagePtr &msg, Position position)
void removeDoorById(uint32 doorId)
void talkChannel(Otc::MessageMode mode, int channelId, const std::string &message)
void setShieldTexture(const std::string &filename, bool blink)
void setFlags(uint32 flags)
bool dashWalk(Otc::Direction direction)
Otc::Direction getDirection()
static double getAngleFromPositions(const Position &fromPos, const Position &toPos)
Position getPosition(const InputMessagePtr &msg)
ticks_t getWalkTicksElapsed()
stdext::shared_object_ptr< UIMinimap > UIMinimapPtr
stdext::shared_object_ptr< ThingType > ThingTypePtr
void setDrawFlags(Otc::DrawFlags drawFlags)
void bindGlobalFunction(const std::string &functionName, const F &function)
void openStore(int serviceType=0, const std::string &category="")
void setItemSubType(int subType)
Otc::Direction getLastWalkDir()
std::vector< CreatureTypePtr > getCreatures()
HousePtr getHouseByName(std::string name)
void setDrawLights(bool enable)
void editVip(int playerId, const std::string &description, int iconId, bool notifyLogin)
HouseList filterHouses(uint32 townId)
static ItemPtr create(int id)
void sellItem(const ItemPtr &item, int amount, bool ignoreEquipped)
void showStaticSquare(const Color &color)
virtual bool isAnimatedText()
stdext::shared_object_ptr< UIProgressRect > UIProgressRectPtr
Color getZoneColor(tileflags_t flag)
void excludeFromOwnChannel(const std::string &name)
void loadSpawns(const std::string &fileName)
void sendExtendedOpcode(uint8 opcode, const std::string &buffer)
SpawnPtr getSpawnForPlacePos(const Position &pos)
void remFlag(uint32 flag)
void setDrawNames(bool enable)
TilePtr getTile(const Position &pos)
Otc::FightModes getFightMode()
void setAnimated(bool enable)
void setTotalCapacity(double totalCapacity)
void refreshContainer(const ContainerPtr &container)
double getRegenerationTime()
void setName(const std::string &name)
void loadMonsters(const std::string &file)
std::vector< CreaturePtr > getSpectators(const Position ¢erPos, bool multiFloor)
void enableFeature(Otc::GameFeature feature)
void setSpawnFile(const std::string &file)
stdext::shared_object_ptr< Spawn > SpawnPtr
Position getSlotPosition(int slot)
void partyRevokeInvitation(int creatureId)
void talk(const std::string &message)
void setDrawManaBar(bool enable)
void changeMapAwareRange(int xrange, int yrange)
std::string getSpawnFile()
void transferCoins(const std::string &recipient, int amount)
double getOfflineTrainingTime()
void loadOtb(const std::string &file)
Otc::PVPModes getPVPMode()
UnjustifiedPoints getUnjustifiedPoints()
ProtocolGamePtr getProtocolGame()
Position getCameraPosition()
bool isForcingAnimations()
void setStamina(double stamina)
void setSafeFight(bool on)
LocalPlayerPtr getLocalPlayer()
bool isLookPossible(const Position &pos)
void buyStoreOffer(int offerId, int productType, const std::string &name="")
stdext::shared_object_ptr< UISprite > UISpritePtr
bool removeThingByPos(const Position &pos, int stackPos)
std::vector< std::string > getDescriptions()
SpawnPtr getSpawn(const Position ¢erPos)
stdext::shared_object_ptr< StaticText > StaticTextPtr
ItemPtr getInventoryItem(Otc::InventorySlot inventory)
void setItemCount(int count)
void setSpriteColor(Color color)
int getStepDuration(bool ignoreDiagonal=false, Otc::Direction dir=Otc::InvalidDirection)
void openTransactionHistory(int entriesPerPage)
void reportBug(const std::string &comment)
ThingTypeList findThingTypeByAttr(ThingAttr attr, ThingCategory category)
Size getVisibleDimension()
bool isFixedCreatureSize()
void loadSingleCreature(const std::string &file)
void changeOutfit(const Outfit &outfit)
void drawSelf(Fw::DrawPane drawPane)
virtual bool isStaticText()
ContainerPtr getParentContainer()
void setPathable(bool var)
void setPosition(const Position &position)
void beginGhostMode(float opacity)
int getSkillLevelPercent(Otc::Skill skill)
void setAddLightMethod(bool add)
void saveOtmm(const std::string &fileName)
void setCameraPosition(const Position &pos)
void removeVip(int playerId)
Otc::ChaseModes getChaseMode()
PainterShaderProgramPtr createShader(const std::string &name)
void setEntry(const Position &p)
void setShowZones(bool show)
void setLimitVisibleRange(bool limitVisibleRange)
ContainerPtr getContainer(int index)
void bindSingletonFunction(const std::string &functionName, F C::*function, C *instance)
void setCentralPosition(const Position ¢ralPosition)
std::string getWorldName()
void addTown(const TownPtr &town)
void registerLuaFunctions()
ItemTypeList findItemTypesByName(std::string name)
void setFont(const std::string &fontName)
void setVisibleDimension(const Size &visibleDimension)
bool canPerformGameAction()
ThingCategory getCategory()
void setOutfit(const Outfit &outfit)
void removeHouse(uint32 houseId)
void cancelAttackAndFollow()
void addContainerItem(const ItemPtr &i)
void exportImage(std::string fileName)
CreaturePtr getCreatureById(uint32 id)
bool loadSpr(std::string file)
void overwriteMinimapColor(uint8 color)
void seekInContainer(int cid, int index)
void saveDat(std::string fileName)
Position getCentralPosition()
MapView::ViewMode getViewMode()
void setFreeCapacity(double freeCapacity)
void setMaxZoomOut(int maxZoomOut)
ThingPtr getTopMoveThing()
void setOutfit(const Outfit &outfit)
void joinChannel(int channelId)
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)
stdext::shared_object_ptr< ProtocolGame > ProtocolGamePtr
void requestTransactionHistory(int page, int entriesPerPage)
void rotate(const ThingPtr &thing)
void removeCreature(const Position &pos)
void editText(uint id, const std::string &text)
bool showZone(tileflags_t zone)
std::deque< ItemPtr > getItems()
SpawnPtr addSpawn(const Position ¢erPos, int radius)
bool checkBotProtection()
void moveToParentContainer(const ThingPtr &thing, int count)
void attack(CreaturePtr creature)
ThingTypeManager g_things
void reportRuleViolation(const std::string &target, int reason, int action, const std::string &comment, const std::string &statement, int statementId, bool ipBanishment)
bool removeThing(const ThingPtr &thing)
int getExactSize(int layer=0, int xPattern=0, int yPattern=0, int zPattern=0, int animationPhase=0)
void useInventoryItemWith(int itemId, const ThingPtr &toThing)
double getTotalCapacity()
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 removeDoor(const ItemPtr &door)
int getSkillLevel(Otc::Skill skill)
void addVip(const std::string &name)
void setColor(const Color &color)
Otc::DrawFlags getDrawFlags()
void lockVisibleFloor(int floor)
bool loadImage(const std::string &fileName, const Position &topLeft, float colorFactor)
void save(const std::string &fileName)
void setName(const std::string &name)
void partyPassLeadership(int creatureId)
void setForceShowAnimations(bool force)
int getOpenPvpSituations()
bool isCovered(const Position &pos, int firstFloor=0)
void setDrawTexts(bool enable)
int setFloorDescription(const InputMessagePtr &msg, int x, int y, int z, int width, int height, int offset, int skip)
void setSkill(Otc::Skill skill, int level, int levelPercent)