MrozuOTS.PL
Rexia.PL => Pytania i Problemy => Wątek zaczęty przez: Soda w 25 Lipiec 2022, 03:22:46
-
Hello to everyone on here 8)
Thanks for "Mrozu" and everyone such a good website and everything looks like new and works mostly,
i got so many problems solves by just reading, so curious if someone create script for attacking players by name or target name ? like i want to put a player on target if appears i attack directly by it's name ?
Thanks to everyone :-*
like i target player "PlayerName"
I got hold Target but i need to targetby player_name
local oldTarget
macro(200, "hold target", function()
if g_game.isAttacking() then
oldTarget = g_game.getAttackingCreature()
end
if (oldTarget and not g_game.isAttacking() and getDistanceBetween(pos(), oldTarget:getPosition()) <= 8) then
g_game.attack(oldTarget)
end
end)
-
local oldTarget
macro(200, "hold target", function()
if g_game.isAttacking() then
oldTarget = g_game.getAttackingCreature()
end
if (oldTarget and not g_game.isAttacking() and getDistanceBetween(pos(), oldTarget:getPosition()) <= 8) then
g_game.attack(oldTarget)
end
end)
I want to change this Script to Attack by name