1. #1

    Help with external functions

    So, here's my issue. WeakAuras can't execute slash commands. Which means I can't use it to run, say, /timer 30 on a given trigger. That's fine, i'll just have it run Stopwatch_StartCountdown(0, 30, 0) instead!

    BUT, I need my trigger to pop up Bigwigs's range radar. I can't figure out the syntax for calling a function from an addon. Do I need to go through Ace?

    What is the correct way to pass arguments to function plugin:Open() in BigWigs_Plugins\Proximity.lua?

  2. #2
    Deleted
    Tail end of Proximity.lua:

    Code:
    -------------------------------------------------------------------------------
    -- Slash command
    --
    
    SlashCmdList.BigWigs_Proximity = function(input)
    	if not plugin:IsEnabled() then BigWigs:Enable() end
    	local range = tonumber(input)
    	if not range then
    		print("Usage: /proximity 1-100")
    	else
    		if range > 0 then
    			plugin:Open(range)
    		else
    			plugin:Close()
    		end
    	end
    end
    SLASH_BigWigs_Proximity1 = "/proximity"
    SLASH_BigWigs_Proximity2 = "/range"

    So correct syntax would be:
    Code:
    SlashCmdList.BigWigs_Proximity(range)

  3. #3
    So correct syntax would be:
    Code:
    SlashCmdList.BigWigs_Proximity(range)
    And this is how to do this from anywhere? I could execute /run SlashCmdList.BigWigs_Proximity(5) for example?

  4. #4
    Deleted
    Can't see any reason why you shouldn't be able to, yeah.

  5. #5
    This works great, thanks!

    Simple aura to turn on range radar on Paragons (it kept closing on me):
    Code:
    d4JAeaGEHGpJWUijVgv5YeZuvkZvOy2u4WOCtuH68GQBtrNMs7ur7vA3KA)k9tubdds(nuJsizOQQ0GbgUQYbvLCufuDmf6HKilui1srfTyuvlxLfju9uQwgQuphPjQQIPcXKbz6IUiO4Qcr9mvP66c2OckBLevTzfy7KWhfI8vsumnqP)QkgjjQ8yenAvvnEsQtIkKZke6AOsUNcYkHuNsO0NirP7yrQBwhQourQhOY9aVtu1du5Eu3jQ6Kyd8vKoHTtunRpaFcXHdAiLWg4RiDo25yNC35yNV35yNW25yZ6qcLLHJLs0msEehoOHk)6uMPGiQZWjn66mY0I10IuNMSllsDtHszeYtc)tQ7VIyDi8JPqPmcP8RBkukJqQ3Sz98SeeYvK6j8pPozGMyZ6qHJLwSU(yDYanXM1he0KPfRJk2f9cwWcwGDWcIS2MtMPev8KDesgp2fm0qlioNwEklpMXcY)Yc(XsPczIV4laFliYABozMsuXt2riz8yxWqdTG4oprUfK)LfeTbgdrfHNCXxq(x0lyrVGfSGfSGfSGf4gm6FLmHEZstvrBjuglb953dR2AAt4r9ESl6fSGfSGfSGfSGtYWPxqEbzrVGfSGfiAOfTOHw0l6f9IErVORtgOj28jH)j1ffIoRlkeDsR)7BVIimC(G8IZibdYJsk3RzKG5N6KbAInF(BHK6P1uGAwNMwsEW)jCS0I1LF9byDwFyNncly4bg0Xs2cqqQBGzqfP(HnKIu3myK2I0Sz9avE0Ic5k)M1hG1PBJG05i31hGpH4WbneIOodNuhruNHtOX4FIHXlY0QGLwSMdkKZGbNgdmKg2pQ84bD9tiSync8pPEkQZWj15Zi5rC4GgsjSb(ksNJDIsfxDYDNOuXvNV3jkvC1jSDIsfxnRdjuY6CmJNqxanCYcGJd3coMMqwWXGy3cS0fWitRczby9c(yhJaRP1HekldhlLHHpH4Wbnu5xxhmrolbHC0ohRZNrYJ4WbneIOodNuhruNHtOX4FIHXlY0QGLwSMdkKZGbNgdmKg2pQ84bDDsS53juA5x3cv)x2X4KPjK6mJV)SohRB1kKJkLFDYd)9aVtuQGDSo(SIozPfRRR8WWjchP0R3QtE4Vh1DIsfSJ15Zi5rC4GgIddgqLStUBwNwNBvOuXvDfDoc7iQMTa

Posting Permissions

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