Droidz 2742 Posted October 22, 2014 Share Posted October 22, 2014 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). Bear T.O.E. 1 Link to comment https://wrobot.eu/forums/topic/1688-lua-and-multi-language-support/ Share on other sites More sharing options...
Droidz 2742 Posted November 3, 2015 Author Share Posted November 3, 2015 Sample Use item: local name = GetItemInfo(6256); RunMacroText("/use " .. name); Use spell: local name = GetSpellInfo(109259); RunMacroText("/cast " .. name); Bear T.O.E. 1 Link to comment https://wrobot.eu/forums/topic/1688-lua-and-multi-language-support/#findComment-11324 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now