1. 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?

  2. 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?

  3. 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!

  4. 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?

  5. 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.