WoWInterface SVN HealMeNow

[/] [trunk/] [Core.lua] - Rev 3

Compare with Previous | Blame | View Log

local L = LibStub( "AceLocale-3.0" ):GetLocale( "HealMeNow" );
HealMeNow = LibStub("AceAddon-3.0"):NewAddon("HealMeNow", "AceConsole-3.0", "AceEvent-3.0")

local options = {
   name = "HealMeNow",
   handler = HealMeNow,
   type = "group",
   args = {
   
   },
}

local HealingDB = {
   Spells = {
     L["Priest"] = {
       L["Lesser Heal"] = {
       
       },
       L["Renew"] = {
       
       },
       L["Heal"] = {
       
       },
       L["Flash Heal"] = {
       
       },
       L["Prayer of Healing"] = {
       
       },
       L["Greater Heal"] = {
       
       },
       L["Binding Heal"] = {
       
       },
       L["Prayer of Mending"] = {
       
       },
     },
   },
   Items = {
    
   }
}



function HealMeNow:OnInitialize()
   -- Called on Load
   LibStub("AceConfig-3.0"):RegisterOptionsTable("HealMeNow", options, {L["healmenow"], L["hmn"]})
end

function HealMeNow:OnEnable()
   -- Called on Enable
   self:RegisterEvent("BAG_UPDATE")
end

function HealMeNow:OnDisable()
   -- Called on Disable
end

function HealMeNow:BAG_UPDATE(arg1)
   self:BagScan(arg1)
end

function HealMeNow:IsHealingItem(itemName)
   
end

function HealMeNow:BagScan(bag)
 for slot = 1,GetContainerNumSlots(bag) do
   local item = GetContainerItemLink(bag,slot)
   if item then
     itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, itemTexture = GetItemInfo(item)
     if itemType = L["Consumable"] then
       if IsHealingItem(itemName) then
         
       end
     end
   end
 end
end

-- affectingCombat = UnitAffectingCombat("unit");
-- ItemLink = GetContainerItemLink(bagID, slotID);

Compare with Previous | Blame