Vanilla WoW - VanillaGaming

Class Discussion => Mage => Topic started by: Chelys on January 16, 2018, 04:30:24 am



Title: Macros! (that work)
Post by: Chelys on January 16, 2018, 04:30:24 am
Show me what you got!!


Title: Re: Macros! (that work)
Post by: Lokka on January 16, 2018, 11:44:13 am
/tar Lokkamage
/cast blessing of protection

Best macro in game imo


Title: Re: Macros! (that work)
Post by: Atreyyo on January 16, 2018, 01:24:52 pm
Sky's the limit, what do you want to do?


Title: Re: Macros! (that work)
Post by: Chelys on January 17, 2018, 11:30:46 pm
Sky's the limit, what do you want to do?

Looking for a working Sheep focus macro. But also just want to get list of macros that people use for copy/paste purposes. Maybe even sticky it. I can edit as the Macros are posted.


Title: Re: Macros! (that work)
Post by: Pucchini on January 17, 2018, 11:54:01 pm
Spam sheep macro


Macro code:


    /script polymorphIndx = findPolymorph()
    /script CastSpellByName("Polymorph");
    /script if GetSpellCooldown(polymorphIndx, "spell")>0 then SpamAnnounce() ; end



LUA code:


    Spammable_channel = "xxx"
    Spammable_cast = "sheep"

    function findPolymorph()
    i, s, S = 1, "spell", GetSpellName;
    f="Polymorph";
    n, r=S(i,"spell")
    findPoly_spells = { }
    repeat
    if strfind(n,f)~=nil then
    findPoly_spell = { }
    findPoly_spell["index"] = i
    findPoly_spell["name"] = n
    findPoly_spell["rank"] = r
    tinsert(findPoly_spells, findPoly_spell)
    end
    i=i+1;
    n, r = S(i,"spell")
    until n==nil
    for _, spell in ipairs(findPoly_spells) do
    if spell["rank"] == "Rank 2" then
    return spell["index"]
    end
    end
    end


    function SpamAnnounce()
    local cd, t= 5, GetTime()
    if (t-cd) >= (LAST_SAY or 0) then
    LAST_SAY = t;
    whisperNextGroup2()
    end
    end

    function whisperNextGroup2()
    local channelID=GetChannelName(Spammable_channel);
    local targetName = UnitName("target");
    if targetName == nil then targetName = "<no target>" end
    SendChatMessage("I "..Spammable_cast.." "..string.upper(targetName), "CHANNEL", nil, channelID);
    SendChatMessage("I "..Spammable_cast.." "..string.upper(targetName), "SAY", nil);
    end


Title: Re: Macros! (that work)
Post by: Deetee on January 18, 2018, 01:03:39 am
If you want to use focus like you can do in arena, get classic focus: http://vanillagaming.org/forum/index.php?topic=6383.0
 (http://vanillagaming.org/forum/index.php?topic=6383.0)
Then you can bind a key to focus and do a macro like in the example.