2
\$\begingroup\$

I have created a small addon for myself, SheepWhisperer which listens for me casting Polymorph on my mage or Shackle Undead on my priest.

When it detects this, and I'm in a party, it will check if I'm targetting a mob that one of the other party members are also targetting. If so then it will send them a whisper telling them about my incoming spell.

So far the addon works for me, but I'd like to publish this addon for others to use.

The event gets called with the spell names, not the spell id's, which means that my code currently looks for the following two spells by their names:

  • Polymorph
  • Shackle Undead

The question is this: If someone is running the German client (or any of the other clients, other than the English one), will they get different names or will this event still be called with "Polymorph"?

I have checked Wowhead: Polymorph but it doesn't tell me the German (as an example) name for that spell. Perhaps there is none? Perhaps all the clients use Polymorph so this is a non-starter?

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

The answer is yes, this will be a problem.

I found files from many addons that contains localized spell names, here's one such example - https://github.com/laytya/Libs2/blob/master/Babble/Babble-Spell-2.3/Babble-Spell-2.3.lua

Example:

...
["Shackle Undead"] = "Сковывание нежити",
...
["Shackle Undead"] = "Untote fesseln",
...

so yes, this has to be solved.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .