mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Update transmog_scripts.cpp
This commit is contained in:
@@ -21,6 +21,7 @@ Cant transmogrify rediculus items // Foereaper: would be fun to stab people with
|
|||||||
*/
|
*/
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "Transmogrification.h"
|
#include "Transmogrification.h"
|
||||||
|
#include "Chat.h"
|
||||||
#include "ScriptedCreature.h"
|
#include "ScriptedCreature.h"
|
||||||
#include "ItemTemplate.h"
|
#include "ItemTemplate.h"
|
||||||
#include "DatabaseEnv.h"
|
#include "DatabaseEnv.h"
|
||||||
@@ -442,7 +443,7 @@ public:
|
|||||||
CharacterDatabase.CommitTransaction(trans);
|
CharacterDatabase.CommitTransaction(trans);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
session->SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
|
ChatHandler(session).SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
|
||||||
OnGossipHello(player, creature);
|
OnGossipHello(player, creature);
|
||||||
} break;
|
} break;
|
||||||
case EQUIPMENT_SLOT_END + 3: // Remove Transmogrification from single item
|
case EQUIPMENT_SLOT_END + 3: // Remove Transmogrification from single item
|
||||||
@@ -455,7 +456,7 @@ public:
|
|||||||
session->SendAreaTriggerMessage("%s", GTS(LANG_ERR_UNTRANSMOG_OK));
|
session->SendAreaTriggerMessage("%s", GTS(LANG_ERR_UNTRANSMOG_OK));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
session->SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
|
ChatHandler(session).SendNotification(LANG_ERR_UNTRANSMOG_NO_TRANSMOGS);
|
||||||
}
|
}
|
||||||
OnGossipSelect(player, creature, EQUIPMENT_SLOT_END, action);
|
OnGossipSelect(player, creature, EQUIPMENT_SLOT_END, action);
|
||||||
} break;
|
} break;
|
||||||
@@ -582,7 +583,7 @@ public:
|
|||||||
if (res == LANG_ERR_TRANSMOG_OK)
|
if (res == LANG_ERR_TRANSMOG_OK)
|
||||||
session->SendAreaTriggerMessage("%s",GTS(LANG_ERR_TRANSMOG_OK));
|
session->SendAreaTriggerMessage("%s",GTS(LANG_ERR_TRANSMOG_OK));
|
||||||
else
|
else
|
||||||
session->SendNotification(res);
|
ChatHandler(session).SendNotification(res);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -590,7 +591,7 @@ public:
|
|||||||
if (res == LANG_ERR_TRANSMOG_OK)
|
if (res == LANG_ERR_TRANSMOG_OK)
|
||||||
session->SendAreaTriggerMessage("%s",GTS(LANG_ERR_TRANSMOG_OK));
|
session->SendAreaTriggerMessage("%s",GTS(LANG_ERR_TRANSMOG_OK));
|
||||||
else
|
else
|
||||||
session->SendNotification(res);
|
ChatHandler(session).SendNotification(res);
|
||||||
}
|
}
|
||||||
// OnGossipSelect(player, creature, EQUIPMENT_SLOT_END, sender);
|
// OnGossipSelect(player, creature, EQUIPMENT_SLOT_END, sender);
|
||||||
// ShowTransmogItems(player, creature, sender);
|
// ShowTransmogItems(player, creature, sender);
|
||||||
|
|||||||
Reference in New Issue
Block a user