742 char* show_str = strtok((
char*)args,
" ");
747 char* guid_str = strtok((
char*)
NULL,
" ");
777 pathid = atoi((
char*)guid_str);
780 std::string show = show_str;
808 Field* fields = result->Fetch();
816 handler->
PSendSysMessage(
"|cff00ff00Show info: for current point: |r|cff00ffff%u|r|cff00ff00, Path ID: |r|cff00ffff%u|r", point, pathid);
817 handler->
PSendSysMessage(
"|cff00ff00Show info: delay: |r|cff00ffff%u|r", delay);
818 handler->
PSendSysMessage(
"|cff00ff00Show info: Move flag: |r|cff00ffff%u|r", flag);
819 handler->
PSendSysMessage(
"|cff00ff00Show info: Waypoint event: |r|cff00ffff%u|r", ev_id);
820 handler->
PSendSysMessage(
"|cff00ff00Show info: Event chance: |r|cff00ffff%u|r", ev_chance);
822 while (result->NextRow());
840 handler->
PSendSysMessage(
"|cff00ff00DEBUG: wp on, PathID: |cff00ffff%u|r", pathid);
851 bool hasError =
false;
855 Field* fields = result2->Fetch();
876 while (result2->NextRow());
888 Field* fields = result->Fetch();
897 Map* map = chr->GetMap();
898 float o = chr->GetOrientation();
933 while (result->NextRow());
935 handler->
SendSysMessage(
"|cff00ff00Showing the current creature's path.|r");
941 handler->
PSendSysMessage(
"|cff00ff00DEBUG: wp first, GUID: %u|r", pathid);
954 Field* fields = result->Fetch();
961 float o = chr->GetOrientation();
962 Map* map = chr->GetMap();
993 handler->
PSendSysMessage(
"|cff00ff00DEBUG: wp last, PathID: |r|cff00ffff%u|r", pathid);
1005 Field* fields = result->Fetch();
1013 Map* map = chr->GetMap();
1054 bool hasError =
false;
1058 Field* fields = result->Fetch();
1077 while (result->NextRow());
1095 handler->
PSendSysMessage(
"|cffff33ffDEBUG: wpshow - no valid command found|r");
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
uint8 GetSpawnMode() const
Definition: Map.h:369
void Execute(const char *sql)
Definition: DatabaseWorkerPool.h:87
Definition: WorldDatabase.h:66
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
uint64 GetUInt64() const
Definition: Field.h:184
Creature * getSelectedCreature()
Definition: Chat.cpp:615
uint32 GetDisplayId() const
Definition: Unit.h:2012
float GetFloat() const
Definition: Field.h:222
uint32 GetWaypointPath() const
Definition: Creature.h:680
Definition: WorldDatabase.h:58
Class used to access individual fields of database query result.
Definition: Field.h:56
Definition: WorldDatabase.h:84
Definition: Language.h:249
Definition: WorldDatabase.h:64
void SaveToDB()
Definition: Creature.cpp:1034
bool Create(ObjectGuid::LowType guidlow, Map *map, uint32 phaseMask, uint32 entry, float x, float y, float z, float ang, CreatureData const *data=nullptr, uint32 vehId=0)
Definition: Creature.cpp:834
ObjectGuid::LowType GetSpawnId() const
Definition: Creature.h:487
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: DBCEnums.h:54
WorldDatabaseWorkerPool WorldDatabase
Accessor to the world database.
Definition: DatabaseEnv.cpp:20
void CopyPhaseFrom(WorldObject *obj, bool update=false)
Definition: Object.cpp:2915
Definition: Creature.h:467
Player * GetPlayer() const
Definition: WorldSession.h:927
void SetObjectScale(float scale) override
Definition: Creature.cpp:2653
uint64 LowType
Definition: ObjectGuid.h:199
Definition: PreparedStatement.h:74
Definition: Language.h:256
Definition: WorldDatabase.h:63
virtual void DeleteFromDB()
Definition: Creature.cpp:1474
uint32 GetId(void) const
Definition: Map.h:325
Definition: Language.h:271
Definition: Language.h:257
Definition: Language.h:33
void AddObjectToRemoveList()
Definition: Object.cpp:2205
void SetLevel(uint8 lvl)
Definition: Unit.cpp:11523
G3D::int16 z
Definition: Vector3int16.h:46
Definition: WorldDatabase.h:59
Definition: Language.h:248
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
Definition: WorldDatabase.h:69
Definition: Language.h:272
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
ObjectGuid const & GetGUID() const
Definition: Object.h:105
void SetDisplayId(uint32 modelId) override
Definition: Creature.cpp:2664
Creature * GetCreature(ObjectGuid const &guid)
Definition: Map.cpp:3535
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
Definition: Language.h:255
Definition: Language.h:252
Definition: Language.h:270
uint32 GetUInt32() const
Definition: Field.h:146
Definition: WorldDatabase.h:88
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
WorldSession * GetSession()
Definition: Chat.h:59
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
uint32 GetEntry() const
Definition: Object.h:107
G3D::int16 x
Definition: Vector2int16.h:37
ObjectGuid::LowType GenerateLowGuid()
Definition: Map.h:561
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
Definition: WorldDatabase.h:62
Definition: Language.h:273
#define VISUAL_WAYPOINT
Definition: MotionMaster.h:32
void CombatStop(bool includingCast=false)
Definition: Unit.cpp:7371
bool LoadCreatureFromDB(ObjectGuid::LowType spawnId, Map *map, bool addToMap=true, bool allowDuplicate=false)
Definition: Creature.cpp:1327
Definition: Language.h:258
Definition: Language.h:254
Definition: Language.h:251
LowType GetCounter() const
Definition: ObjectGuid.h:221