Replaced various other log calls in zone

This commit is contained in:
Akkadius 2015-01-10 15:59:32 -06:00
parent 4bf74348a1
commit 18c837c398
5 changed files with 39 additions and 41 deletions

View File

@ -1340,7 +1340,7 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
struct in_addr ghost_addr; struct in_addr ghost_addr;
ghost_addr.s_addr = eqs->GetRemoteIP(); ghost_addr.s_addr = eqs->GetRemoteIP();
LogFile->write(EQEmuLog::Error,"Ghosting client: Account ID:%i Name:%s Character:%s IP:%s", logger.Log(EQEmuLogSys::Error, "Ghosting client: Account ID:%i Name:%s Character:%s IP:%s",
client->AccountID(), client->AccountName(), client->GetName(), inet_ntoa(ghost_addr)); client->AccountID(), client->AccountName(), client->GetName(), inet_ntoa(ghost_addr));
client->Save(); client->Save();
client->Disconnect(); client->Disconnect();
@ -6139,7 +6139,7 @@ void Client::Handle_OP_GMNameChange(const EQApplicationPacket *app)
return; return;
} }
Client* client = entity_list.GetClientByName(gmn->oldname); Client* client = entity_list.GetClientByName(gmn->oldname);
LogFile->write(EQEmuLog::Status, "GM(%s) changeing players name. Old:%s New:%s", GetName(), gmn->oldname, gmn->newname); logger.Log(EQEmuLogSys::Status, "GM(%s) changeing players name. Old:%s New:%s", GetName(), gmn->oldname, gmn->newname);
bool usedname = database.CheckUsedName((const char*)gmn->newname); bool usedname = database.CheckUsedName((const char*)gmn->newname);
if (client == 0) { if (client == 0) {
Message(13, "%s not found for name change. Operation failed!", gmn->oldname); Message(13, "%s not found for name change. Operation failed!", gmn->oldname);
@ -9153,9 +9153,7 @@ void Client::Handle_OP_LoadSpellSet(const EQApplicationPacket *app)
void Client::Handle_OP_Logout(const EQApplicationPacket *app) void Client::Handle_OP_Logout(const EQApplicationPacket *app)
{ {
//LogFile->write(EQEMuLog::Debug, "%s sent a logout packet.", GetName()); logger.LogDebug(EQEmuLogSys:EQEmuLogSys::Detail, "%s sent a logout packet.", GetName());
//we will save when we get destroyed soon anyhow
//Save();
SendLogoutPackets(); SendLogoutPackets();

View File

@ -451,7 +451,7 @@ int command_init(void) {
{ {
#ifdef COMMANDS_WARNINGS #ifdef COMMANDS_WARNINGS
if(cur->second->access == 0) if(cur->second->access == 0)
LogFile->write(EQEmuLog::Status, "command_init(): Warning: Command '%s' defaulting to access level 0!" , cur->first.c_str()); logger.Log(EQEmuLogSys::Status, "command_init(): Warning: Command '%s' defaulting to access level 0!" , cur->first.c_str());
#endif #endif
} }
} }
@ -1347,7 +1347,7 @@ void command_viewpetition(Client *c, const Seperator *sep)
if (!results.Success()) if (!results.Success())
return; return;
LogFile->write(EQEmuLog::Normal,"View petition request from %s, petition number: %i", c->GetName(), atoi(sep->argplus[1]) ); logger.Log(EQEmuLogSys::Normal, "View petition request from %s, petition number: %i", c->GetName(), atoi(sep->argplus[1]) );
if (results.RowCount() == 0) { if (results.RowCount() == 0) {
c->Message(13,"There was an error in your request: ID not found! Please check the Id and try again."); c->Message(13,"There was an error in your request: ID not found! Please check the Id and try again.");
@ -1372,7 +1372,7 @@ void command_petitioninfo(Client *c, const Seperator *sep)
if (!results.Success()) if (!results.Success())
return; return;
LogFile->write(EQEmuLog::Normal,"Petition information request from %s, petition number:", c->GetName(), atoi(sep->argplus[1]) ); logger.Log(EQEmuLogSys::Normal, "Petition information request from %s, petition number:", c->GetName(), atoi(sep->argplus[1]) );
if (results.RowCount() == 0) { if (results.RowCount() == 0) {
c->Message(13,"There was an error in your request: ID not found! Please check the Id and try again."); c->Message(13,"There was an error in your request: ID not found! Please check the Id and try again.");
@ -1398,7 +1398,7 @@ void command_delpetition(Client *c, const Seperator *sep)
if (!results.Success()) if (!results.Success())
return; return;
LogFile->write(EQEmuLog::Normal,"Delete petition request from %s, petition number:", c->GetName(), atoi(sep->argplus[1]) ); logger.Log(EQEmuLogSys::Normal, "Delete petition request from %s, petition number:", c->GetName(), atoi(sep->argplus[1]) );
} }
@ -1621,7 +1621,7 @@ void command_permaclass(Client *c, const Seperator *sep)
c->Message(0,"Target is not a client."); c->Message(0,"Target is not a client.");
else { else {
c->Message(0, "Setting %s's class...Sending to char select.", t->GetName()); c->Message(0, "Setting %s's class...Sending to char select.", t->GetName());
LogFile->write(EQEmuLog::Normal,"Class change request from %s for %s, requested class:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) ); logger.Log(EQEmuLogSys::Normal, "Class change request from %s for %s, requested class:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
t->SetBaseClass(atoi(sep->arg[1])); t->SetBaseClass(atoi(sep->arg[1]));
t->Save(); t->Save();
t->Kick(); t->Kick();
@ -1643,7 +1643,7 @@ void command_permarace(Client *c, const Seperator *sep)
c->Message(0,"Target is not a client."); c->Message(0,"Target is not a client.");
else { else {
c->Message(0, "Setting %s's race - zone to take effect",t->GetName()); c->Message(0, "Setting %s's race - zone to take effect",t->GetName());
LogFile->write(EQEmuLog::Normal,"Permanant race change request from %s for %s, requested race:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) ); logger.Log(EQEmuLogSys::Normal, "Permanant race change request from %s for %s, requested race:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
uint32 tmp = Mob::GetDefaultGender(atoi(sep->arg[1]), t->GetBaseGender()); uint32 tmp = Mob::GetDefaultGender(atoi(sep->arg[1]), t->GetBaseGender());
t->SetBaseRace(atoi(sep->arg[1])); t->SetBaseRace(atoi(sep->arg[1]));
t->SetBaseGender(tmp); t->SetBaseGender(tmp);
@ -1667,7 +1667,7 @@ void command_permagender(Client *c, const Seperator *sep)
c->Message(0,"Target is not a client."); c->Message(0,"Target is not a client.");
else { else {
c->Message(0, "Setting %s's gender - zone to take effect",t->GetName()); c->Message(0, "Setting %s's gender - zone to take effect",t->GetName());
LogFile->write(EQEmuLog::Normal,"Permanant gender change request from %s for %s, requested gender:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) ); logger.Log(EQEmuLogSys::Normal, "Permanant gender change request from %s for %s, requested gender:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
t->SetBaseGender(atoi(sep->arg[1])); t->SetBaseGender(atoi(sep->arg[1]));
t->Save(); t->Save();
t->SendIllusionPacket(atoi(sep->arg[1])); t->SendIllusionPacket(atoi(sep->arg[1]));
@ -2009,7 +2009,7 @@ void command_dbspawn2(Client *c, const Seperator *sep)
{ {
if (sep->IsNumber(1) && sep->IsNumber(2) && sep->IsNumber(3)) { if (sep->IsNumber(1) && sep->IsNumber(2) && sep->IsNumber(3)) {
LogFile->write(EQEmuLog::Normal,"Spawning database spawn"); logger.Log(EQEmuLogSys::Normal, "Spawning database spawn");
uint16 cond = 0; uint16 cond = 0;
int16 cond_min = 0; int16 cond_min = 0;
if(sep->IsNumber(4)) { if(sep->IsNumber(4)) {
@ -2329,7 +2329,7 @@ void command_setlanguage(Client *c, const Seperator *sep)
} }
else else
{ {
LogFile->write(EQEmuLog::Normal,"Set language request from %s, target:%s lang_id:%i value:%i", c->GetName(), c->GetTarget()->GetName(), atoi(sep->arg[1]), atoi(sep->arg[2]) ); logger.Log(EQEmuLogSys::Normal, "Set language request from %s, target:%s lang_id:%i value:%i", c->GetName(), c->GetTarget()->GetName(), atoi(sep->arg[1]), atoi(sep->arg[2]) );
uint8 langid = (uint8)atoi(sep->arg[1]); uint8 langid = (uint8)atoi(sep->arg[1]);
uint8 value = (uint8)atoi(sep->arg[2]); uint8 value = (uint8)atoi(sep->arg[2]);
c->GetTarget()->CastToClient()->SetLanguageSkill( langid, value ); c->GetTarget()->CastToClient()->SetLanguageSkill( langid, value );
@ -2354,7 +2354,7 @@ void command_setskill(Client *c, const Seperator *sep)
c->Message(0, " x = 0 to %d", HIGHEST_CAN_SET_SKILL); c->Message(0, " x = 0 to %d", HIGHEST_CAN_SET_SKILL);
} }
else { else {
LogFile->write(EQEmuLog::Normal,"Set skill request from %s, target:%s skill_id:%i value:%i", c->GetName(), c->GetTarget()->GetName(), atoi(sep->arg[1]), atoi(sep->arg[2]) ); logger.Log(EQEmuLogSys::Normal, "Set skill request from %s, target:%s skill_id:%i value:%i", c->GetName(), c->GetTarget()->GetName(), atoi(sep->arg[1]), atoi(sep->arg[2]) );
int skill_num = atoi(sep->arg[1]); int skill_num = atoi(sep->arg[1]);
uint16 skill_value = atoi(sep->arg[2]); uint16 skill_value = atoi(sep->arg[2]);
if(skill_num < HIGHEST_SKILL) if(skill_num < HIGHEST_SKILL)
@ -2374,7 +2374,7 @@ void command_setskillall(Client *c, const Seperator *sep)
} }
else { else {
if (c->Admin() >= commandSetSkillsOther || c->GetTarget()==c || c->GetTarget()==0) { if (c->Admin() >= commandSetSkillsOther || c->GetTarget()==c || c->GetTarget()==0) {
LogFile->write(EQEmuLog::Normal,"Set ALL skill request from %s, target:%s", c->GetName(), c->GetTarget()->GetName()); logger.Log(EQEmuLogSys::Normal, "Set ALL skill request from %s, target:%s", c->GetName(), c->GetTarget()->GetName());
uint16 level = atoi(sep->arg[1]); uint16 level = atoi(sep->arg[1]);
for(SkillUseTypes skill_num=Skill1HBlunt;skill_num <= HIGHEST_SKILL;skill_num=(SkillUseTypes)(skill_num+1)) { for(SkillUseTypes skill_num=Skill1HBlunt;skill_num <= HIGHEST_SKILL;skill_num=(SkillUseTypes)(skill_num+1)) {
c->GetTarget()->CastToClient()->SetSkill(skill_num, level); c->GetTarget()->CastToClient()->SetSkill(skill_num, level);
@ -3169,7 +3169,7 @@ void command_listpetition(Client *c, const Seperator *sep)
if (!results.Success()) if (!results.Success())
return; return;
LogFile->write(EQEmuLog::Normal,"Petition list requested by %s", c->GetName()); logger.Log(EQEmuLogSys::Normal, "Petition list requested by %s", c->GetName());
if (results.RowCount() == 0) if (results.RowCount() == 0)
return; return;
@ -3826,7 +3826,7 @@ void command_lastname(Client *c, const Seperator *sep)
if(c->GetTarget() && c->GetTarget()->IsClient()) if(c->GetTarget() && c->GetTarget()->IsClient())
t=c->GetTarget()->CastToClient(); t=c->GetTarget()->CastToClient();
LogFile->write(EQEmuLog::Normal,"#lastname request from %s for %s", c->GetName(), t->GetName()); logger.Log(EQEmuLogSys::Normal, "#lastname request from %s for %s", c->GetName(), t->GetName());
if(strlen(sep->arg[1]) <= 70) if(strlen(sep->arg[1]) <= 70)
t->ChangeLastName(sep->arg[1]); t->ChangeLastName(sep->arg[1]);
@ -4924,7 +4924,7 @@ void command_manaburn(Client *c, const Seperator *sep)
target->Damage(c, nukedmg, 2751, SkillAbjuration/*hackish*/); target->Damage(c, nukedmg, 2751, SkillAbjuration/*hackish*/);
c->Message(4,"You unleash an enormous blast of magical energies."); c->Message(4,"You unleash an enormous blast of magical energies.");
} }
LogFile->write(EQEmuLog::Normal,"Manaburn request from %s, damage: %d", c->GetName(), nukedmg); logger.Log(EQEmuLogSys::Normal, "Manaburn request from %s, damage: %d", c->GetName(), nukedmg);
} }
} }
else else
@ -5276,7 +5276,7 @@ void command_scribespells(Client *c, const Seperator *sep)
t->Message(0, "Scribing spells to spellbook."); t->Message(0, "Scribing spells to spellbook.");
if(t != c) if(t != c)
c->Message(0, "Scribing spells for %s.", t->GetName()); c->Message(0, "Scribing spells for %s.", t->GetName());
LogFile->write(EQEmuLog::Normal, "Scribe spells request for %s from %s, levels: %u -> %u", t->GetName(), c->GetName(), min_level, max_level); logger.Log(EQEmuLogSys::Normal, "Scribe spells request for %s from %s, levels: %u -> %u", t->GetName(), c->GetName(), min_level, max_level);
for(curspell = 0, book_slot = t->GetNextAvailableSpellBookSlot(), count = 0; curspell < SPDAT_RECORDS && book_slot < MAX_PP_SPELLBOOK; curspell++, book_slot = t->GetNextAvailableSpellBookSlot(book_slot)) for(curspell = 0, book_slot = t->GetNextAvailableSpellBookSlot(), count = 0; curspell < SPDAT_RECORDS && book_slot < MAX_PP_SPELLBOOK; curspell++, book_slot = t->GetNextAvailableSpellBookSlot(book_slot))
{ {
@ -5333,7 +5333,7 @@ void command_scribespell(Client *c, const Seperator *sep) {
if(t != c) if(t != c)
c->Message(0, "Scribing spell: %s (%i) for %s.", spells[spell_id].name, spell_id, t->GetName()); c->Message(0, "Scribing spell: %s (%i) for %s.", spells[spell_id].name, spell_id, t->GetName());
LogFile->write(EQEmuLog::Normal, "Scribe spell: %s (%i) request for %s from %s.", spells[spell_id].name, spell_id, t->GetName(), c->GetName()); logger.Log(EQEmuLogSys::Normal, "Scribe spell: %s (%i) request for %s from %s.", spells[spell_id].name, spell_id, t->GetName(), c->GetName());
if (spells[spell_id].classes[WARRIOR] != 0 && spells[spell_id].skill != 52 && spells[spell_id].classes[t->GetPP().class_ - 1] > 0 && !IsDiscipline(spell_id)) { if (spells[spell_id].classes[WARRIOR] != 0 && spells[spell_id].skill != 52 && spells[spell_id].classes[t->GetPP().class_ - 1] > 0 && !IsDiscipline(spell_id)) {
book_slot = t->GetNextAvailableSpellBookSlot(); book_slot = t->GetNextAvailableSpellBookSlot();
@ -5380,7 +5380,7 @@ void command_unscribespell(Client *c, const Seperator *sep) {
if(t != c) if(t != c)
c->Message(0, "Unscribing spell: %s (%i) for %s.", spells[spell_id].name, spell_id, t->GetName()); c->Message(0, "Unscribing spell: %s (%i) for %s.", spells[spell_id].name, spell_id, t->GetName());
LogFile->write(EQEmuLog::Normal, "Unscribe spell: %s (%i) request for %s from %s.", spells[spell_id].name, spell_id, t->GetName(), c->GetName()); logger.Log(EQEmuLogSys::Normal, "Unscribe spell: %s (%i) request for %s from %s.", spells[spell_id].name, spell_id, t->GetName(), c->GetName());
} }
else { else {
t->Message(13, "Unable to unscribe spell: %s (%i) from your spellbook. This spell is not scribed.", spells[spell_id].name, spell_id); t->Message(13, "Unable to unscribe spell: %s (%i) from your spellbook. This spell is not scribed.", spells[spell_id].name, spell_id);
@ -8139,7 +8139,7 @@ void command_traindisc(Client *c, const Seperator *sep)
t->Message(0, "Training disciplines"); t->Message(0, "Training disciplines");
if(t != c) if(t != c)
c->Message(0, "Training disciplines for %s.", t->GetName()); c->Message(0, "Training disciplines for %s.", t->GetName());
LogFile->write(EQEmuLog::Normal, "Train disciplines request for %s from %s, levels: %u -> %u", t->GetName(), c->GetName(), min_level, max_level); logger.Log(EQEmuLogSys::Normal, "Train disciplines request for %s from %s, levels: %u -> %u", t->GetName(), c->GetName(), min_level, max_level);
for(curspell = 0, count = 0; curspell < SPDAT_RECORDS; curspell++) for(curspell = 0, count = 0; curspell < SPDAT_RECORDS; curspell++)
{ {

View File

@ -139,12 +139,12 @@ void Embperl::DoInit() {
catch(const char *err) catch(const char *err)
{ {
//remember... lasterr() is no good if we crap out here, in construction //remember... lasterr() is no good if we crap out here, in construction
LogFile->write(EQEmuLog::Quest, "perl error: %s", err); logger.Log(EQEmuLogSys::Quest, "perl error: %s", err);
throw "failed to install eval_file hook"; throw "failed to install eval_file hook";
} }
#ifdef EMBPERL_IO_CAPTURE #ifdef EMBPERL_IO_CAPTURE
LogFile->write(EQEmuLog::Quest, "Tying perl output to eqemu logs"); logger.Log(EQEmuLogSys::Quest, "Tying perl output to eqemu logs");
//make a tieable class to capture IO and pass it into EQEMuLog //make a tieable class to capture IO and pass it into EQEMuLog
eval_pv( eval_pv(
"package EQEmuIO; " "package EQEmuIO; "
@ -169,14 +169,14 @@ void Embperl::DoInit() {
,FALSE ,FALSE
); );
LogFile->write(EQEmuLog::Quest, "Loading perlemb plugins."); logger.Log(EQEmuLogSys::Quest, "Loading perlemb plugins.");
try try
{ {
eval_pv("main::eval_file('plugin', 'plugin.pl');", FALSE); eval_pv("main::eval_file('plugin', 'plugin.pl');", FALSE);
} }
catch(const char *err) catch(const char *err)
{ {
LogFile->write(EQEmuLog::Quest, "Warning - plugin.pl: %s", err); logger.Log(EQEmuLogSys::Quest, "Warning - plugin.pl: %s", err);
} }
try try
{ {
@ -194,7 +194,7 @@ void Embperl::DoInit() {
} }
catch(const char *err) catch(const char *err)
{ {
LogFile->write(EQEmuLog::Quest, "Perl warning: %s", err); logger.Log(EQEmuLogSys::Quest, "Perl warning: %s", err);
} }
#endif //EMBPERL_PLUGIN #endif //EMBPERL_PLUGIN
in_use = false; in_use = false;

View File

@ -488,7 +488,7 @@ void Client::SetLevel(uint8 set_level, bool command)
safe_delete(outapp); safe_delete(outapp);
this->SendAppearancePacket(AT_WhoLevel, set_level); // who level change this->SendAppearancePacket(AT_WhoLevel, set_level); // who level change
LogFile->write(EQEmuLog::Normal,"Setting Level for %s to %i", GetName(), set_level); logger.Log(EQEmuLogSys::Normal, "Setting Level for %s to %i", GetName(), set_level);
CalcBonuses(); CalcBonuses();

View File

@ -154,7 +154,7 @@ void QuestManager::echo(int colour, const char *str) {
void QuestManager::say(const char *str) { void QuestManager::say(const char *str) {
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
if (!owner) { if (!owner) {
LogFile->write(EQEmuLog::Quest, "QuestManager::say called with nullptr owner. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::say called with nullptr owner. Probably syntax error in quest file.");
return; return;
} }
else { else {
@ -170,7 +170,7 @@ void QuestManager::say(const char *str) {
void QuestManager::say(const char *str, uint8 language) { void QuestManager::say(const char *str, uint8 language) {
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
if (!owner) { if (!owner) {
LogFile->write(EQEmuLog::Quest, "QuestManager::say called with nullptr owner. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::say called with nullptr owner. Probably syntax error in quest file.");
return; return;
} }
else { else {
@ -548,7 +548,7 @@ void QuestManager::stopalltimers(Mob *mob) {
void QuestManager::emote(const char *str) { void QuestManager::emote(const char *str) {
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
if (!owner) { if (!owner) {
LogFile->write(EQEmuLog::Quest, "QuestManager::emote called with nullptr owner. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::emote called with nullptr owner. Probably syntax error in quest file.");
return; return;
} }
else { else {
@ -559,7 +559,7 @@ void QuestManager::emote(const char *str) {
void QuestManager::shout(const char *str) { void QuestManager::shout(const char *str) {
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
if (!owner) { if (!owner) {
LogFile->write(EQEmuLog::Quest, "QuestManager::shout called with nullptr owner. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::shout called with nullptr owner. Probably syntax error in quest file.");
return; return;
} }
else { else {
@ -570,7 +570,7 @@ void QuestManager::shout(const char *str) {
void QuestManager::shout2(const char *str) { void QuestManager::shout2(const char *str) {
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
if (!owner) { if (!owner) {
LogFile->write(EQEmuLog::Quest, "QuestManager::shout2 called with nullptr owner. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::shout2 called with nullptr owner. Probably syntax error in quest file.");
return; return;
} }
else { else {
@ -589,7 +589,7 @@ void QuestManager::gmsay(const char *str, uint32 color, bool send_to_world, uint
void QuestManager::depop(int npc_type) { void QuestManager::depop(int npc_type) {
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
if (!owner || !owner->IsNPC()) { if (!owner || !owner->IsNPC()) {
LogFile->write(EQEmuLog::Quest, "QuestManager::depop called with nullptr owner or non-NPC owner. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::depop called with nullptr owner or non-NPC owner. Probably syntax error in quest file.");
return; return;
} }
else { else {
@ -619,7 +619,7 @@ void QuestManager::depop(int npc_type) {
void QuestManager::depop_withtimer(int npc_type) { void QuestManager::depop_withtimer(int npc_type) {
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
if (!owner || !owner->IsNPC()) { if (!owner || !owner->IsNPC()) {
LogFile->write(EQEmuLog::Quest, "QuestManager::depop_withtimer called with nullptr owner or non-NPC owner. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::depop_withtimer called with nullptr owner or non-NPC owner. Probably syntax error in quest file.");
return; return;
} }
else { else {
@ -646,7 +646,7 @@ void QuestManager::depopall(int npc_type) {
entity_list.DepopAll(npc_type); entity_list.DepopAll(npc_type);
} }
else { else {
LogFile->write(EQEmuLog::Quest, "QuestManager::depopall called with nullptr owner, non-NPC owner, or invalid NPC Type ID. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::depopall called with nullptr owner, non-NPC owner, or invalid NPC Type ID. Probably syntax error in quest file.");
} }
} }
@ -655,7 +655,7 @@ void QuestManager::depopzone(bool StartSpawnTimer) {
zone->Depop(StartSpawnTimer); zone->Depop(StartSpawnTimer);
} }
else { else {
LogFile->write(EQEmuLog::Quest, "QuestManager::depopzone called with nullptr zone. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::depopzone called with nullptr zone. Probably syntax error in quest file.");
} }
} }
@ -664,7 +664,7 @@ void QuestManager::repopzone() {
zone->Repop(); zone->Repop();
} }
else { else {
LogFile->write(EQEmuLog::Quest, "QuestManager::repopzone called with nullptr zone. Probably syntax error in quest file."); logger.Log(EQEmuLogSys::Quest, "QuestManager::repopzone called with nullptr zone. Probably syntax error in quest file.");
} }
} }
@ -1652,7 +1652,7 @@ void QuestManager::showgrid(int grid) {
"ORDER BY `number`", grid, zone->GetZoneID()); "ORDER BY `number`", grid, zone->GetZoneID());
auto results = database.QueryDatabase(query); auto results = database.QueryDatabase(query);
if (!results.Success()) { if (!results.Success()) {
LogFile->write(EQEmuLog::Quest, "Error loading grid %d for showgrid(): %s", grid, results.ErrorMessage().c_str()); logger.Log(EQEmuLogSys::Quest, "Error loading grid %d for showgrid(): %s", grid, results.ErrorMessage().c_str());
return; return;
} }
@ -2809,7 +2809,7 @@ void QuestManager::voicetell(const char *str, int macronum, int racenum, int gen
safe_delete(outapp); safe_delete(outapp);
} }
else else
LogFile->write(EQEmuLog::Quest, "QuestManager::voicetell from %s. Client %s not found.", owner->GetName(), str); logger.Log(EQEmuLogSys::Quest, "QuestManager::voicetell from %s. Client %s not found.", owner->GetName(), str);
} }
} }