This is just my first day writing addons so I know my code can use a lot of cleanup. Right now I'm checking for trust's current mp, then I want to release and re-summon them if their mp is below a certain threshold (90% just for testing). I'm getting them to release, but it won't re-summon them. Any idea what's wrong?
_addon.command = 'fedex' windower.register_event('addon command',function() local party = windower.ffxi.get_party() if party.p4 ~= nil then local mpp = party.p4.mpp local name = party.p4.name if mpp ~= 0 and mpp < 90 then windower.send_command('input /refa '..name..';wait 1;/ma '..name..' <me>') end end if party.p3 ~= nil then local mpp = party.p3.mpp local name = party.p3.name if mpp ~= 0 and mpp < 90 then windower.send_command('input /refa '..name..';wait 1;/ma '..name..' <me>') end end end)