mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-04 04:12:25 +00:00
More cleanup of some QueryDatabase references that no longer need auto results
This commit is contained in:
parent
99baba4762
commit
98a49ad086
@ -376,8 +376,6 @@ void Client::RemoveTitle(int titleSet) {
|
|||||||
std::string query = StringFormat("DELETE FROM player_titlesets "
|
std::string query = StringFormat("DELETE FROM player_titlesets "
|
||||||
"WHERE `title_set` = %i AND `char_id` = %i",
|
"WHERE `title_set` = %i AND `char_id` = %i",
|
||||||
titleSet, CharacterID());
|
titleSet, CharacterID());
|
||||||
auto results = database.QueryDatabase(query);
|
database.QueryDatabase(query);
|
||||||
if (!results.Success())
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1250,16 +1250,11 @@ uint32 ZoneDatabase::AddWPForSpawn(Client *client, uint32 spawn2id, float xpos,
|
|||||||
|
|
||||||
query = StringFormat("INSERT INTO grid SET id = '%i', zoneid = %i, type ='%i', type2 = '%i'",
|
query = StringFormat("INSERT INTO grid SET id = '%i', zoneid = %i, type ='%i', type2 = '%i'",
|
||||||
grid_num, zoneid, type1, type2);
|
grid_num, zoneid, type1, type2);
|
||||||
results = QueryDatabase(query);
|
QueryDatabase(query);
|
||||||
if(!results.Success())
|
|
||||||
else if(client)
|
|
||||||
client->LogSQL(query.c_str());
|
|
||||||
|
|
||||||
query = StringFormat("UPDATE spawn2 SET pathgrid = '%i' WHERE id = '%i'", grid_num, spawn2id);
|
query = StringFormat("UPDATE spawn2 SET pathgrid = '%i' WHERE id = '%i'", grid_num, spawn2id);
|
||||||
results = QueryDatabase(query);
|
QueryDatabase(query);
|
||||||
if(!results.Success())
|
|
||||||
else if(client)
|
|
||||||
client->LogSQL(query.c_str());
|
|
||||||
}
|
}
|
||||||
else // NPC had a grid assigned to it
|
else // NPC had a grid assigned to it
|
||||||
createdNewGrid = false;
|
createdNewGrid = false;
|
||||||
@ -1282,9 +1277,6 @@ uint32 ZoneDatabase::AddWPForSpawn(Client *client, uint32 spawn2id, float xpos,
|
|||||||
"VALUES (%i, %i, %i, %f, %f, %f, %i, %f)",
|
"VALUES (%i, %i, %i, %f, %f, %f, %i, %f)",
|
||||||
grid_num, zoneid, next_wp_num, xpos, ypos, zpos, pause, heading);
|
grid_num, zoneid, next_wp_num, xpos, ypos, zpos, pause, heading);
|
||||||
results = QueryDatabase(query);
|
results = QueryDatabase(query);
|
||||||
if(!results.Success())
|
|
||||||
else if(client)
|
|
||||||
client->LogSQL(query.c_str());
|
|
||||||
|
|
||||||
return createdNewGrid? grid_num: 0;
|
return createdNewGrid? grid_num: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -248,9 +248,7 @@ uint32 ZoneDatabase::GetSpawnTimeLeft(uint32 id, uint16 instance_id)
|
|||||||
void ZoneDatabase::UpdateSpawn2Status(uint32 id, uint8 new_status)
|
void ZoneDatabase::UpdateSpawn2Status(uint32 id, uint8 new_status)
|
||||||
{
|
{
|
||||||
std::string query = StringFormat("UPDATE spawn2 SET enabled = %i WHERE id = %lu", new_status, (unsigned long)id);
|
std::string query = StringFormat("UPDATE spawn2 SET enabled = %i WHERE id = %lu", new_status, (unsigned long)id);
|
||||||
auto results = QueryDatabase(query);
|
QueryDatabase(query);
|
||||||
if(!results.Success())
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ZoneDatabase::logevents(const char* accountname,uint32 accountid,uint8 status,const char* charname, const char* target,const char* descriptiontype, const char* description,int event_nid){
|
bool ZoneDatabase::logevents(const char* accountname,uint32 accountid,uint8 status,const char* charname, const char* target,const char* descriptiontype, const char* description,int event_nid){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user