Skip to content

Instantly share code, notes, and snippets.

@Ivaar
Last active March 14, 2019 11:23
Show Gist options
  • Save Ivaar/ce73439bf4432bdefc23 to your computer and use it in GitHub Desktop.
Save Ivaar/ce73439bf4432bdefc23 to your computer and use it in GitHub Desktop.
Vanilla follow and assist for use with send addon.
_addon.command = 'assistme'
follow_states = {[0]=true,[5]=true,[85]=true}
windower.register_event('addon command', function(...)
local self = windower.ffxi.get_mob_by_target('me')
local names = {...}
for _,name in pairs(names) do
local mule = windower.ffxi.get_mob_by_name(name:sub(1, 1):upper()..name:sub(2):lower())
if mule then
if self.status == 1 and mule.status == 0 then
windower.send_command('send %s /assist %s;wait 1;send %s /a on':format(name, self.name, name))
elseif follow_states[self.status] and follow_states[mule.status] then
windower.send_command('send %s /follow %s;':format(name, self.name))
elseif self.status == 0 and mule.status == 1 then
windower.send_command('send %s /a off':format(name, name))
end
end
end
end)
@bjggi
Copy link

bjggi commented Mar 14, 2019

Hello

I have a Question, is it possible to assit automatically the MainChar when he engages a Target or even switches to a new Target? So i dont have to input //assistme mule every engage?

Maybe like a toggle //assistme always mule

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment