Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nombre = "Saintgio"
- tfm.exec.position=function(n)
- return tfm.get.room.playerList[n].x,tfm.get.room.playerList[n].y
- end
- function eventMouse(n, x_final, y_final)
- local x_inicial, y_inicial = tfm.exec.position(nombre)
- local diferencia_x = x_final - x_inicial
- local diferencia_y = y_final - y_inicial
- local angulo = math.atan2(diferencia_y, diferencia_x)
- angulo = angulo*180/math.pi
- tfm.exec.addShamanObject(0, x_inicial, y_inicial-45, angulo-90)
- end
- function main()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAfkDeath(true)
- system.bindMouse(nombre, true)
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement