Skip to content

Commit

Permalink
fix: Update message format (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah authored Jan 23, 2025
1 parent 2c8764c commit e7ff24c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transmog_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ void PerformTransmogrification (Player* player, uint32 itemEntry, uint32 cost)
}
TransmogAcoreStrings res = sT->Transmogrify(player, itemEntry, slot);
if (res == LANG_ERR_TRANSMOG_OK)
session->SendAreaTriggerMessage("%s",GTS(LANG_ERR_TRANSMOG_OK));
session->SendAreaTriggerMessage("{}",GTS(LANG_ERR_TRANSMOG_OK));
else
ChatHandler(session).SendNotification(res);
}
Expand All @@ -457,7 +457,7 @@ void RemoveTransmogrification (Player* player)
if (sT->GetFakeEntry(newItem->GetGUID()))
{
sT->DeleteFakeEntry(player, slot, newItem);
session->SendAreaTriggerMessage("%s", GTS(LANG_ERR_UNTRANSMOG_OK));
session->SendAreaTriggerMessage("{}", GTS(LANG_ERR_UNTRANSMOG_OK));
}
else
ChatHandler(session).SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
Expand Down Expand Up @@ -569,7 +569,7 @@ class npc_transmogrifier : public CreatureScript
}
if (removed)
{
session->SendAreaTriggerMessage("%s", GTS(LANG_ERR_UNTRANSMOG_OK));
session->SendAreaTriggerMessage("{}", GTS(LANG_ERR_UNTRANSMOG_OK));
CharacterDatabase.CommitTransaction(trans);
}
else
Expand Down

1 comment on commit e7ff24c

@monteiroelias
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

session->SendAreaTriggerMessage(LANG_ERR_UNTRANSMOG_OK);
use the like this, works fine here

with the last updates is showed a "%s" ingame.

Please sign in to comment.