mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-03 13:22:28 +00:00
ZoneDatabase::InsertDoor converted to xyz_heading
This commit is contained in:
parent
5af1998167
commit
31d32682b0
@ -735,6 +735,6 @@ void Doors::CreateDatabaseEntry()
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
database.InsertDoor(GetDoorDBID(), GetDoorID(), GetDoorName(), m_Position.m_X, m_Position.m_Y, m_Position.m_Z, m_Position.m_Heading, GetOpenType(), GetGuildID(), GetLockpick(), GetKeyItem(), GetDoorParam(), GetInvertState(), GetIncline(), GetSize());
|
database.InsertDoor(GetDoorDBID(), GetDoorID(), GetDoorName(), m_Position, GetOpenType(), GetGuildID(), GetLockpick(), GetKeyItem(), GetDoorParam(), GetInvertState(), GetIncline(), GetSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2750,7 +2750,7 @@ void ZoneDatabase::QGlobalPurge()
|
|||||||
database.QueryDatabase(query);
|
database.QueryDatabase(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZoneDatabase::InsertDoor(uint32 ddoordbid, uint16 ddoorid, const char* ddoor_name, float dxpos, float dypos, float dzpos, float dheading, uint8 dopentype, uint16 dguildid, uint32 dlockpick, uint32 dkeyitem, uint8 ddoor_param, uint8 dinvert, int dincline, uint16 dsize){
|
void ZoneDatabase::InsertDoor(uint32 ddoordbid, uint16 ddoorid, const char* ddoor_name, const xyz_heading& position, uint8 dopentype, uint16 dguildid, uint32 dlockpick, uint32 dkeyitem, uint8 ddoor_param, uint8 dinvert, int dincline, uint16 dsize){
|
||||||
|
|
||||||
std::string query = StringFormat("REPLACE INTO doors (id, doorid, zone, version, name, "
|
std::string query = StringFormat("REPLACE INTO doors (id, doorid, zone, version, name, "
|
||||||
"pos_x, pos_y, pos_z, heading, opentype, guild, lockpick, "
|
"pos_x, pos_y, pos_z, heading, opentype, guild, lockpick, "
|
||||||
@ -2758,8 +2758,8 @@ void ZoneDatabase::InsertDoor(uint32 ddoordbid, uint16 ddoorid, const char* ddoo
|
|||||||
"VALUES('%i', '%i', '%s', '%i', '%s', '%f', '%f', "
|
"VALUES('%i', '%i', '%s', '%i', '%s', '%f', '%f', "
|
||||||
"'%f', '%f', '%i', '%i', '%i', '%i', '%i', '%i', '%i', '%i')",
|
"'%f', '%f', '%i', '%i', '%i', '%i', '%i', '%i', '%i', '%i')",
|
||||||
ddoordbid, ddoorid, zone->GetShortName(), zone->GetInstanceVersion(),
|
ddoordbid, ddoorid, zone->GetShortName(), zone->GetInstanceVersion(),
|
||||||
ddoor_name, dxpos, dypos, dzpos, dheading, dopentype, dguildid,
|
ddoor_name, position.m_X, position.m_Y, position.m_Z, position.m_Heading,
|
||||||
dlockpick, dkeyitem, ddoor_param, dinvert, dincline, dsize);
|
dopentype, dguildid, dlockpick, dkeyitem, ddoor_param, dinvert, dincline, dsize);
|
||||||
auto results = QueryDatabase(query);
|
auto results = QueryDatabase(query);
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
std::cerr << "Error in InsertDoor" << query << "' " << results.ErrorMessage() << std::endl;
|
std::cerr << "Error in InsertDoor" << query << "' " << results.ErrorMessage() << std::endl;
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
#include "../common/eq_packet_structs.h"
|
#include "../common/eq_packet_structs.h"
|
||||||
#include "../common/loottable.h"
|
#include "../common/loottable.h"
|
||||||
#include "zonedump.h"
|
#include "zonedump.h"
|
||||||
|
#include "position.h"
|
||||||
#include "../common/faction.h"
|
#include "../common/faction.h"
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
@ -445,7 +446,7 @@ public:
|
|||||||
int32 GetDoorsCount(uint32* oMaxID, const char *zone_name, int16 version);
|
int32 GetDoorsCount(uint32* oMaxID, const char *zone_name, int16 version);
|
||||||
int32 GetDoorsCountPlusOne(const char *zone_name, int16 version);
|
int32 GetDoorsCountPlusOne(const char *zone_name, int16 version);
|
||||||
int32 GetDoorsDBCountPlusOne(const char *zone_name, int16 version);
|
int32 GetDoorsDBCountPlusOne(const char *zone_name, int16 version);
|
||||||
void InsertDoor(uint32 did, uint16 ddoorid, const char* ddoor_name, float dxpos, float dypos, float dzpos, float dheading, uint8 dopentype, uint16 dguildid, uint32 dlockpick, uint32 dkeyitem, uint8 ddoor_param, uint8 dinvert, int dincline, uint16 dsize);
|
void InsertDoor(uint32 did, uint16 ddoorid, const char* ddoor_name, const xyz_heading& position, uint8 dopentype, uint16 dguildid, uint32 dlockpick, uint32 dkeyitem, uint8 ddoor_param, uint8 dinvert, int dincline, uint16 dsize);
|
||||||
|
|
||||||
/* Blocked Spells */
|
/* Blocked Spells */
|
||||||
int32 GetBlockedSpellsCount(uint32 zoneid);
|
int32 GetBlockedSpellsCount(uint32 zoneid);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user