-
Posted by Myrroddin on Thu, 30 Oct 2008 19:10:46
Since the latter makes the former obsolete, I find myself trying to remove babble-spell from a mod that I like, but currently is buggy. I just think that my fix is inelegant, and probably too long. Unfortunately, while I can find lots of references on the syntax of GetSpellInfo, I learn from example.
http://pastey.net/100214
Is there a better way than all those if/thens?
-
Posted by Myrroddin on Thu, 30 Oct 2008 19:10:47
Since the latter makes the former obsolete, I find myself trying to remove babble-spell from a mod that I like, but currently is buggy. I just think that my fix is inelegant, and probably too long. Unfortunately, while I can find lots of references on the syntax of GetSpellInfo, I learn from example.
http://pastey.net/100214
Is there a better way than all those if/thens?
-
Posted by Myrroddin on Thu, 30 Oct 2008 19:44:30
Sorry, tried to edit the post, but wasn't allowed.
The point of Babble was that it was locale-aware, and I want the code I changed to remain so; also, the spells in question should be Rank-independant, meaning GetSpellID won't work since each Rank of the spells is a different ID.
Thank you again, for many things: the help, the book, the excitement of mod-building!
-
Posted by jnwhiteh on Sun, 02 Nov 2008 10:44:35
The point of Babble was that it was locale-aware, and I want the code I changed to remain so; also, the spells in question should be Rank-independant, meaning GetSpellID won't work since each Rank of the spells is a different ID.
Thank you again, for many things: the help, the book, the excitement of mod-building!
If you still want to be able to _display_ the localized name of the spell, then you can store a table of spell ids that you can use to get the localized version of the spell name. Then you'd just at load time (or sometime when the information is available) query the client for information about the given spell ids.
If that's not right, can you be more specific about what you are trying to do?
-
Posted by Myrroddin on Wed, 05 Nov 2008 06:39:05
Nope, that is correct, thanks. Though I find I am having to rewrite the whole addon, since vast chunks aren't working.
I took over SmartRes, which I put on wowinterface, and there is one on curse too. Download at your discretion, as it doesn't work. Irony was I was working when I posted them, then poof.