39 uint64 uiCreatureCount = 0;
44 uiCreatureCount = result->GetRowCount();
46 TC_LOG_INFO(
"server.loading",
"Loading Script Waypoints for " UI64FMTD " creature(s)...", uiCreatureCount);
49 result =
WorldDatabase.
Query(
"SELECT entry, pointid, location_x, location_y, location_z, waittime FROM script_waypoint ORDER BY pointid");
53 TC_LOG_INFO(
"server.loading",
">> Loaded 0 Script Waypoints. DB table `script_waypoint` is empty.");
61 Field* pFields = result->Fetch();
81 TC_LOG_ERROR(
"sql.sql",
"TSCR: DB table script_waypoint has waypoint for creature entry %u, but creature does not have ScriptName defined and then useless.", temp.
uiCreatureEntry);
86 while (result->NextRow());
float fZ
Definition: ScriptSystem.h:56
float GetFloat() const
Definition: Field.h:222
Class used to access individual fields of database query result.
Definition: Field.h:56
PointMoveMap m_mPointMoveMap
Definition: ScriptSystem.h:87
uint32 getMSTime()
Definition: Timer.h:24
WorldDatabaseWorkerPool WorldDatabase
Accessor to the world database.
Definition: DatabaseEnv.cpp:20
#define sObjectMgr
Definition: ObjectMgr.h:1567
float fY
Definition: ScriptSystem.h:55
float fX
Definition: ScriptSystem.h:54
Definition: ScriptSystem.h:50
uint32 uiPointId
Definition: ScriptSystem.h:53
#define UI64FMTD
Definition: Define.h:137
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
std::shared_ptr< ResultSet > QueryResult
Definition: QueryResult.h:61
uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
Definition: Timer.h:42
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
uint32 uiCreatureEntry
Definition: ScriptSystem.h:52
uint32 GetUInt32() const
Definition: Field.h:146
#define TC_LOG_INFO(filterType__,...)
Definition: Log.h:201
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
uint32 uiWaitTime
Definition: ScriptSystem.h:57
uint32 ScriptID
Definition: Creature.h:143
Definition: Creature.h:79