ffxi mnk lua -- Multiple TP Sets "Normal", ACC, P/MDT, Hybrid -- Multiple WS Sets, VS(Acc, Impetus, Impetus + ACC) SS(Normal, Acc) FH(Normal, Acc) Others WS -- Impetus active, auto VS WS Gear depending on TP Set -- Impetus Wear off, Remove Impetus Gear and back to "Normal" -- MACROS FOR GEARSWAPS /console gs c >Command< -- normal, Set TP Gear to "normal" -- PDT, Set TP Gear tp PDT -- MDT, Toogle gear to MDT and if in MDT will set you back to NORMAL -- impetus, Set gear to Impetus Set -- acc, set gear to Acc set, while In acc set, WS like VS, SS will use their acc set. -- MACRO FOR AUTO BOOST /console gs c autoboost , Toogle it ON/OFF, on by default ffxi mnk lua PasteShr ffxi mnk lua function get_sets() BoostdWS = S{"Final Heaven","Victory Smite","Shijin Spiral","Asuran Fists"} autoboost = 1 autoboostnext = 0 --JA's Precast Sets sets.precast = {} ffxi mnk lua How to dowload it? ffxi mnk lua sets.precast['Hundred Fists'] = {legs="Hes. Hose"} sets.precast['Formless Strikes'] = {body="Mel. Cyclas +2"} sets.precast.Counterstance = {feet="Hes. Gaiters"} sets.precast.Dodge = {feet="Anchorite's Gaiters"} sets.precast.Boost = {hands="Anch. Gloves +1"} sets.precast.Mantra = {feet="Hes. Gaiters"} sets.precast.Focus = {head="Anchor. Crown +1"} sets.precast.Chakra = { ammo="Brigantia Pebble", ffxi mnk lua How to get it? ffxi mnk lua head="Uk'uxkaj Cap", body="Anch. Cyclas +1", hands="Hes. Gloves +1", legs="Nahtirah Trousers", feet="Thur. Boots +1", neck="Tjukurrpa Medal", waist="Caudata Belt", left_ear="Kemas Earring", right_ear="Soil Pearl", left_ring="Terrasoul Ring", ffxi mnk lua How to use it? ffxi mnk lua right_ring="Terrasoul Ring", back="Iximulew Cape",} sets.weapon = {main="Spharai"} --VS Base Set sets.precast.VSDD={ ammo="Potestas Bomblet", head="Uk'uxkaj Cap", body="Manibozho Jerkin", ffxi mnk lua How to get it for free? ffxi mnk lua hands="Hes. Gloves +1", legs="Quiahuiz Trousers", feet="Manibozho boots", neck="Justiciar's Torque", waist="Windbuffet Belt", left_ear="Brutal Earring", right_ear="Moonshade Earring", left_ring="Epona's Ring", right_ring="Rajas Ring", back="Rancorous Mantle", } ffxi mnk lua How to get it? ffxi mnk lua --VS Impetus Set sets.precast.VSImpetus = set_combine(sets.precast.VSDD, { body="Tantra Cyclas +2", back="Rancorous Mantle", }) --VS Accuracy Base Set sets.precast.VSACC={ ammo="Honed Tathlum", head="Whirlpool Mask", ffxi mnk lua How to use it? ffxi mnk lua body="Manibozho Jerkin", hands="Hes. Gloves +1", legs="Kaabnax Trousers", feet="Manibozho boots", neck="Light Gorget", waist="Light Belt", left_ear="Bladeborn Earring", right_ear="Steelflash Earring", left_ring="Beeline Ring", right_ring="Toreador's Ring", ffxi mnk lua How to dowload it? ffxi mnk lua back="Anchoret's Mantle",} --VS Accuracy + Impetus Set sets.precast.VSImpacc = set_combine(sets.precast.VSACC, { body="Tantra Cyclas +2", }) --Default Set for VS sets.precast['Victory Smite'] = sets.precast.VSDD --SS Base set sets.precast.SSDD={ ffxi mnk lua How to use it? ffxi mnk lua ammo="Potestas Bomblet", head="Whirlpool Mask", body="Manibozho Jerkin", hands="Hes. Gloves +1", legs="Manibozho Brais", feet="Manibozho boots", neck="Asperity Necklace", waist="Windbuffet Belt", left_ear="Bladeborn Earring", right_ear="Steelflash Earring", ffxi mnk lua How to get it? ffxi mnk lua left_ring="Epona's Ring", right_ring="Rajas Ring", back="Atheling Mantle",} --SS Accuracy Set sets.precast.SSACC= set_combine(sets.precast.SSDD, { ammo="Honed Tathlum", body="Manibozho Jerkin", hands="Hes. Gloves +1", neck="Light Gorget", ffxi mnk lua How to get it? ffxi mnk lua waist="Light Belt", back="Anchoret's Mantle",}) --Default Set for SS sets.precast['Shijin Spiral']= sets.precast.SSDD -- FH Base Set sets.precast.FHDD ={ ammo="Tantra Tathlum", head="Whirlpool Mask", ffxi mnk lua How to get it? ffxi mnk lua body="Manibozho Jerkin", hands="Anch. Gloves +1", legs="Nahtirah Trousers", feet="Otronif Boots", neck="Asperity Necklace", waist="Windbuffet Belt", left_ear="Brutal Earring", right_ear="Kemas Earring", left_ring="Epona's Ring", right_ring="Terrasoul Ring", ffxi mnk lua How to dowload it? ffxi mnk lua back="Anchoret's Mantle",} -- FH Accuracy set sets.precast.FHACC = set_combine(sets.precast.FHDD, { ammo="Tantra Tathlum", hands="Hes. Gloves +1", legs="Kaabnax Trousers", feet="Manibozho boots", neck="Light Gorget", waist="Light Belt",}) ffxi mnk lua How to dowload it? ffxi mnk lua -- Default set for FH sets.precast['Final Heaven'] = sets.precast.FHDD -- Others WS Set sets.precast.WS = { ammo="Potestas Bomblet", head="Uk'uxkaj Cap", body="Manibozho Jerkin", hands="Hes. Gloves +1", ffxi mnk lua How to dowload it? ffxi mnk lua legs="Quiahuiz Trousers", feet="Manibozho boots", neck="Justiciar's Torque", waist="Windbuffet Belt", left_ear="Brutal Earring", right_ear="Moonshade Earring", left_ring="Epona's Ring", right_ring="Rajas Ring", back="Rancorous Mantle",} ffxi mnk lua PasteShr ffxi mnk lua --TP sets sets.TP = {} --TP DD sets sets.TP.DD = { ammo="Hagneia Stone", head="Whirlpool Mask", body="Thaumas Coat", hands="Hes. Gloves +1", legs="Hes. Hose", ffxi mnk lua How to get it? ffxi mnk lua feet="Manibozho boots", neck="Asperity Necklace", waist="Windbuffet Belt", left_ear="Bladeborn Earring", right_ear="Steelflash Earring", left_ring="Epona's Ring", right_ring="K'ayres Ring", back="Atheling Mantle",} --TP Acc sets ffxi mnk lua How to get it? ffxi mnk lua sets.TP.Acc = set_combine(sets.TP.DD, { ammo="Honed Tathlum", body="Manibozho Jerkin", hands="Hes. Gloves +1", legs="Kaabnax Trousers", neck="Ej Necklace", waist="Hurch'lan Sash", left_ring="Beeline Ring", right_ring="Toreador's Ring", back="Anchoret's Mantle",}) ffxi mnk lua How to dowload it? ffxi mnk lua --TP Counterstance sets.TP.cc = set_combine(sets.TP.DD, { feet="Hes. Gaiters"}) --TP Hybrid Acc/PDT sets sets.TP.Hybrid= set_combine(sets.TP.Acc, { head="Otronif Mask", body="Otronif Harness", hands="Hes. Gloves +1", legs="Otronif Brais", feet="Otronif Boots", ffxi mnk lua How to get it? ffxi mnk lua neck="Ej Necklace", left_ear="Bladeborn Earring", right_ear="Steelflash Earring", right_ring="Defending Ring", back="Mollusca Mantle",}) --TP Impetus sets sets.TP.Impetus=set_combine(sets.TP.DD, { head="Uk'uxkaj Cap", body="Tantra Cyclas +2", ffxi mnk lua How to get it? ffxi mnk lua waist="Cetl Belt", back="Letalis Mantle",}) --PDT/MDT Sets sets.PDT ={ ammo="Brigantia Pebble", head="Otronif Mask", body="Otronif Harness", hands="Otronif Gloves", legs="Otronif Brais", ffxi mnk lua PasteShr ffxi mnk lua feet="Otronif Boots", neck="Twilight Torque", waist="Black Belt", left_ear="Bladeborn Earring", right_ear="Steelflash Earring", left_ring="Dark Ring", right_ring="Defending Ring", back="Mollusca Mantle",} --PDT/MDT Sets ffxi mnk lua How to get it? ffxi mnk lua sets.MDT = set_combine(sets.PDT, {body="Avalon Breastplate",}) --Aftercast Rule/Idle Set sets.aftercast = {} sets.aftercast.TP = sets.TP.DD sets.aftercast.Idle = { ammo="Hagneia Stone", head="Oce. Headpiece +1", body="Mel. Cyclas +2", ffxi mnk lua How to get it? ffxi mnk lua hands="Hes. Gloves +1", legs="Hes. Hose", feet="Hermes' Sandals +1", neck="Wiglen Gorget", waist="Black Belt", left_ear="Bladeborn Earring", right_ear="Steelflash Earring", left_ring="Paguroidea Ring", right_ring="Defending Ring", back="Iximulew Cape",} ffxi mnk lua How to get it? ffxi mnk lua end function pretarget(spell) end function precast(spell,action) --Auto Boost on Certain WS if BoostdWS:contains(spell.name) and windower.ffxi.get_ability_recasts()[16] < 1 and not buffactive['Hundred Fists'] and not buffactive.amnesia and spell.target.distance < 5.5 and player.tp > 99 and autoboost == 1 and autoboostnext == 0 then cancel_spell() ffxi mnk lua How to get it? ffxi mnk lua autoboostnext = 1 abws = spell.name send_command('input /ja "Boost" ;') add_to_chat(100,'> > > > '..spell.name) return end if sets.precast[spell.english] then if buffactive['Impetus'] then if sets.aftercast.TP == sets.TP.Acc then ffxi mnk lua How to get it for free? ffxi mnk lua sets.precast['Victory Smite'] = sets.precast.VSImpacc else if sets.aftercast.TP == sets.TP.DD then sets.precast['Victory Smite'] = sets.precast.VSImpetus end end end equip(sets.precast[spell.english]) elseif spell.type=="WeaponSkill" then equip(sets.precast.WS) ffxi mnk lua How to get it for free? ffxi mnk lua end end function midcast(spell,action) end function aftercast(spell,action) if spell.name == null then return -- Cancel Aftercast for outofrange/unable to see. end ffxi mnk lua How to dowload it? ffxi mnk lua if player.status == 'Engaged' then if spell.name == 'Boost' then return -- Cancel aftercast for boost, coz it was overlapping with the precast of the ws when used all in a macro. else equip(sets.aftercast.TP) end else if sets.aftercast.TP == sets.PDT or sets.aftercast.TP == sets.MDT then equip(sets.aftercast.TP) ffxi mnk lua How to get it? ffxi mnk lua else equip(sets.aftercast.Idle) end end end function status_change(new,old) if new == 'Engaged' then equip(sets.aftercast.TP) autoboostnext = 0 ffxi mnk lua PasteShr ffxi mnk lua else if sets.aftercast.TP == sets.PDT then equip(sets.aftercast.TP) autoboostnext = 0 elseif sets.aftercast.TP == sets.MDT then equip(sets.aftercast.TP) autoboostnext = 0 else equip(sets.aftercast.Idle) autoboostnext = 0 ffxi mnk lua PasteShr ffxi mnk lua end end end function buff_change(status,gain_or_loss) if status == "Boost" and autoboostnext == 1 then if gain_or_loss then send_command('input /ws "'..abws..'" ;') else ffxi mnk lua PasteShr ffxi mnk lua autoboostnext = 0 end end if status == "Impetus" then if gain_or_loss then if sets.aftercast.TP == sets.TP.Acc then sets.precast['Victory Smite'] = sets.precast.VSImpacc send_command('@input /echo Victory Smite WS Set = ImpAcc ') else ffxi mnk lua How to use it? ffxi mnk lua if sets.aftercast.TP == sets.MDT or sets.aftercast.TP == sets.PDT then sets.precast['Victory Smite'] = sets.precast.VSImpetus send_command('@input /echo Victory Smite WS Set = P/MDT - VSImpetus ') else equip(sets.TP.Impetus) sets.aftercast.TP = sets.TP.Impetus sets.precast['Victory Smite'] = sets.precast.VSImpetus send_command('@input /echo Victory Smite WS Set = VSImpetus ') end end ffxi mnk lua How to get it for free? ffxi mnk lua else if sets.aftercast.TP == sets.TP.Acc then sets.precast['Victory Smite'] = sets.precast.VSACC send_command('@input /echo Victory Smite WS Set = Acc ') else if sets.aftercast.TP == sets.MDT then equip(sets.MDT) sets.precast['Victory Smite'] = sets.precast.VSDD send_command('@input /echo Victory Smite WS Set = Normal -- MDT SET ON') elseif sets.aftercast.TP == sets.PDT then ffxi mnk lua How to get it? ffxi mnk lua equip(sets.PDT) sets.precast['Victory Smite'] = sets.precast.VSDD send_command('@input /echo Victory Smite WS Set = Normal -- PDT SET ON') else equip(sets.TP.DD) sets.aftercast.TP = sets.TP.DD sets.precast['Victory Smite'] = sets.precast.VSDD send_command('@input /echo Victory Smite WS Set = Normal ') end end ffxi mnk lua How to dowload it? ffxi mnk lua end end end -- SE Macros /console gs c "command" [case sensitive] function self_command(command) if command == 'normal' then if player.status == 'Engaged' then equip(sets.TP.DD) sets.aftercast.TP = sets.TP.DD sets.precast['Victory Smite'] = sets.precast.VSDD ffxi mnk lua How to dowload it? ffxi mnk lua sets.precast['Shijin Spiral'] = sets.precast.SSDD add_to_chat(100, 'Normal TP Set') else equip(sets.aftercast.Idle) sets.aftercast.TP = sets.TP.DD sets.precast['Victory Smite'] = sets.precast.VSDD sets.precast['Shijin Spiral'] = sets.precast.SSDD add_to_chat(100, 'Normal TP - Idle Set') end elseif command == 'acc' then ffxi mnk lua How to get it? ffxi mnk lua equip(sets.TP.Acc) sets.aftercast.TP = sets.TP.Acc sets.precast['Victory Smite'] = sets.precast.VSACC sets.precast['Shijin Spiral'] = sets.precast.SSACC add_to_chat(100, 'Accuracy Set') elseif command == 'hybrid' then equip(sets.TP.Hybrid) sets.aftercast.TP = sets.TP.Hybrid sets.precast['Victory Smite'] = sets.precast.VSACC sets.precast['Shijin Spiral'] = sets.precast.SSACC ffxi mnk lua How to get it for free? ffxi mnk lua add_to_chat(100, 'Acc-DT Set') elseif command == 'impetus' then equip(sets.TP.Impetus) sets.aftercast.TP = sets.TP.Impetus sets.precast['Victory Smite'] = sets.precast.VSImpetus sets.precast['Shijin Spiral'] = sets.precast.SSDD add_to_chat(100, 'Impetus TP Set') elseif command == 'cc' then equip(sets.TP.cc) sets.aftercast.TP = sets.TP.cc ffxi mnk lua How to dowload it? ffxi mnk lua add_to_chat(100, 'Counterstance Set') elseif command == 'PDT' then equip(sets.PDT) sets.aftercast.TP = sets.PDT add_to_chat(100, 'PDT Set') elseif command == 'MDT' then if sets.aftercast.TP == sets.MDT then if player.status == 'Engaged' then equip(sets.TP.DD) sets.aftercast.TP = sets.TP.DD ffxi mnk lua How to get it? ffxi mnk lua sets.precast['Victory Smite'] = sets.precast.VSDD sets.precast['Shijin Spiral'] = sets.precast.SSDD add_to_chat(100, 'Normal TP Set') else equip(sets.aftercast.Idle) sets.aftercast.TP = sets.TP.DD sets.precast['Victory Smite'] = sets.precast.VSDD sets.precast['Shijin Spiral'] = sets.precast.SSDD add_to_chat(100, 'Normal TP Set + idle') end ffxi mnk lua PasteShr ffxi mnk lua else equip(sets.MDT) sets.aftercast.TP = sets.MDT add_to_chat(100, 'MDT Set') end elseif command == 'AutoBoost' then if autoboost == 1 then autoboost = 0 add_to_chat(100, 'Auto Boost Before WS = OFF') else ffxi mnk lua How to use it? ffxi mnk lua autoboost = 1 add_to_chat(100, 'Auto Boost Before WS = ON') end end end ffxi mnk lua