Remove obsolete table transport_event_scripts.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-06-23 03:35:12 +02:00
parent b917d5029e
commit 31e369b281
5 changed files with 0 additions and 52 deletions
-34
View File
@@ -8598,40 +8598,6 @@ CreatureInfo const *GetCreatureInfo(uint32 id)
return objmgr.GetCreatureTemplate(id);
}
void ObjectMgr::LoadTransportEvents()
{
QueryResult_AutoPtr result = WorldDatabase.Query("SELECT entry, waypoint_id, event_id FROM transport_events");
if (!result)
{
barGoLink bar1(1);
bar1.step();
sLog.outString("\n>> Transport events table is empty \n");
return;
}
barGoLink bar1(result->GetRowCount());
do
{
bar1.step();
Field *fields = result->Fetch();
//Load event values
uint32 entry = fields[0].GetUInt32();
uint32 waypoint_id = fields[1].GetUInt32();
uint32 event_id = fields[2].GetUInt32();
uint32 event_count = (entry*100)+waypoint_id;
TransportEventMap[event_count] = event_id;
}
while (result->NextRow());
sLog.outString("\n>> Loaded %u transport events \n", result->GetRowCount());
}
CreatureInfo const* GetCreatureTemplateStore(uint32 entry)
{
return sCreatureStorage.LookupEntry<CreatureInfo>(entry);