What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Me.Auras.ContainsKey(String) other language clients?

Inrego

New Member
Joined
Feb 7, 2010
Messages
2,765
Reaction score
71
Will Me.Auras.ContainsKey("Stealth") work on clients in other languages?
 
I red somewhere that it does work ( i think it was a tut post from apoc on how to write a CC )

Edit: but it was related with the spells

Edit2:

Wiki Source

Things to Know:

  • Item names (as strings) are language-localized
<dl><dd>For methods in the Honorbuddy API that accept an Item name as a string, the Item name should be specified in the same language as that used by the (localized) WoWclient. </dd></dl>
  • Spell Names (as strings) are always English
<dl><dd>For method names in the Honorbuddy API that accept a Spell name as a string, the Spell name should always be the name as it would be encountered in the US WoWclient. For instance, <dl><dd><tt>StyxWoW.Me.HasSpell("Blink")</tt> (correct) </dd><dd><tt>StyxWoW.Me.HasSpell("Blinken")</tt> (will not work) </dd></dl> </dd></dl>
  • Within the Styx API Spells and Auras are not the same things
<dl><dd>An Aura may be caused by a Spell, but the Aura is not of itself a spell. There are also other sources of Auras than Spells--a Draenei's 'presence' is such an example.
</dd></dl>
 
Last edited:
I use
Code:
if (!StyxWoW.Me.HasAura("WoW's 7th Anniversary")
in that anniversary plugin of mine.
Didn't get any complaints it's not working, and I assume other language users are taking advantage of this plugin too.
So I guess it's safe to assume the translation of the aura is done internally.

A simple way to test is to put the aura there in a different language from your client and see if it returns properly?
 
Aura's are actually Spells (in a sense at least. Not technically)

As far as anything with a "spell", the name is always in english. (So you can do Me.Auras["Enrage"] or whatever)

Object names however, are client-localized. (German clients will have german item names, etc)

Remember; Spells/Auras are NOT Objects.
 
Same deal as why I made the candy Bucket Buffs Remover, which I never fixed to remove the aura.

To check for an aura you use the localized name, or int id.
When sending a command like RemoveAura you would use the English variant. No idea why.
But that's what a user posted.
 
the file 'Spells.bin' that comes with HB is a database that stores spell IDs and their names in English and if a spell is newly added in the game it might not be in the database and causing the HB spell related api to fail when checking for it
 
Last edited:
Back
Top