• 0

    posted a message on Plugin for Baggins to Vendor Trash Items
    Look for Baggins_Scrap
    Posted in: Addon Ideas
  • 0

    posted a message on sorting tables redux
    Quote from jerry
    Because they may be other people rezing, ghosts entering the instance, dying in the lava pool that's on the left (I TOLD THEM not to go there :-( ) You pretty much have to rescan everybody anytime you need to select which one to rez.

    Yes. Shortcut to Molten Core entrance... *shiver*

    Hey Jerry, I'm going to use your code, since it makes sense and solves many problems in a very clean fashion.

    Just two questions, just so I understand. I'll need to account for UnitInRange() and UnitIsVisable() and based on what I gather of your code, the best place to check for those would be in your compareUnit() function, correct? Looks like they would fit in right after the UnitIsGhost() checks.

    Something like http://pastey.net/120844 I would wager.

    The second question would be where would I put the
    self:Print(L["All dead units are being ressed."])
    and
    self:Print(L["Everybody is alive. Congratulations!"])
    messages? I tried to think them through, but nothing seemed quite right.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Failed LoadAddOn "without reason"?
    Noob question. I take it LoadAddon() should be done in the MyAddon:Initialize() portion of an Ace addon now?
    Posted in: Lua Code Discussion
  • 0

    posted a message on sorting tables redux
    Still hacking away at this. I've gone over the above answers, and there is a lot of good advice to digest. Somehow, my brain feels smaller. Anyway, I thought I'd post some code snippets that might make more sense.

    First, is a res button. The Player presses this bound key and SmartRes2 picks a target based on the priority discussed above.

    http://pastey.net/120785
    http://pastey.net/120786

    Then here is the whole function that I'm having issues with. Please note, this has none of the fixes posted above. I wasn't certain which suggestion would work best, and Tekkub's answer left me wondering how to do it as simply as he suggests.

    http://pastey.net/120783

    I kind of feel like a child just learning to walk. But I suppose everybody has to start somewhere, eh?
    Posted in: Lua Code Discussion
  • 0

    posted a message on UnitTesting addons and running code out of WoW
    I'm interested, if it is easy to install and run.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Canadians unite!
    Take off, you American hoser, eh!
    Posted in: General Chat
  • 0

    posted a message on Thinking of switching unit frame addons
    Quote from Tekkub
    Spartan's not bela's addon... is it?

    And I recommend anything oUF-based :P

    It would seem Beladona is the current dev, although Aesir seems to be a large contributor.

    As you noticed, SUI is indeed oUF based. Bela switched to Ace3 for 2.6.x of the addon.
    http://www.spartanui.com/forum/index.php?topic=1278.0
    For the Beta thread.
    Posted in: General Chat
  • 0

    posted a message on Thinking of switching unit frame addons
    I am liking what Beladonna has done with SpartanUI. The latest Release Candidate can be found in the Beta thread. http://spartanui.com
    Posted in: General Chat
  • 0

    posted a message on i have a question
    Quote from nitchiale
    ok now i have a new question:
    im trying to add sound to this addon but i cant get the sound to trigger what am i doing thats not right?

    TCatsUI = LibStub("AceAddon-3.0"):NewAddon("TCatsUI", "AceConsole-3.0", "AceEvent-3.0")

    function TCatsUI:OnInitialize()
    -- Called when the addon is loaded
    end

    function TCatsUI:OnEnable()
    -- Called when the addon is enabled
    self:RegisterEvent("PLAYER_REGEN_DISABLED")
    end

    function TCatsUI:PLAYER_REGEN_DISABLED()
    PlaySoundFile("Interface\AddOns\TCatsUI\Sounds\HOO.wav")
    end

    function TCatsUI:OnDisable()
    -- Called when the addon is disabled
    end


    p.s. its im using ace3.0 framework


    Shouldn't
    PlaySoundFile("Interface[B]\[/B]AddOns[B]\[/B]TCatsUI[B]\[/B]Sounds[B]\[/B]HOO.wav")

    be
    PlaySoundFile("Interface[B]\\[/B]AddOns[B]\\[/B]TCatsUI[B]\\[/B]Sounds[B]\\[/B]HOO.wav")

    in order to hash the "\"s? And I'm sure someone will correct me, but the ".wav" extension is not strictly necessary, but sometimes nice. Especially if somebody else takes over the addon development at a later date.
    Posted in: AddOn HELP!
  • 0

    posted a message on Canadians unite!
    CR is north of where I was. I grew up in Qualicum Beach and Nanaimo.
    Posted in: General Chat
  • 0

    posted a message on Canadians unite!
    Quote from Morgalm
    Vancouver Island here:)

    Oh, where at? I am heading there in August, visit friends and mom. I grew up on the Island.
    Posted in: General Chat
  • 0

    posted a message on Canadians unite!
    Edmonton here. But you already know that, Ackis. Speaking of which, I may have to drop into one of your haunts and say hello.
    Posted in: General Chat
  • 0

    posted a message on sorting tables redux
    Quote from Lombra
    I'm assuming the list's purpose is to show who to res first, and so he'd want to res other people that can res, as well.

    Yes, exactly. The idea here is to res people who can res first, and I have both class and level as priorities because Blizzard made some classes better ressers than others, and obviously a higher level resser will be better than a lower level resser.

    The reason the non-ressers were in my priority table was because at the end of the function, a character was returned to a button as the person you are ressing. The player does want to res everybody, just in a specific order, even Hunters. :p

    @ArrowMaster: I was guessing that, but just wanted to confirm.
    @lilsparky: If I remove the non-ressers, how would I eventually get to them after ressing the ressers?
    @Slakah: The third arg was the whole question I am asking, and as Arrow said, I can't do what I want in the way I was thinking.

    So, I am still at a loss. Is there a way I can organized self.Dead and return characters in the order I am looking for? Would it help if I posted my whole logic for you guys to analyze and point me in the correct direction?

    ... Or, worst case scenario, just return a random character like the original SmartRes (blah!)? I really don't want math.random to select a character.
    Posted in: Lua Code Discussion
  • 0

    posted a message on sorting tables redux
    Quote from Tekkub
    if a.level == b.level then
    return (b.level < a.level) and ... <--- ALWAYS FALSE!

    Ouch, ok, but that still hurts my head. Should I do one or more of the following?
    • Remove the brackets
    • Change the and to or
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.