mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
Added vehicle*.dbc
This commit is contained in:
parent
af6acab8f8
commit
943963df7e
8 changed files with 51 additions and 23 deletions
|
|
@ -534,7 +534,15 @@ bool ChatHandler::HandleSpawnVehicle(const char* args)
|
|||
uint32 entry = (uint32)atoi(e);
|
||||
uint32 id = (uint32)atoi(i);
|
||||
|
||||
// TODO: check entry, id...
|
||||
CreatureInfo const *ci = objmgr.GetCreatureTemplate(entry);
|
||||
|
||||
if(!ci)
|
||||
return false;
|
||||
|
||||
VehicleEntry const *ve = sVehicleStore.LookupEntry(id);
|
||||
|
||||
if(!ve)
|
||||
return false;
|
||||
|
||||
Vehicle *v = new Vehicle;
|
||||
Map *map = m_session->GetPlayer()->GetMap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue