Rexia.PL > Pytania i Problemy

Attack player Script! Help! pls

(1/1)

Soda:
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)

Soda:
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

Nawigacja

[0] Indeks wiadomości

There was an error while thanking
Lubiee...
Idź do wersji pełnej