Revert "chore(Script/Misc): cleanup" (#19627)

Revert "chore(Script/Misc): cleanup (#19619)"

This reverts commit 7ff8f72397.
This commit is contained in:
Andrew
2024-08-15 00:43:11 -03:00
committed by GitHub
parent 7ff8f72397
commit 1565758da4
21 changed files with 122 additions and 145 deletions

View File

@@ -796,7 +796,7 @@ public:
if (!sCreatureDisplayInfoStore.LookupEntry(displayId))
{
handler->SendErrorMessage(LANG_COMMAND_FACTION_INVPARAM, Acore::ToString(displayId));
handler->SendErrorMessage(LANG_COMMAND_FACTION_INVPARAM, Acore::ToString(displayId).c_str());
return false;
}
@@ -1086,7 +1086,7 @@ public:
if (/*creature->GetMotionMaster()->empty() ||*/
creature->GetMotionMaster()->GetCurrentMovementGeneratorType() != FOLLOW_MOTION_TYPE)
{
handler->SendErrorMessage(LANG_CREATURE_NOT_FOLLOW_YOU, creature->GetName());
handler->SendErrorMessage(LANG_CREATURE_NOT_FOLLOW_YOU, creature->GetName().c_str());
return false;
}
@@ -1094,7 +1094,7 @@ public:
if (mgen->GetTarget() != player)
{
handler->SendErrorMessage(LANG_CREATURE_NOT_FOLLOW_YOU, creature->GetName());
handler->SendErrorMessage(LANG_CREATURE_NOT_FOLLOW_YOU, creature->GetName().c_str());
return false;
}
@@ -1259,7 +1259,7 @@ public:
if (!sObjectMgr->SetCreatureLinkedRespawn(creature->GetSpawnId(), linkguid))
{
handler->SendErrorMessage("Selected creature can't link with guid '{}'", linkguid);
handler->SendErrorMessage("Selected creature can't link with guid '%u'", linkguid);
return false;
}