mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 20:41:33 +00:00
port mlog 'CLIENT__SPELLS' category to new log system
This commit is contained in:
parent
6a567288ae
commit
1405d9e114
@ -5119,7 +5119,6 @@ void Client::Handle_OP_Death(const EQApplicationPacket *app)
|
|||||||
|
|
||||||
//I think this attack_skill value is really a value from SkillDamageTypes...
|
//I think this attack_skill value is really a value from SkillDamageTypes...
|
||||||
if (ds->attack_skill > HIGHEST_SKILL) {
|
if (ds->attack_skill > HIGHEST_SKILL) {
|
||||||
mlog(CLIENT__ERROR, "Invalid skill in OP_Death: %d");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1576,7 +1576,7 @@ void Mob::SendIllusionPacket(uint16 in_race, uint8 in_gender, uint8 in_texture,
|
|||||||
|
|
||||||
entity_list.QueueClients(this, outapp);
|
entity_list.QueueClients(this, outapp);
|
||||||
safe_delete(outapp);
|
safe_delete(outapp);
|
||||||
mlog(CLIENT__SPELLS, "Illusion: Race = %i, Gender = %i, Texture = %i, HelmTexture = %i, HairColor = %i, BeardColor = %i, EyeColor1 = %i, EyeColor2 = %i, HairStyle = %i, Face = %i, DrakkinHeritage = %i, DrakkinTattoo = %i, DrakkinDetails = %i, Size = %f",
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Spells, "Illusion: Race = %i, Gender = %i, Texture = %i, HelmTexture = %i, HairColor = %i, BeardColor = %i, EyeColor1 = %i, EyeColor2 = %i, HairStyle = %i, Face = %i, DrakkinHeritage = %i, DrakkinTattoo = %i, DrakkinDetails = %i, Size = %f",
|
||||||
race, gender, texture, helmtexture, haircolor, beardcolor, eyecolor1, eyecolor2, hairstyle, luclinface, drakkin_heritage, drakkin_tattoo, drakkin_details, size);
|
race, gender, texture, helmtexture, haircolor, beardcolor, eyecolor1, eyecolor2, hairstyle, luclinface, drakkin_heritage, drakkin_tattoo, drakkin_details, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3043,7 +3043,7 @@ void Mob::ExecWeaponProc(const ItemInst *inst, uint16 spell_id, Mob *on) {
|
|||||||
if(!IsValidSpell(spell_id)) { // Check for a valid spell otherwise it will crash through the function
|
if(!IsValidSpell(spell_id)) { // Check for a valid spell otherwise it will crash through the function
|
||||||
if(IsClient()){
|
if(IsClient()){
|
||||||
Message(0, "Invalid spell proc %u", spell_id);
|
Message(0, "Invalid spell proc %u", spell_id);
|
||||||
mlog(CLIENT__SPELLS, "Player %s, Weapon Procced invalid spell %u", this->GetName(), spell_id);
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Spells, "Player %s, Weapon Procced invalid spell %u", this->GetName(), spell_id);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4822,7 +4822,7 @@ void Client::MemSpell(uint16 spell_id, int slot, bool update_client)
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_pp.mem_spells[slot] = spell_id;
|
m_pp.mem_spells[slot] = spell_id;
|
||||||
mlog(CLIENT__SPELLS, "Spell %d memorized into slot %d", spell_id, slot);
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Spells, "Spell %d memorized into slot %d", spell_id, slot);
|
||||||
|
|
||||||
database.SaveCharacterMemorizedSpell(this->CharacterID(), m_pp.mem_spells[slot], slot);
|
database.SaveCharacterMemorizedSpell(this->CharacterID(), m_pp.mem_spells[slot], slot);
|
||||||
|
|
||||||
@ -4837,7 +4837,7 @@ void Client::UnmemSpell(int slot, bool update_client)
|
|||||||
if(slot > MAX_PP_MEMSPELL || slot < 0)
|
if(slot > MAX_PP_MEMSPELL || slot < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mlog(CLIENT__SPELLS, "Spell %d forgotten from slot %d", m_pp.mem_spells[slot], slot);
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Spells, "Spell %d forgotten from slot %d", m_pp.mem_spells[slot], slot);
|
||||||
m_pp.mem_spells[slot] = 0xFFFFFFFF;
|
m_pp.mem_spells[slot] = 0xFFFFFFFF;
|
||||||
|
|
||||||
database.DeleteCharacterMemorizedSpell(this->CharacterID(), m_pp.mem_spells[slot], slot);
|
database.DeleteCharacterMemorizedSpell(this->CharacterID(), m_pp.mem_spells[slot], slot);
|
||||||
@ -4870,7 +4870,7 @@ void Client::ScribeSpell(uint16 spell_id, int slot, bool update_client)
|
|||||||
|
|
||||||
m_pp.spell_book[slot] = spell_id;
|
m_pp.spell_book[slot] = spell_id;
|
||||||
database.SaveCharacterSpell(this->CharacterID(), spell_id, slot);
|
database.SaveCharacterSpell(this->CharacterID(), spell_id, slot);
|
||||||
mlog(CLIENT__SPELLS, "Spell %d scribed into spell book slot %d", spell_id, slot);
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Spells, "Spell %d scribed into spell book slot %d", spell_id, slot);
|
||||||
|
|
||||||
if(update_client)
|
if(update_client)
|
||||||
{
|
{
|
||||||
@ -4883,7 +4883,7 @@ void Client::UnscribeSpell(int slot, bool update_client)
|
|||||||
if(slot >= MAX_PP_SPELLBOOK || slot < 0)
|
if(slot >= MAX_PP_SPELLBOOK || slot < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mlog(CLIENT__SPELLS, "Spell %d erased from spell book slot %d", m_pp.spell_book[slot], slot);
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Spells, "Spell %d erased from spell book slot %d", m_pp.spell_book[slot], slot);
|
||||||
m_pp.spell_book[slot] = 0xFFFFFFFF;
|
m_pp.spell_book[slot] = 0xFFFFFFFF;
|
||||||
|
|
||||||
database.DeleteCharacterSpell(this->CharacterID(), m_pp.spell_book[slot], slot);
|
database.DeleteCharacterSpell(this->CharacterID(), m_pp.spell_book[slot], slot);
|
||||||
@ -4914,7 +4914,7 @@ void Client::UntrainDisc(int slot, bool update_client)
|
|||||||
if(slot >= MAX_PP_DISCIPLINES || slot < 0)
|
if(slot >= MAX_PP_DISCIPLINES || slot < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mlog(CLIENT__SPELLS, "Discipline %d untrained from slot %d", m_pp.disciplines.values[slot], slot);
|
logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Spells, "Discipline %d untrained from slot %d", m_pp.disciplines.values[slot], slot);
|
||||||
m_pp.disciplines.values[slot] = 0;
|
m_pp.disciplines.values[slot] = 0;
|
||||||
database.DeleteCharacterDisc(this->CharacterID(), slot);
|
database.DeleteCharacterDisc(this->CharacterID(), slot);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user