Created
July 29, 2016 19:08
-
-
Save Zod-/44f111434c93b6002a13c29b9e05fb29 to your computer and use it in GitHub Desktop.
Prints usable amps and ability points in chat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--AMPs | |
local ampIds = {84767, 74278, 73830, 71840, 71838, 71836, 62613, 50746, 49988, 49987, 49986, 49985, 49983, 49982, 49975, 49974, 49971, 49970, 49969, 46542, 41261} | |
for i,id in pairs(ampIds) do | |
local item = Item.GetDataFromId(id) | |
local info = item:GetDetailedInfo().tPrimary | |
if info.strSpecialFailures == "This item can only be used once." then | |
Print(item:GetName().." is not usable") | |
else | |
Print(item:GetName().." is usable") | |
end | |
end | |
--Min version to put in chat | |
--/eval local ampIds = {84767, 74278, 73830, 71840, 71838, 71836, 62613, 50746, 49988, 49987, 49986, 49985, 49983, 49982, 49975, 49974, 49971, 49970, 49969, 46542, 41261} for i,id in pairs(ampIds) do local item = Item.GetDataFromId(id) local info = item:GetDetailedInfo().tPrimary if info.strSpecialFailures == "This item can only be used once." then Print(item:GetName().." is not usable") else Print(item:GetName().." is usable") end end | |
--Ability | |
local apIds = {84768, 73831, 71839, 71837, 71835, 62612, 50745, 50541, 49992, 49991, 49990, 49989, 49984, 49977, 49976, 49972, 46543, 41262} | |
for i,id in pairs(apIds) do | |
local item = Item.GetDataFromId(id) | |
local info = item:GetDetailedInfo().tPrimary | |
if info.strSpecialFailures == "This item can only be used once." then | |
Print(item:GetName().." is not usable") | |
else | |
Print(item:GetName().." is usable") | |
end | |
end | |
--Min version to put in chat | |
--/eval local apIds = {84768, 73831, 71839, 71837, 71835, 62612, 50745, 50541, 49992, 49991, 49990, 49989, 49984, 49977, 49976, 49972, 46543, 41262} for i,id in pairs(apIds) do local item = Item.GetDataFromId(id) local info = item:GetDetailedInfo().tPrimary if info.strSpecialFailures == "This item can only be used once." then Print(item:GetName().." is not usable") else Print(item:GetName().." is usable") end end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment