Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. function onThink()
  2. local square = {
  3. frompos = {x = 1252, y = 1007, z = 5},
  4. topos = {x = 1261, y = 1013, z = 5},
  5. exitpos = {x = 1253, y = 1010, z = 6}
  6. }
  7.  
  8. local players = 0
  9. local playerNoMapa
  10. for a = square.frompos.x, square.topos.x do
  11. for b = square.frompos.y, square.topos.y do
  12. local pos = { x = a, y = b, z = 5, stackpos = 255 }
  13. local player = getTopCreature(pos).uid
  14. if (isPlayer(player)) then
  15. playerNoMapa = player
  16. players = players + 1
  17. end
  18. end
  19. end
  20. if (players == 1) then
  21. -- faz a magica aqui
  22. end
  23. return true
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement