Jump to content

Recommended Posts

Hello,

 

To create fightclass with support of all wow client language please do use directly the spell name or item name in your script.

 

For get spell name use this:

local name = GetSpellInfo(109259);

GetSpellInfo (109259 is the id of http://www.wowhead.com/spell=109259 )

 

 

For get item name use this:

local name = GetItemInfo(6256);

GetItemInfo (6256 is the id of http://www.wowhead.com/item=6256/fishing-pole )

 

The spell/item name in the client language is in variable name, use it like:

RunMacroText("/cast " .. name) 

(if you use direct the spell name of your client language this doesn't works on others languages).

Link to comment
https://wrobot.eu/forums/topic/1688-lua-and-multi-language-support/
Share on other sites

  • 1 year later...
  • Droidz changed the title to Lua and multi-language support

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...