Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local playerToFollow = 'Lunia'
  2. macro(1000, "auto follow", function()
  3. if g_game.isFollowing() then
  4. return
  5. end
  6. for _, followcreature in ipairs(g_map.getSpectators(pos(), false)) do
  7. if (followcreature:getName() == playerToFollow and getDistanceBetween(pos(), followcreature:getPosition()) <= 8) then
  8. g_game.follow(followcreature)
  9. end
  10. end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement