Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. local function ALimparMapaA()
  2. local configClean = {
  3. Map = {
  4. LS = {x = 783, y = 742, z = 6}, -- LIMIT NORT WEST
  5. LI = {x = 1151, y = 1110, z = 6}, -- LIMIT SUL EAST
  6. },
  7. }
  8. local ItensIDS = {2310, 18390, 2420, 2553, 1988, 3058, 3065, 2269, 2308, 2273, 2262, 7620, 2293, 2273, 2261, 2304, 7620, 2268, 2278, 8890, 2195, 2579, 2578, 8266, 2169} -- IDS FOR REMOVE
  9. for x = configClean.Map.LS.x, configClean.Map.LI.x do
  10. for y = configClean.Map.LS.y, configClean.Map.LI.y do
  11. for z = 1, 6 do
  12. for lista = 1, #ItensIDS do
  13. local tile = Tile(x, y, z)
  14. if tile then
  15. local field = tile:getItemById(ItensIDS[lista])
  16. if field then
  17. field:remove()
  18. end
  19. end
  20. end
  21. end
  22. end
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement