1. #1

    Weakauras Loop audio script?

    Hello, I was wondering if anybody knows a script that can loop an audio file for the duration that an aura is active. I tried looking but the closest I can find is a loop that plays based off shaman totems from wowace, posted below.

    I tried editing it for my purpose but I get the same error the guy does and he doesn't explain how/if he fixed it.

    I know it would be a check to see if the aura is active, and if true, play the audio with a delay between checks equal to the duration of the audio file. Then if it checks and is not true, end the check function. I just don't know how to write out that logic in lua.

    Wish I knew more about scripting, thanks for any help.
    Last edited by Vintorez; 2016-10-22 at 05:58 AM.

  2. #2
    Here was the searing totem example I found;

    Searing Totem example

    Check on: Every Frame
    Custom Trigger:

    function()
    if not GetTotemInfo(1) == true then
    if not WA_last_check or WA_last_check + 0 < GetTime() then -- + 0 sec delay
    WA_last_check = GetTime()
    PlaySound("AuctionWindowOpen")
    return true
    end
    end
    end


    Custom Untrigger:

    function()
    return true
    end



    He mentions that he gets the following error line when using it;

    [string "return function() function()..."]:1: '<name>' expected near '('

Posting Permissions

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