1. #1

    Question how to start BigWigs timer using API insted of chat commands

    can't find info how to start BigWigs timer using API insted of chat commands.

    for example in DBM i can start timer
    1. using chat - /dbm broadcast timer 20 yayayaya
    2. using API - DBM:CreatePizzaTimer(20, 'yayayaya', true)

    in bw i can start timer using chat - /raidbar 20 yayayaya

    i want to find way to start timer using API...
    i find some info here - https://github.com/BigWigsMods/BigWi.../BossPrototype
    and here - http://wow.gamepedia.com/BigWigs/API
    but construction like BigWigs:Bar(1, 20, 'yayayaya') don't work for me "...attempt to call method 'Bar' (a nil value)..."
    Last edited by ztn; 2017-03-13 at 04:18 PM.

  2. #2
    local reqFuncAddons = {
    'BigWigs_Core',
    'BigWigs_Options',
    'BigWigs_Plugins',
    }

    for i=1, #reqFuncAddons do
    if not IsAddOnLoaded(reqFuncAddons[i]) then
    LoadAddOn(reqFuncAddons[i])
    end
    end

    SlashCmdList.BIGWIGSLOCALBAR('20 Test')

  3. #3
    thank you.

  4. #4
    Assuming it is loaded, you can just use the very last line.

    If it is not loaded, you only need to load the core.
    https://github.com/funkydude - https://github.com/BigWigsMods
    Author of BadBoy, BasicChatMods, BigWigs, BFAInvasionTimer, SexyMap, and more...

  5. #5
    i put first block in the init section of wa to be safe if it's not loaded and SlashCmdList.BIGWIGSRAIDBAR('20 Test') use where i need.

Posting Permissions

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