/
L['Whitelist'] = "Whitelist" |
L['mainhand'] = "Haupthand" |
L['offhand'] = "Nebenhand" |
L['thrown'] = "Wurfwaffe" |
L['Scale'] = "Skalierung" |
L['Scales the spellbar'] = "Skalierung der Zauberleiste" |
L['Spellsettings'] = "Zaubereinstellungen" |
## Author: Rilgamon |
## Version: 40300.wowi:revision |
## X-WoWI-ID: 15703 |
## OptionalDeps: Ace3, BrokerPack |
## OptionalDeps: Ace3,ButtonFacade,Masque,BrokerPack |
## SavedVariablesPerCharacter: zz_ProcWatchCharDB |
## LoadManagers: AddonLoader |
## X-LoadOn-Always: delayed |
Libs\embeds.xml |
Libs\embed.xml |
Libs\externals.xml |
init.lua |
frames.lua |
locale_enUS.lua |
locale_deDE.lua |
locale_ruRU.lua |
core.lua |
local invSlot = 0 |
local auras = {} |
local enchantDuration = 1 |
local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges |
local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges, hasThrownEnchant, thrownExpiration, thrownCharges |
local nameWeaponEnchant,iconWeaponEnchant,expirationTimeWeaponEnchant,countWeaponEnchant |
local idSpellCD, nameSpellCD, rankSpellCD, iconSpellCD, costSpellCD, isFunnelSpellCD, powerTypeSpellCD, castTimeSpellCD, minRangeSpellCD, maxRangeSpellCD, startSpellCD, durationSpellCD, enabledSpellCD |
local txt,index,lsort |
end, "1") |
end |
if(LSM) then |
LSM:Register("sound","ProcWatch Pong","Interface\\AddOns\\"..addon:GetName().."\\pong.wav") |
LSM:Register("sound","ProcWatch Oops","Interface\\AddOns\\"..addon:GetName().."\\oops.wav") |
LSM:Register("sound","ProcWatch Laugh","Interface\\AddOns\\"..addon:GetName().."\\Laugh.wav") |
LSM:Register("sound","ProcWatch Amazing","Interface\\AddOns\\"..addon:GetName().."\\amazing.wav") |
LSM:Register("sound","ProcWatch Pong","Interface\\AddOns\\"..addon:GetName().."\\pong.ogg") |
LSM:Register("sound","ProcWatch Oops","Interface\\AddOns\\"..addon:GetName().."\\oops.ogg") |
LSM:Register("sound","ProcWatch Laugh","Interface\\AddOns\\"..addon:GetName().."\\Laugh.ogg") |
LSM:Register("sound","ProcWatch Amazing","Interface\\AddOns\\"..addon:GetName().."\\amazing.ogg") |
end |
addon['mainframe'] = addon:getMainframe() |
addon:checkDualskill() |
-- print("update", addon['nextUpdate'],addon['db']['profile']['update']) |
addon['nextUpdate'] = GetTime() + addon['db']['profile']['update'] |
auras = addon:joinTable(addon:joinTable(addon:joinTable(addon:scanBuffs("player","HELPFUL"),addon:scanBuffs("player","HARMFUL")),addon:joinTable(addon:scanBuffs("target","HELPFUL"),addon:scanBuffs("target","HARMFUL"))),addon:joinTable(addon:scanBuffs("focus","HELPFUL"),addon:scanBuffs("focus","HARMFUL"))) |
hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges = GetWeaponEnchantInfo() |
hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges, hasThrownEnchant, thrownExpiration, thrownCharges = GetWeaponEnchantInfo() |
if(hasMainHandEnchant) then |
addon:addWeaponEnchant(L['mainhand'], GetInventoryItemTexture("player", 16), GetTime() + mainHandExpiration/1000, mainHandCharges) |
auras[#auras+1] = L['mainhand'] |
addon['db']['profile']['auras'][L['offhand']]['count'] = 0 |
end |
end |
if(hasThrownEnchant) then |
addon:addWeaponEnchant(L['thrown'], GetInventoryItemTexture("player", 18), GetTime() + thrownExpiration/1000, thrownCharges) |
auras[#auras+1] = L['thrown'] |
else |
if(addon['db']['profile']['auras'][L['thrown']]) then |
addon['db']['profile']['auras'][L['thrown']]['expirationTime'] = GetTime() - 1 |
addon['db']['profile']['auras'][L['thrown']]['lastexpirationTime'] = addon['db']['profile']['auras'][L['thrown']]['expirationTime'] |
addon['db']['profile']['auras'][L['thrown']]['count'] = 0 |
end |
end |
for k,v in pairs(spellBook) do |
spellName = "SpellCD_"..k |
if((addon['db']['profile']['auras'][spellName]) and (addon['db']['profile']['auras'][spellName]['expirationTime'] > GetTime() or addon['db']['profile']['auras'][spellName]['static'])) then |
L['Whitelist'] = true |
L['mainhand'] = "Mainhand" |
L['offhand'] = "Offhand" |
L['thrown'] = "Thrown" |
L['Scale'] = true |
L['Scales the spellbar'] = true |
L['Spellsettings'] = true |