• 0

    posted a message on FuBar_GearRating official thread
    I've read the last 4 replies but I don't have time to comment/think about them now.

    I'll take a look at it next week.

    Arthic
    Posted in: General AddOns
  • 0

    posted a message on Union - An Employment AddOn
    Quote from lilsparky »

    using the mail also has some drawbacks in that people could SAY they're gonna pay you, but really they just wanna get your items off the market. you fire over 200 marks of sarg to somebody who isn't gonna pay and they just sit there for like, what, 30 days?


    Not entirely true. CoD only sticks for 2 days.
    Posted in: Addon Ideas
  • 0

    posted a message on Shaman Shield Watch
    What about the ZOMGBuffs!!! self-buff module? It'll warn you when you need a new shield.

    To show how long the shield would last, you could use a separate group in Elkano's Buff Bars just for shields. I have my EBB set up so I have 3 groups: long term buffs, short term buffs and attached in that group but with a different color: shields.

    The combination works pretty well for my shaman and my priest.

    Greetings,

    Arthic of SylvanasEU
    Posted in: Addon Ideas
  • 0

    posted a message on Show Bonus Damage
    Until you find an addon that does this, try to build a macro like this:

    /script DEFAULT_CHAT_FRAME:AddMessage("My spelldamage: "..GetSpellBonusDamage(<number>).." crit-chance: "..format("%.2f%%", GetSpellCritChance(<number>)))
    (<number>: 2 for Holy , 3 for Fire, 4 for Nature, 5 for Frost, 6 for Shadow, 7 for Arcane)

    Haven't tested it myself, but should work.
    Posted in: Addon Ideas
  • 0

    posted a message on [Request] Minimap Herb/Mining Alert
    This has been requested before, and as I understand it, it's impossible to implement, because the contents of the minimap are rendered without 'consulting' the addon-API.

    The 'solution' I suggested to the previous requester:
    Use a minimap-addon like Squeenix or Chinchilla to move your minimap to a more prominent location, for example, the bottom-center of the screen, where you tend to look more often.

    Greetings,

    Arthic of SylvanasEU
    Posted in: Addon Ideas
  • 0

    posted a message on ax_RaidStatus
    Hey everybody that's reading this, but especially Apoco.

    While reading through this thread I found out 2 things:
    1) You seem to have difficulties with detection of talent-trees for different localizations.

    I'm working on an addon that will implement talent-scanning. In my addon, I identify the talent-trees by icon-texture, which is another return-value of GetTalentTabInfo(). Below you can find the names of the icons to match against. This seems to work quite well (for the part of my talent-scanning I did get to work).

    2) This addon seems to have a working implementation of talent scanning.

    For an addon I'm working on, I'd also like to implement some sort of talent-scanning. I'm also using LibTalentQuery-1.0. This might be an odd place to request help on this, but here goes:

    Registering my 'listener' seems to work, the function triggers when CowTip (uses LibDogTag) receives a result. However, when I use TalentQuery:Query(unitid) nothing happens... I'm still trying to get this to work. Any suggestions are very welcome. My code is added at the bottom.

    Greetings,

    Arthic of SylvanasEU

    iconTexture return-values for GetTalentTabInfo():
      -- DRUID
        -- Balance
        ["Interface\\Icons\\Spell_Nature_Lightning"]
        -- Feral Combat
        ["Interface\\Icons\\Ability_Physical_Taunt"]
        -- Restoration
        ["Interface\\Icons\\Spell_Nature_HealingTouch"]
      -- HUNTER
        -- Beast Mastery
        ["Interface\\Icons\\Ability_Hunter_BeastTaming"]
        -- Marksmanship
        ["Interface\\Icons\\Ability_Marksmanship"]
        -- Survival
        ["Interface\\Icons\\Ability_Hunter_SwiftStrike"]
      -- MAGE
        -- Arcane
        ["Interface\\Icons\\Spell_Nature_WispSplode"]
        -- Fire
        ["Interface\\Icons\\Spell_Fire_Fire"]
        -- Frost
        ["Interface\\Icons\\Spell_Frost_FrostBreath"]
      -- PALADIN
        -- Holy
        ["Interface\\Icons\\Spell_Holy_HolyBolt"]
        -- Protection
        ["Interface\\Icons\\Spell_Holy_DevotionAura"]
        -- Retribution
        ["Interface\\Icons\\Spell_Holy_AuraOfLight"]
      -- PRIEST
        -- Discipline
        ["Interface\\Icons\\Spell_Holy_AuraOfLight"]
        -- Holy
        ["Interface\\Icons\\Spell_Holy_LayOnHands"]
        -- Shadow
        ["Interface\\Icons\\Spell_Shadow_Possession"]
      -- ROGUE
        -- Assassination
        ["Interface\\Icons\\Ability_Rogue_Garrote"]
        -- Combat
        ["Interface\\Icons\\INV_Weapon_ShortBlade_14"]
        -- Subtlety
        ["Interface\\Icons\\Ability_Ambush"]
      -- SHAMAN
        -- Elemental
        ["Interface\\Icons\\Spell_Fire_Vulcano"]
        -- Enhancement
        ["Interface\\Icons\\Spell_Nature_UnyieldingStamina"]
        -- Restoration
        ["Interface\\Icons\\Spell_Nature_HealingWaveGreater"]
      -- WARLOCK
        -- Affliction
        ["Interface\\Icons\\Spell_Shadow_UnsummonBuilding"]
        -- Demonology
        ["Interface\\Icons\\Spell_Shadow_CurseOfTounges"]
        -- Destruction
        ["Interface\\Icons\\Spell_Fire_Incinerate"]
      -- WARRIOR
        -- Arms
        ["Interface\\Icons\\INV_Sword_27"]
        -- Fury
        ["Interface\\Icons\\Ability_Warrior_BattleShout"]
        -- Protection
        ["Interface\\Icons\\INV_Shield_06"]



    My code:
    PrepareAutoDetect() is called from the addon:OnInitialize()
    AutoDetect() is called from the AceGUI-3.0 gui.
    Print(name.." has spec "..addon.PRESETS_NAMES[preset]) is printed soon after CowTip (LibDogTag) sends out a query.
    Print("not player") is printed when the button is clicked, but after, nothing happens.
    function addon:PrepareAutoDetect()
      TalentQuery.RegisterCallback(addon, "TalentQuery_Ready")
    end
    
    local MAXLEVEL = 70
    local INSPECTINDEX = 1
    function addon:AutoDetect(playername, unitid)
      self:Print(unitid.." "..playername)
    
      -- Level check
      local maxlevel = true
      if UnitLevel(unitid) == MAXLEVEL then
        maxlevel = true
      end
    
      -- Range check  
      local inrange
      if not UnitIsUnit(unitid, "player") then
        if CheckInteractDistance(unitid, INSPECTINDEX) then
          inrange = true
        else
          inrange = false
        end
      else
        inrange = true
      end
      
      if inrange and maxlevel then
        self:Print("inrange and maxlevel")
    
      	if UnitIsUnit(unitid, "player") then
      		self:TalentQuery_Ready(_, UnitName(unitid))
      	else
          addon:Print("not player")
      		TalentQuery:Query(unitid)
      	end
    
      elseif not maxlevel then
      
      elseif not inrange then
      
      end
    end
    
    local SPECTHRESHOLD = 31
    function addon:TalentQuery_Ready(e, name, realm)
      local namerealm = realm and realm ~= "" and name .. "-" .. realm or name
      local isnotplayer = (name ~= UnitName("player"))
      local preset = 0
      for tab = 1, GetNumTalentTabs(isnotplayer) do
        local _, iconTexture, pointsspent = GetTalentTabInfo(tab, isnotplayer)
        if pointsspent >= SPECTHRESHOLD then
          preset = self.MAP_TREEICON2PRESET[iconTexture]
        end
      end
      
      if preset > 0 then
        addon:Print(name.." has spec "..addon.PRESETS_NAMES[preset])
      else
        addon:Print("preset = 0")
      end
    end

    Posted in: Raid AddOns
  • 0

    posted a message on LibTalentQuery-1.0
    Friendly bump.

    Could somebody take a look at the code I posted above and make any suggestions about what could be wrong with it? I'd really appreciate that.

    Greetings,

    Arthic of SylvanasEU
    Posted in: Libraries
  • 0

    posted a message on LibTalentQuery-1.0
    Right. In my late-night frustrations I forgot to attach the code. Here it is. PrepareAutoDetect() is called from addon:OnInitialize()

    I've never seen "TalentQuery callback" printed to the screen...
    "inrange and maxlevel" has shown up, of course.

    --===================
    -- Local variables ==
    --===================
    local addon = DebuffSlots
    local TalentQuery = LibStub:GetLibrary("LibTalentQuery-1.0")
    
    --====================
    -- PUBLIC functions ==
    --====================
    
    function addon:PrepareAutoDetect()
      TalentQuery.RegisterCallback(addon, "TalentQuery_Ready")
      
    --  addon:PrintKeyValue(TalentQuery)
    end
    
    local MAXLEVEL = 70
    local INSPECTINDEX = 1
    function addon:AutoDetect(playername, unitid)
      self:Print(unitid.." "..playername)
    
      -- Level check
      local maxlevel = true
      if UnitLevel(unitid) == MAXLEVEL then
        maxlevel = true
      end
    
      -- Range check  
      local inrange
      if not UnitIsUnit(unitid, "player") then
        if CheckInteractDistance(unitid, INSPECTINDEX) then
          inrange = true
        else
          inrange = false
        end
      else
        inrange = true
      end
      
      if inrange and maxlevel then
        self:Print("inrange and maxlevel")
    
        if UnitIsUnit(unitid, "player") then
          self:TalentQuery_Ready(_, UnitName(unitid))
        else
          TalentQuery:Query(unitid)
        end
    
      elseif not maxlevel then
      
      elseif not inrange then
      
      end
    end
    
    local SPECTHRESHOLD = 31
    function addon:TalentQuery_Ready(e, name, realm)
      addon:Print("TalentQuery callback")
    
      local namerealm = realm and realm ~= "" and name .. "-" .. realm or name
      local isnotplayer = (name ~= UnitName("player"))
      local preset = 0
      for tab = 1, GetNumTalentTabs(isnotplayer) do
        local _, iconTexture, pointsspent = GetTalentTabInfo(tab, isnotplayer)
        if pointsspent >= SPECTHRESHOLD then
          preset = self.MAP_TREEICON2PRESET[iconTexture]
        end
      end
    
      if preset > 0 then
        addon:Print(name.." has spec "..addon.PRESETS_NAMES[preset])
      else
        addon:Print("preset = 0")
      end
    end
    Posted in: Libraries
  • 0

    posted a message on Local bar addon?
    Aye. But Bartender3 reuses the Blizzard buttons, and therefore its buttons probably get saved server-side too.
    Posted in: Addon Ideas
  • 0

    posted a message on LibTalentQuery-1.0
    Hi.

    I copy-pasted the example-code from the wiki almost literally. But my TalentQuery_Ready call-back function simply will not run at all.

    I've compared my code to LibDogTag and MoBuffs, but I simply cannot spot a (significant) difference.

    What is it I'm missing? I know, you guys probably are not psychic, but this is extremely frustrating. I'm assuming the library functions correctly, as the Dogtag-talent-stuff seems to work.

    Greetings,

    Arthic of SylvanasEU
    Posted in: Libraries
  • 0

    posted a message on AceGUI-3.0 Tooltips
    There's no "magic" for that in AceGUI (yet)?
    Posted in: Ace3
  • 0

    posted a message on AceGUI-3.0 Tooltips
    When I let AceConfig construct a GUI (in the blizzard option frame) out of a AceOptions-table, those widgets have tooltips.

    Now I'm building a custom GUI with AceGUI. Is there a way to make tooltips appear on those widgets?

    Greetings,

    Arthic of SylvanasEU
    Posted in: Ace3
  • 0

    posted a message on Sound modification addon package
    Request for muting:

    The 'new' warrior Bloodrage sound.

    It's the same sound that Ogres make when they enrage. It makes my dwarf sound like an ogre...
    Posted in: Addon Ideas
  • 0

    posted a message on AceGUI-3.0 widget events - basic question
    Thanks.
    Posted in: Ace3
  • 0

    posted a message on AceGUI-3.0 widget events - basic question
    Hi,

    I'm trying some things with AceGUI-3.0, but because of the lack of documentation I have a very basic (and probably stupid) question.

    local gui = LibStub("AceGUI-3.0")
    local button = gui:Create("Button")
    button:SetText("testbutton")


    How do I 'listen' to the OnClick/OnEnter/etc events of this button? Or are they called messages for Ace3? I just couldn't find an example of what function/syntax I should use.

    Any assistance would be appreciated.

    Arthic of SylvanasEU
    Posted in: Ace3
  • To post a comment, please or register a new account.