1. #1
    Deleted

    Weakaura help (countdown timer on trigger)

    Im looking for a weakaura that counts down to a mortar on mythic bh ...

    I can make one myself but I cant figure out how to count down from 8 after a trigger triggers.

    I expect its a display thing (some sort of lua custom thing might be involved...)

    any ideas on how to get this sorted?


    ---

    at first I tried a custom lua with sleep(1); but wow doesnt allow this;

    I got:

    local i = 8;
    C_Timer.NewTicker(1, function()
    i = i - 1;
    print(i)
    end, 8);


    now but it doesnt allow the i variable.. this makes me a saaad panda
    Last edited by mmocfbca7f21de; 2015-06-03 at 07:19 PM.

  2. #2
    C_Timer.After(1, function() print('1') end)
    C_Timer.After(2, function() print('2') end)
    C_Timer.After(3, function() print('3') end)
    C_Timer.After(4, function() print('4') end)
    C_Timer.After(5, function() print('5') end)
    C_Timer.After(6, function() print('6') end)
    C_Timer.After(7, function() print('7') end)
    C_Timer.After(8, function() print('8') end)

  3. #3
    Deleted
    Quote Originally Posted by Aleaa View Post
    C_Timer.After(1, function() print('1') end)
    C_Timer.After(2, function() print('2') end)
    C_Timer.After(3, function() print('3') end)
    C_Timer.After(4, function() print('4') end)
    C_Timer.After(5, function() print('5') end)
    C_Timer.After(6, function() print('6') end)
    C_Timer.After(7, function() print('7') end)
    C_Timer.After(8, function() print('8') end)
    thanks for the help, I ended up going with gettime(); (thanks to aggixx on #ravenholdt for the solution)

    I uploaded the blackhand mortar aura here: http://pastebin.com/DdfzPEGg

Posting Permissions

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