Thread: Language Macro

  1. #1

    Language Macro

    So I'm using Chatter as addon and I've configured it so it doesn't show chat buttons. I was wondering is there's a macro or command to change the language your char is using. Something like

    /language Taurahe

    Thanks.

  2. #2
    Deleted
    Dirty hack:
    Code:
    local languages = {}
    for i=1, GetNumLanguages() do
        languages[GetLanguageByIndex(i)]=true
    end
    local language = nil
    local scm = SendChatMessage
    function SendChatMessage(msg, channel, lang, ...)
        scm(msg,channel,language,...)
    end
    SlashCmdList["LANGUAGE"] = function(input)
        input = input:sub(1,1):upper()..input:sub(2):lower()
        if languages[input] then
            language = input
            print("Language set to: |cffb700"..language.."|r")
        end
        if strlen(input) <= 0 then
            language = nil
            print("Language reset to default")
        end
    end
    SLASH_LANGUAGE1="/language"
    How to use. Untested. Report back with issues.

    Usage: /language Language to set language.
    /language to reset to default.

    No guaranteed compability with anything.

  3. #3
    The Lightbringer Elunedra's Avatar
    15+ Year Old Account
    Join Date
    Jan 2009
    Location
    Netherlands
    Posts
    3,346
    this is an intresting one.. yes it should be posable by macro's . i am at my workatm so i cant fully check / test it and by the time i tested it someone would have already beaten me i gues :P

    however if you want to a specific message in a different lagues just to f*ck arround you can use
    Code:
    /script SendChatMessage("msg" ,"chatType" ,"language" ,"channel");
    for example SendChatMessage("T l a a f" ,"YELL" ,"TAURAHE");

    http://www.wowpedia.org/API_SendChatMessage
    TREE DURID IS 4 PEE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •