mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Second pass through tables [skip ci]
This commit is contained in:
+1
-1
@@ -8123,7 +8123,7 @@ void Client::SendFactionMessage(int32 tmpvalue, int32 faction_id, int32 faction_
|
||||
faction_value = faction_before_hit;
|
||||
|
||||
// default to Faction# if we couldn't get the name from the ID
|
||||
if (database.GetFactionName(faction_id, name, sizeof(name)) == false)
|
||||
if (content_db.GetFactionName(faction_id, name, sizeof(name)) == false)
|
||||
snprintf(name, sizeof(name), "Faction%i", faction_id);
|
||||
|
||||
if (tmpvalue == 0 || temp == 1 || temp == 2)
|
||||
|
||||
+4
-4
@@ -1799,7 +1799,7 @@ void command_timezone(Client *c, const Seperator *sep)
|
||||
c->Message(Chat::Red, "Setting timezone to %i h %i m", hours, minutes);
|
||||
uint32 ntz=(hours*60)+minutes;
|
||||
zone->zone_time.setEQTimeZone(ntz);
|
||||
database.SetZoneTZ(zone->GetZoneID(), zone->GetInstanceVersion(), ntz);
|
||||
content_db.SetZoneTZ(zone->GetZoneID(), zone->GetInstanceVersion(), ntz);
|
||||
|
||||
// Update all clients with new TZ.
|
||||
auto outapp = new EQApplicationPacket(OP_TimeOfDay, sizeof(TimeOfDay_Struct));
|
||||
@@ -9609,11 +9609,11 @@ void command_setgraveyard(Client *c, const Seperator *sep)
|
||||
zoneid = content_db.GetZoneID(sep->arg[1]);
|
||||
|
||||
if(zoneid > 0) {
|
||||
graveyard_id = database.CreateGraveyardRecord(zoneid, t->GetPosition());
|
||||
graveyard_id = content_db.CreateGraveyardRecord(zoneid, t->GetPosition());
|
||||
|
||||
if(graveyard_id > 0) {
|
||||
c->Message(Chat::White, "Successfuly added a new record for this graveyard!");
|
||||
if(database.AddGraveyardIDToZone(zoneid, graveyard_id) > 0) {
|
||||
if(content_db.AddGraveyardIDToZone(zoneid, graveyard_id) > 0) {
|
||||
c->Message(Chat::White, "Successfuly added this new graveyard for the zone %s.", sep->arg[1]);
|
||||
// TODO: Set graveyard data to the running zone process.
|
||||
c->Message(Chat::White, "Done!");
|
||||
@@ -9646,7 +9646,7 @@ void command_deletegraveyard(Client *c, const Seperator *sep)
|
||||
graveyard_id = content_db.GetZoneGraveyardID(zoneid, 0);
|
||||
|
||||
if(zoneid > 0 && graveyard_id > 0) {
|
||||
if(database.DeleteGraveyard(zoneid, graveyard_id))
|
||||
if(content_db.DeleteGraveyard(zoneid, graveyard_id))
|
||||
c->Message(Chat::White, "Successfuly deleted graveyard %u for zone %s.", graveyard_id, sep->arg[1]);
|
||||
else
|
||||
c->Message(Chat::White, "Unable to delete graveyard %u for zone %s.", graveyard_id, sep->arg[1]);
|
||||
|
||||
+1
-1
@@ -269,7 +269,7 @@ public:
|
||||
void SetNPCFactionID(int32 in)
|
||||
{
|
||||
npc_faction_id = in;
|
||||
database.GetFactionIdsForNPC(npc_faction_id, &faction_list, &primary_faction);
|
||||
content_db.GetFactionIdsForNPC(npc_faction_id, &faction_list, &primary_faction);
|
||||
}
|
||||
|
||||
glm::vec4 m_SpawnPoint;
|
||||
|
||||
@@ -550,7 +550,7 @@ bool NpcScaleManager::ApplyGlobalBaseScalingToNPCStatically(NPC *&npc)
|
||||
npc->GetNPCTypeID()
|
||||
);
|
||||
|
||||
auto results = database.QueryDatabase(query);
|
||||
auto results = content_db.QueryDatabase(query);
|
||||
|
||||
return results.Success();
|
||||
}
|
||||
@@ -610,7 +610,7 @@ bool NpcScaleManager::ApplyGlobalBaseScalingToNPCDynamically(NPC *&npc)
|
||||
npc->GetNPCTypeID()
|
||||
);
|
||||
|
||||
auto results = database.QueryDatabase(query);
|
||||
auto results = content_db.QueryDatabase(query);
|
||||
|
||||
return results.Success();
|
||||
}
|
||||
|
||||
+1
-1
@@ -815,7 +815,7 @@ Zone::Zone(uint32 in_zoneid, uint32 in_instanceid, const char* in_short_name)
|
||||
if(graveyard_id() > 0)
|
||||
{
|
||||
LogDebug("Graveyard ID is [{}]", graveyard_id());
|
||||
bool GraveYardLoaded = database.GetZoneGraveyard(graveyard_id(), &pgraveyard_zoneid, &m_Graveyard.x, &m_Graveyard.y, &m_Graveyard.z, &m_Graveyard.w);
|
||||
bool GraveYardLoaded = content_db.GetZoneGraveyard(graveyard_id(), &pgraveyard_zoneid, &m_Graveyard.x, &m_Graveyard.y, &m_Graveyard.z, &m_Graveyard.w);
|
||||
|
||||
if (GraveYardLoaded) {
|
||||
LogDebug("Loaded a graveyard for zone [{}]: graveyard zoneid is [{}] at [{}]", short_name, graveyard_zoneid(), to_string(m_Graveyard).c_str());
|
||||
|
||||
Reference in New Issue
Block a user