Jump to content

dopiks

Members
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Posts posted by dopiks

  1. ---------------------------
    --  SIMPLE BUFF COMMAND ---
    ---------------------------
    -- copy to your lua scripts folder and reload eluna/server

    local auras = {48074,35912,38734,65075,65077,43223,15366,36880,36880,16609,48073,48469,26035,70233,70234,70235,70244,70242,70243};

    --  you can add or remove spells ^
    --  you will be buffed if no target selected

    function buff(event, player, message, Type, lang)
        if (message:lower() == "buff") then

        gmRank =player:GetGMRank()
        if (gmRank >= 3) then  -- change number (0-3) 0 - to all  1,2,3 GM with rank  
            selectTarget = player:GetSelection()

            if (not selectTarget) then  
                selectTarget = player
            end

            for _, i in ipairs(auras) do
                selectTarget:AddAura(i, selectTarget)
            end
            selectTarget:SetHealth( selectTarget:GetMaxHealth() )
            player:SendBroadcastMessage("|cff5af304Buffed !|r")
        end
        end
    end
    RegisterPlayerEvent(42, buff)

    -- checked on TrinityCore rev. 27fffd302563+ 2020-05-31 23:31:01 + Eluna + NPCbots
    -- original idea Marko, released dopiks

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use