Skip to content

Instantly share code, notes, and snippets.

@benphelps
Created November 19, 2013 19:20
Show Gist options
  • Select an option

  • Save benphelps/7550948 to your computer and use it in GitHub Desktop.

Select an option

Save benphelps/7550948 to your computer and use it in GitHub Desktop.
local mavminsLib = { }
mavminsLib.inT15checked = nil
mavminsLib.inT15 = function(count)
if mavminsLib.inT15checked then
return mavminsLib.inT15checked >= count
end
local EnhanceT15 = {
96691, -- Head Heroic
96693, -- Shoulders Heroic
96689, -- Chest Heroic
96690, -- Gloves Heroic
96692, -- Legs Heroic
}
for i=1, 19 do
if GetInventoryItemID("player", i) ~= nil then
for j=1, 5 do
if GetItemInfo(GetInventoryItemID("player", i)) == GetItemInfo(EnhanceT15[j]) then
T_15 = T_15 + 1
end
end
end
end
mavminsLib.inT15checked = T_15
end
ProbablyEngine.library.register('mavminsLib', mavminsLib)
"@mavminsLib.inT15(5)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment