aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKillyana <morphone1@gmail.com>2017-11-16 18:35:58 +0100
committerShauren <shauren.trinity@gmail.com>2021-02-06 21:41:51 +0100
commitf40b32a6408d93dfc3b34413db8fd53507b4a2e5 (patch)
tree905d5cce16b9a696c8a9d837b61a85115b4f34c9 /src
parenta8483d05af848aee2495afc1377e5db88baabbb7 (diff)
Creature/script: Add locales to innkeepers gossip options
(cherry picked from commit 7fd8603ec5e609680aed9c8dd03cde4297b70af0)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/World/npc_innkeeper.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/server/scripts/World/npc_innkeeper.cpp b/src/server/scripts/World/npc_innkeeper.cpp
index b994d1a9ee4..6cbce15569d 100644
--- a/src/server/scripts/World/npc_innkeeper.cpp
+++ b/src/server/scripts/World/npc_innkeeper.cpp
@@ -42,7 +42,14 @@ enum Spells
#define LOCALE_TRICK_OR_TREAT_6 "¡Truco o trato!"
#define LOCALE_INNKEEPER_0 "Make this inn my home."
+#define LOCALE_INNKEEPER_2 "Faites de cette auberge votre foyer."
#define LOCALE_INNKEEPER_3 "Ich möchte dieses Gasthaus zu meinem Heimatort machen."
+#define LOCALE_INNKEEPER_6 "Fija tu hogar en esta taberna."
+
+#define LOCALE_VENDOR_0 "I want to browse your goods."
+#define LOCALE_VENDOR_2 "Je voudrais regarder vos articles."
+#define LOCALE_VENDOR_3 "Ich sehe mich nur mal um."
+#define LOCALE_VENDOR_6 "Quiero ver tus mercancías."
class npc_innkeeper : public CreatureScript
{
@@ -72,14 +79,26 @@ public:
player->PrepareQuestMenu(me->GetGUID());
if (me->IsVendor())
- AddGossipItemFor(player, GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE);
+ {
+ char const* localizedEntry;
+ switch (player->GetSession()->GetSessionDbcLocale())
+ {
+ case LOCALE_frFR: localizedEntry = LOCALE_VENDOR_2; break;
+ case LOCALE_deDE: localizedEntry = LOCALE_VENDOR_3; break;
+ case LOCALE_esES: localizedEntry = LOCALE_VENDOR_6; break;
+ case LOCALE_enUS: default: localizedEntry = LOCALE_VENDOR_0;
+ }
+ AddGossipItemFor(player, GOSSIP_ICON_VENDOR, localizedEntry, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE);
+ }
if (me->IsInnkeeper())
{
char const* localizedEntry;
switch (player->GetSession()->GetSessionDbcLocale())
{
+ case LOCALE_frFR: localizedEntry = LOCALE_INNKEEPER_2; break;
case LOCALE_deDE: localizedEntry = LOCALE_INNKEEPER_3; break;
+ case LOCALE_esES: localizedEntry = LOCALE_INNKEEPER_6; break;
case LOCALE_enUS: default: localizedEntry = LOCALE_INNKEEPER_0;
}
AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, localizedEntry, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INN);