sorry guys there should have been a update that greatly improves disenchanting, milling, and prospecting some time ago but i just have not been able to find the time to finish the PQI variables. will do my best to get it pushed out to you guys tomorrow!
for those who want to have a sneak peak at what im doing
what the following means is it will be able to prospect and mill everything in game by default! and you will be able to define a custom list of stuff to disenchant in game (similar to my interrupt profile and its ingame lists) along with a mouseover disenchanting mode! you will also no longer have to worry about having odd stacks in front of others because i will be using items by slot and not by name!
Disenchanting:
PHP Code:
-- -- PQI is Required -- --
if PQI_AlphaUtilities_Stop then return false end
if PQI_AlphaUtilities_Utility_value == 2 and PQI_AlphaUtilities_Utility_enable == true then
if PQR_PauseRotation == nil then PQR_PauseRotation = 0
elseif PQR_PauseRotation > GetTime() then return true
elseif (PQI_AlphaUtilities_PausesDisenchanting_enable == true
and PQI:IsHotkeys(PQI_AlphaUtilities_PausesDisenchanting_key))
or LootFrame:IsVisible() or UnitCastingInfo("player") then
return true else PQR_PauseRotation = 0 end
if IsSpellKnown(13262) and (PQI_AlphaUtilities_DisenchantJCNeckRingBlues_enable
or PQI_AlphaUtilities_DisenchantJCNeckRingGreens_enable
or PQI_AlphaUtilities_DisenchantTailorWrists_enable
or PQI_AlphaUtilities_CustomDisenchant_enable ) then
for bag = 0, 4 do
for slot = 1, GetContainerNumSlots(bag) do
if GetContainerItemLink(bag,slot) then
local itemId = GetContainerItemID(bag, slot)
local itemName = GetItemInfo(GetContainerItemLink(bag,slot))
local Alpha_DE = {
Blue = { 90905, 90904 },
Green = { 83794, 83793 },
Wrist = { 82434, 82426, 82402 } }
if PQI_AlphaUtilities_DisenchantJCNeckRingBlues_enable then
for i = 1, #Alpha_DE.Blue do
if itemId == Alpha_DE.Blue[i] then
CastSpellByID(13262)
UseContainerItem(bag,slot)
return true
end end end
if PQI_AlphaUtilities_DisenchantJCNeckRingGreens_enable then
for i = 1, #Alpha_DE.Green do
if itemId == Alpha_DE.Green[i] then
CastSpellByID(13262)
UseContainerItem(bag,slot)
return true
end end end
if PQI_AlphaUtilities_DisenchantTailorWrists_enable then
for i = 1, #Alpha_DE.Wrist do
if itemId == Alpha_DE.Wrist[i] then
CastSpellByID(13262)
UseContainerItem(bag,slot)
return true
end end end
if PQI_AlphaUtilities_CustomDisenchant_enable then
local AlphaCustomDE = "local CustomDE = {"..PQI_AlphaUtilities_CustomDisenchant_value.."}"
Alpha_Deserialize(AlphaCustomDE, "Custom Disenchant")
for i = 1, #CustomDE do
if type(CustomDE[i]) == "string" then
if itemName == CustomDE[i] then
CastSpellByID(13262)
UseContainerItem(bag,slot)
return true end
elseif type(CustomDE[i]) == "number" then
if itemId == CustomDE[i] then
CastSpellByID(13262)
UseContainerItem(bag,slot)
return true
end end end end
end end end end
if IsSpellKnown(13262) and PQI_AlphaUtilities_MouseoverDisenchanting_enable then
CastSpellByID(13262)
PQR_PauseRotation = GetTime() + 1
return true
end end
if AlphaUtilities_SpamProtect2 == nil then AlphaUtilities_SpamProtect2 = 0 end
if filler then
if AlphaUtilities_SpamProtect2 < GetTime() then
AlphaUtilities_SpamProtect2 = GetTime() + 10
local AlphaCustomDE = "local CustomDE = {"..PQI_AlphaUtilities_CustomDisenchant_value.."}"
Alpha_Deserialize(AlphaCustomDE, "Custom Disenchant")
for i = 1, #CustomDE do
print("|cff00ffff<|cff00aaffAlpha Utilities|cff00ffff>|cffb048f8 Disenchanting Item: "..CustomDE[i])
end end end
Milling:
PHP Code:
-- -- PQI is Required -- --
if PQI_AlphaUtilities_Stop then return false end
if PQI_AlphaUtilities_Utility_value == 3 and PQI_AlphaUtilities_Utility_enable == true then
if PQR_PauseRotation == nil then PQR_PauseRotation = 0
elseif PQR_PauseRotation > GetTime() then return true
elseif (PQI_AlphaUtilities_PausesMilling_enable == true
and PQI:IsHotkeys(PQI_AlphaUtilities_PausesMilling_key))
or LootFrame:IsVisible() or UnitCastingInfo("player") then
return true else PQR_PauseRotation = 0 end
if IsSpellKnown(51005) and (PQI_AlphaUtilities_MillMoPHerbs_enable
or PQI_AlphaUtilities_MillCataHerbs_enable
or filler_WotLK
or filler_BC
or filler_PreBC) then
for bag = 0,4 do
for slot = 1,GetContainerNumSlots(bag) do
if GetContainerItemLink(bag,slot) then
local itemId = GetContainerItemID(bag, slot)
local _,itemCount = GetContainerItemInfo(bag,slot)
local Alpha_Mill = {
MoP = { 79011, 79010, 72235, 72237, 72234, 89639 },
Cata = { 52984, 52986, 52983, 52985, 52988, 52987 },
WotLK = { 36903, 36906, 36905, 37921, 39970, 36901, 36907, 36904 },
BC = { 22785, 22786, 22787, 22789, 22790, 22791, 22792, 22793 },
PreBC = { 2447, 765, 2449, 785, 2452, 22710, -- Apprentice
2450, 3820, 2453, 3355, 3369, 3356, -- Journeyman
3357, 3818, 3821, 3358, 3819, 4625, 8831, -- Expert
8836, 8838, 8839, 8845, 8846, -- Artisan part 1
13464, 13463, 13465, 13466, 13467 } } -- Artisan part 2
if PQI_AlphaUtilities_MillMoPHerbs_enable then
for i = 1, #Alpha_Mill.MoP do
if itemId == Alpha_Mill.MoP[i] and itemCount >= 5 then
CastSpellByID(51005)
UseContainerItem(bag,slot)
return true
end end end
if PQI_AlphaUtilities_MillCataHerbs_enable then
for i = 1, #Alpha_Mill.Cata do
if itemId == Alpha_Mill.Cata[i] and itemCount >= 5 then
CastSpellByID(51005)
UseContainerItem(bag,slot)
return true
end end end
if filler_WotLK then
for i = 1, #Alpha_Mill.WotLK do
if itemId == Alpha_Mill.WotLK[i] and itemCount >= 5 then
CastSpellByID(51005)
UseContainerItem(bag,slot)
return true
end end end
if filler_BC then
for i = 1, #Alpha_Mill.BC do
if itemId == Alpha_Mill.BC[i] and itemCount >= 5 then
CastSpellByID(51005)
UseContainerItem(bag,slot)
return true
end end end
if filler_PreBC then
for i = 1, #Alpha_Mill.PreBC do
if itemId == Alpha_Mill.PreBC[i] and itemCount >= 5 then
CastSpellByID(51005)
UseContainerItem(bag,slot)
return true
end end end
end end end end
end
Prospecting:
PHP Code:
-- -- PQI is Required -- --
if PQI_AlphaUtilities_Stop then return false end
if PQI_AlphaUtilities_Utility_value == 4 and PQI_AlphaUtilities_Utility_enable == true then
if PQR_PauseRotation == nil then PQR_PauseRotation = 0
elseif PQR_PauseRotation > GetTime() then return true
elseif (PQI_AlphaUtilities_PausesProspecting_enable == true
and PQI:IsHotkeys(PQI_AlphaUtilities_PausesProspecting_key))
or LootFrame:IsVisible() or UnitCastingInfo("player") then
return true else PQR_PauseRotation = 0 end
if IsSpellKnown(31252) and ( filler_MoP
or PQI_AlphaUtilities_ProspectTrilliumOre_enable
or PQI_AlphaUtilities_ProspectCataOre_enable
or filler_WotLK
or filler_BC
or filler_PreBC
or PQI_AlphaUtilities_ConvertSparklingShards_enable ) then
for bag = 0, 4 do
for slot = 1, GetContainerNumSlots(bag) do
if GetContainerItemLink(bag,slot) then
local itemId = GetContainerItemID(bag, slot)
local _,itemCount = GetContainerItemInfo(bag,slot)
local Alpha_Prospect = {
MoP = { 72092, 72093 },
Trill = { 72094, 72103 },
Cata = { 52183, 52185, 53038 }
WotLK = { 36909, 36912, 36910 },
BC = { 23424, 23425 },
PreBC = { 2770, 2771, 2772, 3858, 10620, 11370 } }
if MoPfiller_MoP then
for i = 1, #Alpha_Prospect.MoP do
if itemId == Alpha_Prospect.MoP[i] and itemCount >= 5 then
CastSpellByID(31252)
UseContainerItem(bag,slot)
return true
end end end
if PQI_AlphaUtilities_ProspectTrilliumOre_enable then
for i = 1, #Alpha_Prospect.Trill do
if itemId == Alpha_Prospect.Trill[i] and itemCount >= 5 then
CastSpellByID(31252)
UseContainerItem(bag,slot)
return true
end end end
if PQI_AlphaUtilities_ProspectCataOre_enable then
for i = 1, #Alpha_Prospect.Cata do
if itemId == Alpha_Prospect.Cata[i] and itemCount >= 5 then
CastSpellByID(31252)
UseContainerItem(bag,slot)
return true
end end end
if filler_WotLK then
for i = 1, #Alpha_Prospect.WotLK do
if itemId == Alpha_Prospect.WotLK[i] and itemCount >= 5 then
CastSpellByID(31252)
UseContainerItem(bag,slot)
return true
end end end
if filler_BC then
for i = 1, #Alpha_Prospect.BC do
if itemId == Alpha_Prospect.BC[i] and itemCount >= 5 then
CastSpellByID(31252)
UseContainerItem(bag,slot)
return true
end end end
if filler_PreBC then
for i = 1, #Alpha_Prospect.PreBC do
if itemId == Alpha_Prospect.PreBC[i] and itemCount >= 5 then
CastSpellByID(31252)
UseContainerItem(bag,slot)
return true
end end end
if PQI_AlphaUtilities_ConvertSparklingShards_enable then
if itemId == 90407 and itemCount >= 10 then
UseContainerItem(bag,slot)
return true
end end
end end end end
end