Advertisement
Guest User

Untitled

a guest
May 26th, 2015
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. function MinionSender.AE.ActionDropDimension()
  2. local items = Inspect.Item.Detail(Utility.Item.Slot.Inventory())
  3.  
  4. if items ~= nil then
  5. for k, v in pairs(items) do
  6. if v.category ~= nil and string.find(v.category, "dimension") ~= nil and MinionSenderUISettings.flags["dropDimension" .. (v.rarity or "common")] and
  7. (string.find(v.category, "key") == nil or MinionSenderUISettings.flags.dropDimensionKey) and
  8. (v.lootable ~= true or MinionSenderUISettings.flags.dropDimensionLootable) then
  9. if Inspect.Queue.Status("global") then
  10. pcall(Command.Item.Destroy, v.id)
  11. return
  12. end
  13. end
  14.  
  15. -- if v.category ~= nil and string.find(v.category, "recipe") ~= nil and MinionSenderUISettings.flags["dropDimension" .. (v.rarity or "common")] and
  16. -- (string.find(v.category, "key") == nil or MinionSenderUISettings.flags.dropDimensionKey) and
  17. -- (v.lootable ~= true or MinionSenderUISettings.flags.dropDimensionLootable) then
  18. -- if Inspect.Queue.Status("global") then
  19. -- pcall(Command.Item.Destroy, v.id)
  20. -- return
  21. -- end
  22. -- end
  23. --
  24. -- if v.category ~= nil and string.find(v.category, "pet") ~= nil and MinionSenderUISettings.flags["dropDimension" .. (v.rarity or "common")] and
  25. -- (string.find(v.category, "key") == nil or MinionSenderUISettings.flags.dropDimensionKey) and
  26. -- (v.lootable ~= true or MinionSenderUISettings.flags.dropDimensionLootable) then
  27. -- if Inspect.Queue.Status("global") then
  28. -- pcall(Command.Item.Destroy, v.id)
  29. -- return
  30. -- end
  31. -- end
  32.  
  33. end
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement