Autoexc

Langues: JP EN DE FR
users online
Forum » Windower » Support » Autoexc
Autoexc
 Leviathan.Dwb
Offline
Serveur: Leviathan
Game: FFXI
Posts: 144
By Leviathan.Dwb 2013-10-11 12:05:38
Link | Citer | R
 
Is the a command If *name distance

IE: If dwb is 20' away, input; /tell dwb Wait
 Leviathan.Arcon
VIP
Offline
Serveur: Leviathan
Game: FFXI
user: Zaphor
Posts: 660
By Leviathan.Arcon 2013-10-11 15:40:28
Link | Citer | R
 
There isn't, but you can write a simple Lua addon to do that. Put this in <name>.lua in the Windower/addons/<name>/ folder:
Code
index = 0

function event_time_change()
    local dwb = get_mob_by_index(index)
    if not dwb or not next(dwb) then
        local arr = get_mob_array()
        for i = 1, 2048 do
            if arr[i].name == 'Dwb' then
                index = i
                break
            end

            if i == 2048 then
                return
            end
        end
    end

    if get_mob_by_index(index).distance > 400 then
        send_command('input /t Dwb Stop you fat Galka')
    end
end)


Load it with //lua load <name>, whatever the name was you gave it.

I didn't test it, so no guarantee, but something like this should work. If you're using 4.1 let me know, the code looks different on there.
 Leviathan.Dwb
Offline
Serveur: Leviathan
Game: FFXI
Posts: 144
By Leviathan.Dwb 2013-10-11 16:28:46
Link | Citer | R
 
lmao.. love the reply in the code :p

Trying it now, thank you

EDIT

Did not work, no errors (after i fixed a typo) but doesn't work
Log in to post.