Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. --AMPs
  2. local ampIds = {84767, 74278, 73830, 71840, 71838, 71836, 62613, 50746, 49988, 49987, 49986, 49985, 49983, 49982, 49975, 49974, 49971, 49970, 49969, 46542, 41261}
  3. for i,id in pairs(ampIds) do
  4. local item = Item.GetDataFromId(id)
  5. local info = item:GetDetailedInfo().tPrimary
  6. if info.strSpecialFailures == "This item can only be used once." then
  7. Print(item:GetName().." is not usable")
  8. else
  9. Print(item:GetName().." is usable")
  10. end
  11. end
  12.  
  13. --Min version to put in chat
  14. --/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
  15.  
  16. --Ability
  17. local apIds = {84768, 73831, 71839, 71837, 71835, 62612, 50745, 50541, 49992, 49991, 49990, 49989, 49984, 49977, 49976, 49972, 46543, 41262}
  18. for i,id in pairs(apIds) do
  19. local item = Item.GetDataFromId(id)
  20. local info = item:GetDetailedInfo().tPrimary
  21. if info.strSpecialFailures == "This item can only be used once." then
  22. Print(item:GetName().." is not usable")
  23. else
  24. Print(item:GetName().." is usable")
  25. end
  26. end
  27.  
  28. --Min version to put in chat
  29. --/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement