- Raid Check (plugin): added item level.
- Advanced Death Logs (plugin): bug fixes, it's important to update it. - Time Line (plugin): bug fixes. - Added option to disabled th eitem level tracker. - Fixed issue with Dps/Hps data broker which wasn't respecting the type of time (effective/activity) selected.
This commit is contained in:
@@ -118,6 +118,15 @@ do
|
||||
end
|
||||
return self.nome:gsub (("%-.*"), "")
|
||||
end
|
||||
function _detalhes:GetCLName (id)
|
||||
local name, realm = UnitName (id)
|
||||
if (name) then
|
||||
if (realm and realm ~= "") then
|
||||
name = name .. "-" .. realm
|
||||
end
|
||||
return name
|
||||
end
|
||||
end
|
||||
function _detalhes:Class (actor)
|
||||
return self.classe or actor.classe
|
||||
end
|
||||
|
||||
@@ -59,7 +59,7 @@ do
|
||||
elseif (c == "PET") then
|
||||
return [[Interface\AddOns\Details\images\classes_small]], 0.25, 0.49609375, 0.75, 1
|
||||
else
|
||||
return [[Interface\AddOns\Details\images\classes_small]], _unpack (CLASS_ICON_TCOORDS [c])
|
||||
return [[Interface\AddOns\Details\images\classes_small]], _unpack (_detalhes.class_coords [c])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -859,6 +859,9 @@ local default_profile = {
|
||||
|
||||
--> if clear graphic data when logout
|
||||
clear_graphic = true,
|
||||
|
||||
--> item level tracker
|
||||
track_item_level = true,
|
||||
|
||||
--> text sizes
|
||||
font_sizes = {menus = 10},
|
||||
|
||||
@@ -936,6 +936,42 @@ function SlashCmdList.DETAILS (msg, editbox)
|
||||
print ("outline:",flags)
|
||||
end
|
||||
|
||||
elseif (msg == "sell") then
|
||||
|
||||
--sell gray
|
||||
local c, i, n, v = 0
|
||||
for b = 0, 4 do
|
||||
for s = 1, GetContainerNumSlots(b) do
|
||||
i = {GetContainerItemInfo (b, s)}
|
||||
n = i[7]
|
||||
if n and string.find(n,"9d9d9d") then
|
||||
v = {GetItemInfo(n)}
|
||||
q = i[2]
|
||||
c = c+v[11]*q
|
||||
UseContainerItem (b, s)
|
||||
print (n, q)
|
||||
end
|
||||
end
|
||||
end
|
||||
print(GetCoinText(c))
|
||||
|
||||
--sell green equip
|
||||
local c, i, n, v = 0
|
||||
for b = 0, 4 do
|
||||
for s = 1, GetContainerNumSlots(b) do
|
||||
local texture, itemCount, locked, quality, readable, lootable, itemLink = GetContainerItemInfo (b, s)
|
||||
if (quality == 2) then --a green item
|
||||
local itemName, itemLink, itemRarity, itemLevel, _, itemType, itemSubType = GetItemInfo (itemLink)
|
||||
if (itemType == "Armor" or itemType == "Weapon") then --a weapon or armor
|
||||
if (itemLevel < 460) then
|
||||
print ("Selling", itemName, itemType)
|
||||
UseContainerItem (b, s)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
elseif (msg == "ilvl") then
|
||||
local item_amount = 0
|
||||
local item_level = 0
|
||||
|
||||
+14
-10
@@ -1432,7 +1432,7 @@ do
|
||||
--[29842] = "WARRIOR", --undribled wrath
|
||||
}
|
||||
|
||||
-- updated on 24/03/2015 (@Tonyleila - WoWInterface)
|
||||
-- updated on 30/03/2015 (@Tonyleila - WoWInterface)
|
||||
_detalhes.CrowdControlSpells = {
|
||||
|
||||
--Racials
|
||||
@@ -1453,7 +1453,7 @@ do
|
||||
|
||||
--druid
|
||||
[33786] = true, -- Cyclone
|
||||
[339] = true, -- Entangling Toots
|
||||
[339] = true, -- Entangling Toots
|
||||
[45334] = true, -- Immobilized (from Wild Charge)
|
||||
[99] = true, -- Incapacitating Roar
|
||||
[22570] = true, -- Maim
|
||||
@@ -1463,6 +1463,7 @@ do
|
||||
[106839] = true, -- Skull Bash
|
||||
[81261] = true, -- Solar Beam
|
||||
[107566] = true, -- Staggering Shout
|
||||
[16979] = true, -- Wild Charge (talent)
|
||||
|
||||
--hunter
|
||||
[117405] = true, -- Binding Shot
|
||||
@@ -1480,11 +1481,11 @@ do
|
||||
[58534] = true, -- Deep Freeze
|
||||
[31661] = true, -- Dragon's Breath
|
||||
[33395] = true, -- Freeze (pet)
|
||||
[122] = true, -- Frost Nova
|
||||
[122] = true, -- Frost Nova
|
||||
[102051] = true, -- Frostjaw
|
||||
[157997] = true, -- Ice Nova
|
||||
[111340] = true, -- Ice Ward
|
||||
[118] = true, -- Polymorph sheep
|
||||
[118] = true, -- Polymorph sheep
|
||||
[28272] = true, -- Polymorph pig
|
||||
[126819] = true, -- Polymorph pig 2
|
||||
[61305] = true, -- Polymorph black cat
|
||||
@@ -1510,12 +1511,13 @@ do
|
||||
[31935] = true, -- Avenger's Shield
|
||||
[105421] = true, -- Blinding light
|
||||
[105593] = true, -- Fist of Justice
|
||||
[853] = true, -- Hammer of Justice
|
||||
[853] = true, -- Hammer of Justice
|
||||
[96231] = true, -- Rebuke
|
||||
[20066] = true, -- Repentance
|
||||
[145067] = true, -- Turn Evil
|
||||
|
||||
--priest
|
||||
[605] = true, -- Dominate Mind
|
||||
[605] = true, -- Dominate Mind
|
||||
[87194] = true, -- Glyph of Mind Blast
|
||||
[88625] = true, -- Holy Word: Chastise
|
||||
[64044] = true, -- Psychic Horror
|
||||
@@ -1531,7 +1533,7 @@ do
|
||||
[1330] = true, -- Garrote
|
||||
[1776] = true, -- Gouge
|
||||
[1766] = true, -- Kick
|
||||
[408] = true, -- Kidney shot
|
||||
[408] = true, -- Kidney shot
|
||||
[6770] = true, -- Sap
|
||||
[76577] = true, -- Smoke Bomb
|
||||
|
||||
@@ -1552,14 +1554,16 @@ do
|
||||
[5484] = true, -- Howl of terror
|
||||
[115268] = true, -- Mesmerize (shivarra)
|
||||
[6789] = true, -- Mortal Coil
|
||||
[6358] = true, -- Seduction (succubus
|
||||
[115781] = true, -- Optical Blast (improved spell lock from Grimoire of Supremacy)
|
||||
[6358] = true, -- Seduction (succubus)
|
||||
[30283] = true, -- Shadowfury
|
||||
[19647] = true, -- Spell Lock (Felhunters)
|
||||
[31117] = true, -- Unstable Affliction
|
||||
|
||||
--warrior
|
||||
[100] = true, -- Charge
|
||||
[100] = true, -- Charge
|
||||
[105771] = true, -- Charge
|
||||
[102060] = true, -- Disrupting Shout
|
||||
[118895] = true, -- Dragon Roar
|
||||
[5246] = true, -- Intimidating shout
|
||||
[6552] = true, -- Pummel
|
||||
@@ -1573,7 +1577,7 @@ do
|
||||
|
||||
--priest
|
||||
[47753] = true, --Divine Aegis (discipline)
|
||||
[17] = true, --Power Word: Shield (discipline)
|
||||
[17] = true, --Power Word: Shield (discipline)
|
||||
[114908] = true, --Spirit Shell (discipline)
|
||||
[114214] = true, --Angelic Bulwark (talent)
|
||||
[152118] = true, --Clarity of Will (talent)
|
||||
|
||||
+30
-10
@@ -415,12 +415,22 @@
|
||||
local get_player_dps = function()
|
||||
local damage_player = _detalhes.tabela_vigente (1, _detalhes.playername)
|
||||
if (damage_player) then
|
||||
local combat_time = _detalhes.tabela_vigente:GetCombatTime()
|
||||
if (combat_time > 0) then
|
||||
return ToKFunctions [_detalhes.minimap.text_format] (_, damage_player.total / combat_time)
|
||||
else
|
||||
return 0
|
||||
if (_detalhes.time_type == 1) then --activity time
|
||||
local combat_time = damage_player:Tempo()
|
||||
if (combat_time > 0) then
|
||||
return ToKFunctions [_detalhes.minimap.text_format] (_, damage_player.total / combat_time)
|
||||
else
|
||||
return 0
|
||||
end
|
||||
else --effective time
|
||||
local combat_time = _detalhes.tabela_vigente:GetCombatTime()
|
||||
if (combat_time > 0) then
|
||||
return ToKFunctions [_detalhes.minimap.text_format] (_, damage_player.total / combat_time)
|
||||
else
|
||||
return 0
|
||||
end
|
||||
end
|
||||
return 0
|
||||
else
|
||||
return 0
|
||||
end
|
||||
@@ -429,12 +439,22 @@
|
||||
local get_player_hps = function()
|
||||
local heal_player = _detalhes.tabela_vigente (2, _detalhes.playername)
|
||||
if (heal_player) then
|
||||
local combat_time = _detalhes.tabela_vigente:GetCombatTime()
|
||||
if (combat_time > 0) then
|
||||
return ToKFunctions [_detalhes.minimap.text_format] (_, heal_player.total / combat_time)
|
||||
else
|
||||
return 0
|
||||
if (_detalhes.time_type == 1) then --activity time
|
||||
local combat_time = heal_player:Tempo()
|
||||
if (combat_time > 0) then
|
||||
return ToKFunctions [_detalhes.minimap.text_format] (_, heal_player.total / combat_time)
|
||||
else
|
||||
return 0
|
||||
end
|
||||
else --effective time
|
||||
local combat_time = _detalhes.tabela_vigente:GetCombatTime()
|
||||
if (combat_time > 0) then
|
||||
return ToKFunctions [_detalhes.minimap.text_format] (_, heal_player.total / combat_time)
|
||||
else
|
||||
return 0
|
||||
end
|
||||
end
|
||||
return 0
|
||||
else
|
||||
return 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user