Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local playerToFollow = 'Lunia'
- macro(1000, "auto follow", function()
- if g_game.isFollowing() then
- return
- end
- for _, followcreature in ipairs(g_map.getSpectators(pos(), false)) do
- if (followcreature:getName() == playerToFollow and getDistanceBetween(pos(), followcreature:getPosition()) <= 8) then
- g_game.follow(followcreature)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement