if u guys have some problems with turn use this
local function turnToTarget()
if not g_game.isOnline() or not g_game.isAttacking() then return end
local player = g_game.getLocalPlayer()
local target = g_game.getAttackingCreature()
if target:getPosition():getDistance(player:getPosition()) > 1 then return end
if target then
if target:getPosition().x < player:getPosition().x then
g_game.sendKey("A")
elseif target:getPosition().x > player:getPosition().x then
g_game.sendKey("D")
elseif target:getPosition().y > player:getPosition().y then
g_game.sendKey("S")
elseif target:getPosition().y < player:getPosition().y then
g_game.sendKey("W")
end
end
end
turnToTarget()
auto(500)
the character will try to walk in the monster direction and turn