Last active
March 14, 2019 11:23
-
-
Save Ivaar/ce73439bf4432bdefc23 to your computer and use it in GitHub Desktop.
Vanilla follow and assist for use with send addon.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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) |
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
Takes multiple mule names as arguments, as many as you want.
e.g. "//assistme muleone" "//assistme muleone muletwo mulethree"