From eee867e7bab3daa00454a8ee9a377215a6051c63 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sat, 10 Aug 2024 17:45:13 +0200 Subject: [PATCH] Update transmog_scripts.cpp --- src/transmog_scripts.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/transmog_scripts.cpp b/src/transmog_scripts.cpp index 7221994..217de1e 100644 --- a/src/transmog_scripts.cpp +++ b/src/transmog_scripts.cpp @@ -21,6 +21,7 @@ Cant transmogrify rediculus items // Foereaper: would be fun to stab people with */ #include #include "Transmogrification.h" +#include "Chat.h" #include "ScriptedCreature.h" #include "ItemTemplate.h" #include "DatabaseEnv.h" @@ -442,7 +443,7 @@ public: CharacterDatabase.CommitTransaction(trans); } else - session->SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS); + ChatHandler(session).SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS); OnGossipHello(player, creature); } break; case EQUIPMENT_SLOT_END + 3: // Remove Transmogrification from single item @@ -455,7 +456,7 @@ public: session->SendAreaTriggerMessage("%s", GTS(LANG_ERR_UNTRANSMOG_OK)); } else - session->SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS); + ChatHandler(session).SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS); } OnGossipSelect(player, creature, EQUIPMENT_SLOT_END, action); } break; @@ -582,7 +583,7 @@ public: if (res == LANG_ERR_TRANSMOG_OK) session->SendAreaTriggerMessage("%s",GTS(LANG_ERR_TRANSMOG_OK)); else - session->SendNotification(res); + ChatHandler(session).SendNotification(res); } else { @@ -590,7 +591,7 @@ public: if (res == LANG_ERR_TRANSMOG_OK) session->SendAreaTriggerMessage("%s",GTS(LANG_ERR_TRANSMOG_OK)); else - session->SendNotification(res); + ChatHandler(session).SendNotification(res); } // OnGossipSelect(player, creature, EQUIPMENT_SLOT_END, sender); // ShowTransmogItems(player, creature, sender);