Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------
- -- *** Arnan Warrior Gearswap Lua File *** --
- ---------------------------------------------
- -- Commands --
- -- In Game: //gs c, Macro: /console gs c, Bind: gs c --
- -- gs c acc Toggle accuracy tier for TP/WS
- -- gs c weapon Toggle Weapon/TP Sets
- -- gs c idle Toggle idle sets
- -- gs c pdt PDT on/off
- -- gs c mdt MDT on/off
- -- gs c kiting Kiting on/off
- -- gs c hybrid Hybrid on/off
- -- gs c retaliation Retaliation Gear on/off
- -- gs c twilight Twilight on/off
- ----------
- -- Sets --
- ----------
- function get_sets()
- AccIndex = 1
- AccArray = {"LowACC","MidACC","HighACC","MaxACC"} -- 4 Levels Of Accuracy Sets For TP/WS/Hybrid. First Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below. Most of These Sets Are Empty So You Need To Edit Them On Your Own. Remember To Check What The Combined Set Is For Each Sets. --
- WeaponIndex = 1
- WeaponArray = {"Ragnarok","Montante","Chango","Standard","Fencer","NINsub","DNCsub"} -- Default Main Weapon Is Conqueror. Can Delete Any Weapons/Sets That You Don't Need Or Replace/Add The New Weapons That You Want To Use. --
- IdleIndex = 1
- IdleArray = {"Full","DT","Warp"} -- Default Idle Set Is Movement --
- Armor = 'None'
- Twilight = 'None'
- Retaliation = 'OFF' -- Set Default Retaliation ON or OFF Here --
- Samurai_Roll = 'ON' -- Set Default SAM Roll ON or OFF Here --
- target_distance = 6 -- Set Default Distance Here --
- send_command('input /macro book 6;wait .1;input /macro set 1') -- Change Default Macro Book Here --
- add_to_chat(158,'-[Warrior Lua Loaded]-')
- add_to_chat(155,'Weapon: '..WeaponArray[WeaponIndex])
- add_to_chat(155,'Accuracy Level: ' .. AccArray[AccIndex])
- add_to_chat(158,'-----[Weapon Skill Keybinds]-----')
- add_to_chat(155,'F10 - Full Break, F11 - Upheaval, F12 King\'s Justice')
- add_to_chat(155,'Insert - Scourge, Delete - Resolution')
- -- Augments --
- OHands={}
- OHands.WSD={ name="Odyssean Gauntlets", augments={'Accuracy+15 Attack+15','Weapon skill damage +4%','STR+1','Accuracy+15',}}
- OLegs={}
- OLegs.STP={ name="Odyssean Cuisses", augments={'Accuracy+30','"Store TP"+7','Attack+15',}}
- OLegs.WSD={ name="Odyssean Cuisses", augments={'Accuracy+27','Weapon skill damage +4%','AGI+10','Attack+12',}}
- VFeet={}
- VFeet.STP={ name="Valorous Greaves", augments={'Accuracy+25','"Store TP"+7',}}
- -- Cichol's Mantle Augments --
- STRDAMantle = {name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10','Phys. dmg. taken-10%',}}
- STRWSDMantle = {name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}}
- VITWSDMantle = {name="Cichol's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','VIT+10','Weapon skill damage +10%',}}
- CritMantle = {name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Crit.hit rate+10',}}
- --------------------
- -- Key Binds Load --
- --------------------
- -- Key Bind Toggles (The Same for all my job files) (Ctrl Key) --
- send_command('bind ^A input //gs c acc')
- send_command('bind ^D input //gs c pdt')
- send_command('bind ^H input //gs c hybrid')
- send_command('bind ^I input //gs c idle')
- send_command('bind ^K input //gs c kiting')
- send_command('bind ^W input //gs c weapon')
- -- Stuff to control both Mules (Ctrl Key) --
- send_command('bind ^X input /pcmd add ojomo;pause 5;input /pcmd add oeogo')
- send_command('bind ^3 input //send oeogo //ma Cure 3 Arnan')
- send_command('bind ^4 input //send oeogo //ma Cure 4 Arnan')
- send_command('bind ^5 input //send oeogo //ma Refresh Arnan')
- send_command('bind ^7 input //send oeogo //ma haste ojomo')
- send_command('bind ^8 input //send oeogo //ma Dia 2 <t>;pause 2;input //send ojomo //ja Light Shot <t>')
- send_command('bind ^9 input //send ojomo //follow arnan;pause 0.1;input //send oeogo //follow arnan')
- send_command('bind ^0 input //send ojomo //assist arnan;pause 0.1;input //send oeogo //assist arnan')
- send_command('bind ^- input //send ojomo /attack <t>;pause 0.1;input //send oeogo /attack <t>')
- -- COR (Mule) Job Ability Key Binds (Alt Key) --
- send_command('bind !7 input //send ojomo //ja Crooked Cards <me>')
- send_command('bind !8 input //send ojomo //ja Snake Eye <me>')
- send_command('bind !9 input //send ojomo //ja Fold <me>')
- send_command('bind !0 input //send ojomo //ja Random Deal <me>')
- -- COR (mule) Phantom Roll Key Binds (Alt Key) --
- send_command('bind !A input //send ojomo //ja Allies\' Roll <me>')
- send_command('bind !B input //send ojomo //ja Bolter\'s Roll <me>')
- send_command('bind !C input //send ojomo //ja Chaos Roll <me>')
- send_command('bind !D input //send ojomo //ja Dancer\'s Roll <me>')
- send_command('bind !E input //send ojomo //ja Evoker\s Roll <me>')
- send_command('bind !F input //send ojomo //ja Fighter\'s Roll <me>')
- send_command('bind !G input //send ojomo //ja Gallant\'s Roll <me>')
- send_command('bind !H input //send ojomo //ja Hunter\'s Roll <me>')
- send_command('bind !Q input //send ojomo //ja Warlock\'s Roll <me>')
- send_command('bind !R input //send ojomo //ja Rogue\'s Roll <me>')
- send_command('bind !S input //send ojomo //ja Samurai Roll <me>')
- send_command('bind !T input //send ojomo //ja Tactician\'s Roll <me>')
- send_command('bind !W input //send ojomo //ja Wizard\'s Roll <me>')
- send_command('bind !X input //send ojomo //ja Corsair\'s Roll <me>')
- -- GEO (Mule) Job Ability Key Binds (Win Key) --
- send_command('bind @3 input //send oeogo //ja Radial Arcana <me>')
- send_command('bind @5 input //send oeogo //ma Refresh <me>')
- send_command('bind @7 input //send oeogo //ja Blaze of Glory <me>')
- send_command('bind @8 input //send oeogo //ja Ecliptic Attrition <me>')
- send_command('bind @9 input //send oeogo //ja Life Cycle <me>')
- send_command('bind @0 input //send oeogo //ja Lasting Emanation <me>')
- -- GEO (Mule) Nuke Key Binds (Win Key) --
- send_command('bind @F1 input //send oeogo /ma Aero V <t>;pause 0.5;input //send oeogo /ma Aero IV <t>;pause 0.5;input //send oeogo /ma Aero III <t>;')
- send_command('bind @F2 input //send oeogo /ma Fire V <t>;pause 0.5;input //send oeogo /ma Fire IV <t>;pause 0.5;input //send oeogo /ma Fire III <t>;')
- send_command('bind @F3 input //send oeogo /ma Thunder V <t>;pause 0.5;input //send oeogo /ma Thunder IV <t>;pause 0.5;input //send oeogo /ma Thunder III <t>;')
- send_command('bind @F4 input //send oeogo /ma Stone V <t>;pause 0.5;input //send oeogo /ma Stone IV <t>;pause 0.5;input //send oeogo /ma Stone III <t>;')
- send_command('bind @F5 input //send oeogo /ma Water V <t>;pause 0.5;input //send oeogo /ma Water IV <t>;pause 0.5;input //send oeogo /ma Water III <t>;')
- send_command('bind @F6 input //send oeogo /ma Blizzard V <t>;pause 0.5;input //send oeogo /ma Blizzard IV <t>;pause 0.5;input //send oeogo /ma Blizzard III <t>;')
- -- GEO (Mule) Indicolure Spells (Win Key) --
- send_command('bind @1 input //send oeogo /ma Indi-Regen <me>')
- send_command('bind @2 input //send oeogo /ma Indi-Refresh <me>')
- send_command('bind @D input //send oeogo /ma Indi-DEX <me>')
- send_command('bind @A input //send oeogo /ma Indi-Acumen <me>')
- send_command('bind @F input //send oeogo /ma Indi-Fury <me>')
- send_command('bind @H input //send oeogo /ma Indi-Haste <me>')
- send_command('bind @K input //send oeogo /ma Indi-Focus <me>')
- send_command('bind @P input //send oeogo /ma Indi-Precision <me>')
- send_command('bind @Q input //send oeogo /ma Indi-Barrier <me>')
- send_command('bind @S input //send oeogo /ma Indi-STR <me>')
- send_command('bind @V input //send oeogo /ma Indi-Attunement <me>')
- -- GEO (Mule) Geocolure Spells (Alt+Win Keys) --
- send_command('bind !@1 input //send oeogo /ma Geo-Regen <me>')
- send_command('bind !@2 input //send oeogo /ma Geo-Refresh <me>')
- send_command('bind !@A input //send oeogo /ma Geo-Malaise <t>')
- send_command('bind !@D input //send oeogo /ma Geo-DEX <me>')
- send_command('bind !@F input //send oeogo /ma Geo-Frailty <t>')
- send_command('bind !@H input //send oeogo /ma Geo-Haste <me>')
- send_command('bind !@K input //send oeogo /ma Geo-Languor <t>')
- send_command('bind !@P input //send oeogo /ma Geo-Torpor <t>') --
- send_command('bind !@Q input //send oeogo /ma Geo-Wilt <t>') --
- send_command('bind !@S input //send oeogo /ma Geo-STR <me>')
- send_command('bind !@V input //send oeogo /ma Geo-Vex <t>')
- -- GEO (Mule) Entrust Indicolure Spells (Ctrl+Win Keys) --
- send_command('bind ^@1 input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Regen Arnan')
- send_command('bind ^@2 input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Refresh Arnan')
- send_command('bind ^@A input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Acumen Arnan')
- send_command('bind ^@D input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-DEX Arnan')
- send_command('bind ^@F input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Fury Arnan')
- send_command('bind ^@H input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Haste Arnan')
- send_command('bind ^@K input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Focus Arnan')
- send_command('bind ^@P input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Precision Arnan')
- send_command('bind ^@Q input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Barrier Arnan')
- send_command('bind ^@S input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-STR Arnan')
- send_command('bind ^@V input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Attunement Arnan')
- -- Warrior Job Key Binds (Ctrl & Ctrl+Alt Keys) --
- send_command('bind ^P input //ja Provoke <t>')
- send_command('bind ^Z input //ja Berserk <me>')
- -- Warrior Weapon Skill Key Binds --
- send_command('bind F10 input /ws "Full Break" <t>')
- send_command('bind F11 input /ws "Upheaval" <t>')
- send_command('bind F12 input /ws "King\'s Justice" <t>')
- send_command('bind Insert input /ws "Scourge" <t>')
- send_command('bind Delete input /ws "Resolution" <t>')
- ----------------------
- -- Key Binds Unload --
- ----------------------
- function file_unload()
- -- Unbind Toggles --
- send_command('unbind ^A')
- send_command('unbind ^D')
- send_command('unbind ^H')
- send_command('unbind ^I')
- send_command('unbind ^K')
- send_command('unbind ^W')
- -- Unbind Stuff to control both Mules --
- send_command('unbind ^X')
- send_command('unbind ^3')
- send_command('unbind ^4')
- send_command('unbind ^4')
- send_command('unbind ^7')
- send_command('unbind ^8')
- send_command('unbind ^9')
- send_command('unbind ^0')
- send_command('unbind ^-')
- -- Unbind COR JA's --
- send_command('unbind !7')
- send_command('unbind !8')
- send_command('unbind !9')
- send_command('unbind !0')
- -- Unbind COR Rolls --
- send_command('unbind !A')
- send_command('unbind !B')
- send_command('unbind !C')
- send_command('unbind !D')
- send_command('unbind !E')
- send_command('unbind !F')
- send_command('unbind !G')
- send_command('unbind !H')
- send_command('unbind !Q')
- send_command('unbind !R')
- send_command('unbind !S')
- send_command('unbind !T')
- send_command('unbind !W')
- send_command('unbind !X')
- -- Unbind GEO JA's --
- send_command('unbind @3')
- send_command('unbind @5')
- send_command('unbind @7')
- send_command('unbind @8')
- send_command('unbind @9')
- send_command('unbind @0')
- -- Unbind GEO Nukes --
- send_command('unbind @F1')
- send_command('unbind @F2')
- send_command('unbind @F3')
- send_command('unbind @F4')
- send_command('unbind @F5')
- send_command('unbind @F6')
- -- Unbind GEO Indi Spells --
- send_command('unbind @1')
- send_command('unbind @2')
- send_command('unbind @A')
- send_command('unbind @D')
- send_command('unbind @F')
- send_command('unbind @H')
- send_command('unbind @K')
- send_command('unbind @P')
- send_command('unbind @Q')
- send_command('unbind @S')
- send_command('unbind @V')
- -- Unbind GEO Geocolure Spells --
- send_command('unbind !@1')
- send_command('unbind !@2')
- send_command('unbind !@A')
- send_command('unbind !@D')
- send_command('unbind !@F')
- send_command('unbind !@H')
- send_command('unbind !@K')
- send_command('unbind !@P')
- send_command('unbind !@Q')
- send_command('unbind !@S')
- send_command('unbind !@V')
- -- Unbind GEO Entrust Spells --
- send_command('unbind ^@1')
- send_command('unbind ^@2')
- send_command('unbind ^@A')
- send_command('unbind ^@D')
- send_command('unbind ^@F')
- send_command('unbind ^@H')
- send_command('unbind ^@K')
- send_command('unbind ^@P')
- send_command('unbind ^@Q')
- send_command('unbind ^@S')
- send_command('unbind ^@V')
- -- Unbind WAR Job Binds --
- send_command('unbind ^P')
- send_command('unbind ^Z')
- -- Unload Weapon Skill Key Binds --
- send_command('unbind F10')
- send_command('unbind F11')
- send_command('unbind F12')
- send_command('unbind Delete')
- end
- -- Gavialis Helm --
- elements = {}
- elements.equip = {head="Gavialis Helm"}
- elements["Ukko's Fury"] = S{"Light","Lightning","Wind"}
- elements.Resolution = S{"Lightning","Wind","Earth"}
- --------------------
- -- Idle/Town Sets --
- --------------------
- sets.Idle = {
- ammo="Staunch Tathlum +1",
- head="Valorous Mask",
- neck="Bathy Choker +1",
- ear1="Infused Earring",
- ear2="Odnowa Earring +1",
- body="Tartarus Platemail",
- hands="Sulev. Gauntlets +2",
- ring1="Moonlight Ring",
- ring2="Moonlight Ring",
- back="Moonlight Cape",
- waist="Flume Belt +1",
- legs="Sulev. Cuisses +2",
- feet="Hermes' Sandals"}
- sets.Idle.Full = {}
- sets.Idle.Full.Ragnarok = set_combine(sets.Idle,{
- main="Ragnarok",
- sub="Utu Grip"})
- sets.Idle.Full.Montante = set_combine(sets.Idle,{
- main="Montante +1",
- sub="Utu Grip"})
- sets.Idle.Full.Chango = set_combine(sets.Idle,{
- main="Chango",
- sub="Utu Grip"})
- sets.Idle.Full.Standard = set_combine(sets.Idle,{})
- sets.Idle.Full.Fencer = set_combine(sets.Idle,{
- sub="Blurred Shield +1"})
- sets.Idle.Full.NINsub = set_combine(sets.Idle,{})
- sets.Idle.Full.DNCsub = set_combine(sets.Idle,{})
- sets.Idle.DT = {}
- sets.Idle.DT.Ragnarok = set_combine(sets.Idle,{
- main="Ragnarok",
- sub="Utu Grip"})
- sets.Idle.DT.Montante = set_combine(sets.Idle,{
- main="Montante +1",
- sub="Utu Grip"})
- sets.Idle.DT.Chango = set_combine(sets.Idle,{
- main="Chango",
- sub="Utu Grip"})
- sets.Idle.DT.Standard = set_combine(sets.Idle,{})
- sets.Idle.DT.Fencer = set_combine(sets.Idle,{
- sub="Blurred Shield +1"})
- sets.Idle.DT.NINsub = set_combine(sets.Idle,{})
- sets.Idle.DT.DNCsub = set_combine(sets.Idle,{})
- sets.Idle.Warp = {}
- sets.Idle.Warp.Ragnarok = set_combine(sets.Idle,{
- main="Ragnarok",
- sub="Utu Grip",
- ring2="Warp Ring"})
- sets.Idle.Warp.Montante = set_combine(sets.Idle,{
- main="Montante +1",
- sub="Utu Grip",
- ring2="Warp Ring"})
- sets.Idle.Warp.Chango = set_combine(sets.Idle,{
- main="Chango",
- sub="Utu Grip",
- ring2="Warp Ring"})
- sets.Idle.Warp.Standard = set_combine(sets.Idle,{
- ring2="Warp Ring"})
- sets.Idle.Warp.Fencer = set_combine(sets.Idle,{
- sub="Blurred Shield +1",
- ring2="Warp Ring"})
- sets.Idle.Warp.NINsub = set_combine(sets.Idle,{
- ring2="Warp Ring"})
- sets.Idle.Warp.DNCsub = set_combine(sets.Idle,{
- ring2="Warp Ring"})
- sets.Twilight = {head="Twilight Helm",body="Twilight Mail"}
- -------------
- -- TP Sets --
- -------------
- -- TP Base Set --
- sets.TP = {
- ammo="Yetshila +1",
- head="Flam. Zucchetto +2",
- neck="Asperity Necklace",
- ear1="Cessance Earring",
- ear2="Brutal Earring",
- Body="Agoge Lorica +3",
- hands="Sulev. Gauntlets +2",
- ring1="Hetairoi Ring",
- ring2="Niqmaddu Ring",
- back=STRDAMantle,
- waist="Ioskeha Belt +1",
- legs="Pumm. Cuisses +3",
- feet="Pumm. Calligae +3"}
- sets.TP.MidACC = set_combine(sets.TP,{})
- sets.TP.HighACC = set_combine(sets.TP.MidACC,{})
- sets.TP.MaxACC = set_combine(sets.TP.HighACC,{})
- -- Ragnarok TP Sets --
- sets.TP.Ragnarok = set_combine(sets.TP,{
- ammo="Ginsen",
- main="Ragnarok",
- sub="Utu Grip",
- neck="Ainia Collar",
- body="Emicho Haubert +1",
- hands="Emi. Gauntlets +1",
- ring1="Flamma Ring",
- legs=OLegs.STP})
- sets.TP.Ragnarok.MidACC = set_combine(sets.TP.Ragnarok,{})
- sets.TP.Ragnarok.HighACC = set_combine(sets.TP.Ragnarok.MidACC,{})
- sets.TP.Ragnarok.MaxACC = set_combine(sets.TP.Ragnarok.HighACC,{})
- -- Ragnarok(SAM Roll) TP Sets --
- sets.TP.Ragnarok.STP = set_combine(sets.TP,{
- main="Ragnarok",
- sub="Utu Grip"})
- sets.TP.Ragnarok.MidACC.STP = set_combine(sets.TP.MidACC,{})
- sets.TP.Ragnarok.HighACC.STP = set_combine(sets.TP.HighACC,{})
- sets.TP.Ragnarok.MaxACC.STP = set_combine(sets.TP.MaxACC,{})
- -- Montante TP Sets --
- sets.TP.Montante = set_combine(sets.TP,{
- main="Montante +1",
- sub="Utu Grip"})
- sets.TP.Montante.MidACC = set_combine(sets.TP.Montante,{})
- sets.TP.Montante.HighACC = set_combine(sets.TP.Montante.MidACC,{})
- sets.TP.Montante.MaxACC = set_combine(sets.TP.Montante.HighACC,{})
- -- Montante(SAM Roll) TP Sets --
- sets.TP.Montante.STP = set_combine(sets.TP,{
- main="Montante +1",
- sub="Utu Grip"})
- sets.TP.Montante.MidACC.STP = set_combine(sets.TP.MidACC,{})
- sets.TP.Montante.HighACC.STP = set_combine(sets.TP.HighACC,{})
- sets.TP.Montante.MaxACC.STP = set_combine(sets.TP.MaxACC,{})
- -- Chango TP Sets --
- sets.TP.Chango = set_combine(sets.TP,{
- main="Chango",
- sub="Utu Grip"})
- sets.TP.Chango.MidACC = set_combine(sets.TP.Chango,{})
- sets.TP.Chango.HighACC = set_combine(sets.TP.Chango.MidACC,{})
- sets.TP.Chango.MaxACC = set_combine(sets.TP.Chango.HighACC,{})
- -- Chango(SAM Roll) TP Sets --
- sets.TP.Chango.STP = set_combine(sets.TP,{
- main="Chango",
- sub="Utu Grip"})
- sets.TP.Chango.MidACC.STP = set_combine(sets.TP.MidACC,{})
- sets.TP.Chango.HighACC.STP = set_combine(sets.TP.HighACC,{})
- sets.TP.Chango.MaxACC.STP = set_combine(sets.TP.MaxACC,{})
- -- Standard TP Sets --
- sets.TP.Standard = set_combine(sets.TP,{})
- sets.TP.Standard.MidACC = set_combine(sets.TP.MidACC,{})
- sets.TP.Standard.HighACC = set_combine(sets.TP.HighACC,{})
- sets.TP.Standard.MaxACC = set_combine(sets.TP.MaxACC,{})
- -- Standard(SAM Roll) TP Sets --
- sets.TP.Standard.STP = set_combine(sets.TP,{})
- sets.TP.Standard.MidACC.STP = set_combine(sets.TP.MidACC,{})
- sets.TP.Standard.HighACC.STP = set_combine(sets.TP.HighACC,{})
- sets.TP.Standard.MaxACC.STP = set_combine(sets.TP.MaxACC,{})
- -- Fencer TP Sets --
- sets.TP.Fencer = set_combine(sets.TP,{
- sub="Blurred Shield +1"})
- sets.TP.Fencer.MidACC = set_combine(sets.TP.Fencer,{})
- sets.TP.Fencer.HighACC = set_combine(sets.TP.Fencer.MidACC,{})
- sets.TP.Fencer.MaxACC = set_combine(sets.TP.Fencer.HighACC,{})
- -- Fencer(SAM Roll) TP Sets --
- sets.TP.Fencer.STP = set_combine(sets.TP,{
- sub="Blurred Shield +1"})
- sets.TP.Fencer.MidACC.STP = set_combine(sets.TP.Fencer.MidACC,{})
- sets.TP.Fencer.HighACC.STP = set_combine(sets.TP.Fencer.HighACC,{})
- sets.TP.Fencer.MaxACC.STP = set_combine(sets.TP.Fencer.MaxACC,{})
- -- NINsub TP Sets --
- sets.TP.NINsub = set_combine(sets.TP,{
- ear1="Suppanomimi",
- hands="Emi. Gauntlets +1"})
- sets.TP.NINsub.MidACC = set_combine(sets.TP.NINsub,{})
- sets.TP.NINsub.HighACC = set_combine(sets.TP.NINsub.MidACC,{})
- sets.TP.NINsub.MaxACC = set_combine(sets.TP.NINsub.HighACC,{})
- -- NINsub(SAM Roll) TP Sets --
- sets.TP.NINsub.STP = set_combine(sets.TP,{
- ear1="Suppanomimi",
- hands="Emi. Gauntlets +1"})
- sets.TP.NINsub.MidACC.STP = set_combine(sets.TP.NINsub.MidACC,{})
- sets.TP.NINsub.HighACC.STP = set_combine(sets.TP.NINsub.HighACC,{})
- sets.TP.NINsub.MaxACC.STP = set_combine(sets.TP.NINsub.MaxACC,{})
- -- DNCsub TP Sets --
- sets.TP.DNCsub = set_combine(sets.TP,{
- ear1="Suppanomimi",
- ear2="Eabani Earring",
- hands="Emi. Gauntlets +1",
- waist="Reiki Yotai"})
- sets.TP.DNCsub.MidACC = set_combine(sets.TP.DNCsub,{})
- sets.TP.DNCsub.HighACC = set_combine(sets.TP.DNCsub.MidACC,{})
- sets.TP.DNCsub.MaxACC = set_combine(sets.TP.DNCsub.HighACC,{})
- -- DNCsub(SAM Roll) TP Sets --
- sets.TP.DNCsub.STP = set_combine(sets.TP,{
- ear1="Suppanomimi",
- ear2="Eabani Earring",
- hands="Emi. Gauntlets +1",
- waist="Reiki Yotai"})
- sets.TP.DNCsub.MidACC.STP = set_combine(sets.TP.DNCsub.MidACC,{})
- sets.TP.DNCsub.HighACC.STP = set_combine(sets.TP.DNCsub.HighACC,{})
- sets.TP.DNCsub.MaxACC.STP = set_combine(sets.TP.DNCsub.MaxACC,{})
- -- Mighty Strikes TP Set --
- sets.TP.MS = {}
- -- Retaliation Set --
- sets.TP.Retaliation = {}
- -----------------------
- -- Damage Taken Sets --
- -----------------------
- -- PDT/MDT Sets --
- sets.PDT = {
- ammo="Staunch Tathlum +1",
- head="Sulevia's Mask +2",
- neck="Loricate Torque +1",
- ear1="Odnowa Earring",
- ear2="Odnowa Earring +1",
- body="Tartarus Platemail",
- hands="Sulev. Gauntlets +2",
- ring1="Moonlight Ring",
- ring2="Moonlight Ring",
- back="Moonlight Cape",
- waist="Tempus Fugit",
- legs="Sulev. Cuisses +2",
- feet="Sulev. Leggings +2"}
- sets.MDT = set_combine(sets.PDT,{})
- -- Hybrid/Kiting Sets --
- sets.TP.Hybrid = set_combine(sets.PDT,{
- ear1="Cessance Earring",
- ear2="Brutal Earring"})
- sets.TP.Hybrid.MidACC = set_combine(sets.TP.Hybrid,{})
- sets.TP.Hybrid.HighACC = set_combine(sets.TP.Hybrid.MidACC,{})
- sets.TP.Hybrid.MaxACC = set_combine(sets.TP.Hybrid.HighACC,{})
- sets.Kiting = set_combine(sets.PDT,{feet="Hermes' Sandals"})
- -----------------------
- -- Weapon Skill Sets --
- -----------------------
- -- Weapon Skill Base Sets --
- sets.WS = {
- ammo="Seeth. Bomblet +1",
- head="Flamma Zucchetto +2",
- neck="Fotia Gorget",
- ear1="Moonshade Earring",
- ear2="Brutal Earring",
- body="Agoge Lorica +3",
- hands="Sulev. Gauntlets +2",
- ring1="Regal Ring",
- ring2="Niqmaddu Ring",
- back=STRDAMantle,
- waist="Fotia Belt",
- legs="Sulev. Cuisses +2",
- feet="Pumm. Calligae +3"}
- sets.WS.MidACC = set_combine(sets.WS,{})
- sets.WS.HighACC = set_combine(sets.WS.MidACC,{})
- sets.WS.MaxACC = set_combine(sets.WS.HighACC,{})
- sets.WS.Argosy = {
- ammo="Seeth. Bomblet +1",
- head="Flam. Zucchetto +2",
- neck="Fotia Gorget",
- ear1="Moonshade Earring",
- ear2="Brutal Earring",
- body="Argosy Hauberk +1",
- hands="Argosy Mufflers +1",
- ring1="Regal Ring",
- ring2="Niqmaddu Ring",
- back=STRDAMantle,
- waist="Fotia Belt",
- legs="Argosy Breeches +1",
- feet="Flam. Gambieras +2"}
- sets.WS.MidACC = set_combine(sets.WS.Argosy,{
- head="Argosy Celata +1",
- feet="Pumm. Calligae +3"})
- sets.WS.HighACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS.MaxACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS.OneHit = {
- ammo="Knobkierrie",
- head="Agoge mask +3",
- neck="Fotia Gorget",
- ear1="Moonshade Earring",
- ear2="Ishvara Earring",
- body="Pumm. Lorica +3",
- hands=OHands.WSD,
- ring1="Regal Ring",
- ring2="Niqmaddu Ring",
- back=STRWSDMantle,
- waist="Fotia Belt",
- legs=OLegs.WSD,
- feet="Sulev. Leggings +2"}
- sets.WS.OneHit.MidACC = set_combine(sets.WS.OneHit,{})
- sets.WS.OneHit.HighACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS.OneHit.MaxACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS.MABWS = {
- ammo="Pemphredo Tathlum",
- head="Jumalik Helm",
- neck="Sanctity Necklace",
- ear1="Friomisi Earring",
- ear2="Crematio Earring",
- body="Found. Breastplate",
- hands="Founder's Gauntlets",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back="Argochampsa Mantle",
- waist="Eschan Stone",
- legs="Eschite Cuisses",
- feet="Founder's Greaves"}
- -- Great Axe Weapon Skill Sets --
- sets.WS.Upheaval = set_combine(sets.WS.OneHit,{
- back=VITWSDMantle})
- sets.WS.Upheaval.MidACC = set_combine(sets.WS.OneHit.MidACC,{
- back=VITWSDMantle})
- sets.WS.Upheaval.HighACC = set_combine(sets.WS.OneHit.HighACC,{
- back=VITWSDMantle})
- sets.WS.Upheaval.MaxACC = set_combine(sets.WS.OneHit.MaxACC,{
- back=VITWSDMantle})
- sets.WS["Ukko's Fury"] = set_combine(sets.WS.Argosy,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS["Ukko's Fury"].MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS["Ukko's Fury"].HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS["Ukko's Fury"].MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- sets.WS["Raging Rush"] = set_combine(sets.WS.Argosy,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS["Raging Rush"].MidACC = set_combine(sets.WS.Argosy.MidACC,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS["Raging Rush"].HighACC = set_combine(sets.WS.Argosy.HighACC,{
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS["Raging Rush"].MaxACC = set_combine(sets.WS.Argosy.MaxACC,{
- hands="Flam. Manopolas +2",
- back=CritMantle})
- sets.WS["Steel Cyclone"] = set_combine(sets.WS.OneHit,{})
- sets.WS["Steel Cyclone"].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS["Steel Cyclone"].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS["Steel Cyclone"].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- sets.WS["King's Justice"] = set_combine(sets.WS.Argosy,{})
- sets.WS["King's Justice"].MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS["King's Justice"].HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS["King's Justice"].MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- sets.WS["Fell Cleave"] = set_combine(sets.WS.OneHit,{})
- sets.WS['Fell Cleave'].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS['Fell Cleave'].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS['Fell Cleave'].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- sets.WS["Full Break"] = set_combine(sets.WS.OneHit,{})
- sets.WS["Full Break"].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS["Full Break"].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS["Full Break"].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- -- Great Sword Weapon Skill Sets --
- sets.WS.Resolution = set_combine(sets.WS.Argosy,{})
- sets.WS.Resolution.MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS.Resolution.HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS.Resolution.MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- sets.WS.Scourge = set_combine(sets.WS.OneHit,{
- back=VITWSDMantle})
- sets.WS.Scourge.MidACC = set_combine(sets.WS.OneHit.MidACC,{
- back=VITWSDMantle})
- sets.WS.Scourge.HighACC = set_combine(sets.WS.OneHit.HighACC,{
- back=VITWSDMantle})
- sets.WS.Scourge.MaxACC = set_combine(sets.WS.OneHit.MaxACC,{
- back=VITWSDMantle})
- sets.WS['Ground Strike'] = set_combine(sets.WS.OneHit,{})
- sets.WS['Ground Strike'].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS['Ground Strike'].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS['Ground Strike'].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- sets.WS.Shockwave = {}
- sets.WS['Herculean Slash'] = set_combine(sets.WS.MABWS,{})
- sets.WS['Herculean Slash'].MidACC = set_combine(sets.WS.MABWS,{})
- sets.WS['Herculean Slash'].HighACC = set_combine(sets.WS.MABWS,{})
- sets.WS['Herculean Slash'].MaxACC = set_combine(sets.WS.MABWS,{})
- -- Sword Weapon Skill Sets --
- sets.WS['Vorpal Blade'] = set_combine(sets.WS.Argosy,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS['Vorpal Blade'].MidACC = set_combine(sets.WS.Argosy.MidACC,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS['Vorpal Blade'].HighACC = set_combine(sets.WS.Argosy.HighACC,{
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS['Vorpal Blade'].MaxACC = set_combine(sets.WS.Argosy.MaxACC,{
- hands="Flam. Manopolas +2",
- back=CritMantle})
- sets.WS['Savage Blade'] = set_combine(sets.WS.OneHit,{})
- sets.WS['Savage Blade'].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS['Savage Blade'].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS['Savage Blade'].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- sets.WS.Requiescat = set_combine(sets.WS,{})
- sets.WS.Requiescat.MidACC = set_combine(sets.WS.MidACC,{})
- sets.WS.Requiescat.HighACC = set_combine(sets.WS.HighACC,{})
- sets.WS.Requiescat.MaxACC = set_combine(sets.WS.MaxACC,{})
- sets.WS['Sanguine Blade'] = set_combine(sets.WS.MABWS,{
- head="Pixie Hairpin +1",
- ring1="Archon Ring"})
- sets.WS['Sanguine Blade'].MidACC = set_combine(sets.WS.MABWS,{
- head="Pixie Hairpin +1",
- ring1="Archon Ring"})
- sets.WS['Sanguine Blade'].HighACC = set_combine(sets.WS.MABWS,{
- head="Pixie Hairpin +1",
- ring1="Archon Ring"})
- sets.WS['Sanguine Blade'].MaxACC = set_combine(sets.WS.MABWS,{
- head="Pixie Hairpin +1",
- ring1="Archon Ring"})
- -- Axe Weapon Skill Sets --
- sets.WS.Rampage = set_combine(sets.WS.Argosy,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS.Rampage.MidACC = set_combine(sets.WS.Argosy.MidACC,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS.Rampage.HighACC = set_combine(sets.WS.Argosy.HighACC,{
- hands="Flam. Manopolas +2",
- back=CritMantle})
- sets.WS.Rampage.MaxACC = set_combine(sets.WS.Argosy.MaxACC,{
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS.Ruinator = set_combine(sets.WS.Argosy,{})
- sets.WS.Ruinator.MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS.Ruinator.HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS.Ruinator.MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- sets.WS.Cloudsplitter = set_combine(sets.WS.MABWS,{})
- sets.WS.Cloudsplitter.MidACC = set_combine(sets.WS.MABWS,{})
- sets.WS.Cloudsplitter.HighACC = set_combine(sets.WS.MABWS,{})
- sets.WS.Cloudsplitter.MaxACC = set_combine(sets.WS.MABWS,{})
- sets.WS['Mistral Axe'] = set_combine(sets.WS.OneHit,{})
- sets.WS['Mistral Axe'].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS['Mistral Axe'].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS['Mistral Axe'].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- sets.WS.Decimation = set_combine(sets.WS.Argosy,{})
- sets.WS.Decimation.MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS.Decimation.HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS.Decimation.MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- -- Dagger Weapon Skill Sets --
- sets.WS.Evisceration = set_combine(sets.WS.Argosy,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS.Evisceration.MidACC = set_combine(sets.WS.Argosy.MidACC,{
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS.Evisceration.HighACC = set_combine(sets.WS.Argosy.HighACC,{
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS.Evisceration.MaxACC = set_combine(sets.WS.Argosy.MaxACC,{
- hands="Flam. Manopolas +2",
- back=CritMantle})
- -- Club Weapon Skill Sets --
- sets.WS['True Strike'] = set_combine(sets.WS.Argosy,{})
- sets.WS['True Strike'].MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS['True Strike'].HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS['True Strike'].MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- sets.WS.Judgment = set_combine(sets.WS.OneHit,{})
- sets.WS.Judgment.MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS.Judgment.HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS.Judgment.MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- sets.WS['Black Halo'] = set_combine(sets.WS.OneHit,{})
- sets.WS['Black Halo'].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS['Black Halo'].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS['Black Halo'].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- sets.WS['Hexa Strike'] = set_combine(sets.WS.Argosy,{
- ammo="Yetshila +1",
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS['Hexa Strike'].MidACC = set_combine(sets.WS.Argosy.MidACC,{
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS['Hexa Strike'].HighACC = set_combine(sets.WS.Argosy.HighACC,{
- hands="Flam. Manopolas +2",
- ring1="Begrudging Ring",
- back=CritMantle})
- sets.WS['Hexa Strike'].MaxACC = set_combine(sets.WS.Argosy.MaxACC,{
- hands="Flam. Manopolas +2",
- back=CritMantle})
- -- Polearm Weapon Skill Sets --
- sets.WS['Penta Thrust'] = set_combine(sets.WS.Argosy,{})
- sets.WS['Penta Thrust'].MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS['Penta Thrust'].HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS['Penta Thrust'].MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- sets.WS.StarDiver = set_combine(sets.WS.Argosy,{})
- sets.WS.StarDiver.MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS.StarDiver.HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS.StarDiver.MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- sets.WS['Sonic Thrust'] = set_combine(sets.WS.Argosy,{})
- sets.WS['Sonic Thrust'].MidACC = set_combine(sets.WS.Argosy.MidACC,{})
- sets.WS['Sonic Thrust'].HighACC = set_combine(sets.WS.Argosy.HighACC,{})
- sets.WS['Sonic Thrust'].MaxACC = set_combine(sets.WS.Argosy.MaxACC,{})
- sets.WS['Wheeling Thrust'] = set_combine(sets.WS.OneHit,{})
- sets.WS['Wheeling Thrust'].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS['Wheeling Thrust'].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS['Wheeling Thrust'].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- -- Staff Weapon Skill Sets --
- sets.WS.Retribution = set_combine(sets.WS.OneHit,{})
- sets.WS.Retribution.MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS.Retribution.HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS.Retribution.MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- sets.WS['Full Swing'] = set_combine(sets.WS.OneHit,{})
- sets.WS['Full Swing'].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
- sets.WS['Full Swing'].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
- sets.WS['Full Swing'].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
- -- Mighty Strikes WS Set --
- sets.MS_WS = {
- ammo="Yetshila +1",
- feet="Boii Calligae +1"}
- ----------------------
- -- Job Ability Sets --
- ----------------------
- sets.JA = {}
- sets.JA.Berserk = {body="Pumm. Lorica +3",feet="Agoge Calligae +3"}
- sets.JA.Aggressor = {head="Pumm. Mask +1",body="Agoge Lorica +3"}
- sets.JA["Blood Rage"] = {body="Boii Lorica +1"}
- sets.JA.Warcry = {head="Agoge mask +3"}
- sets.JA.Tomahawk = {ammo="Thr. Tomahawk",feet="Agoge Calligae +3"}
- sets.JA["Mighty Strikes"] = {hands="Agoge Mufflers +1"}
- -- Waltz Set --
- sets.Waltz = {}
- --------------------
- -- Pre-Cast Sets --
- --------------------
- sets.Precast = {
- ammo="Impatiens",
- neck="Orunmila's Torque",
- ear1="Loquac. Earring",
- ear2="Etiolation Earring",
- body="Odyss. Chestplate",
- hands="Leyline Gloves",
- ring1="Lebeche Ring",
- waist="Flume Belt +1",
- legs="Eschite Cuisses"}
- sets.Precast.FastCast = set_combine(sets.Precast,{})
- -------------------
- -- Mid-Cast Sets --
- -------------------
- sets.Midcast = {}
- sets.Midcast.Haste = set_combine(sets.PDT,{})
- end
- ----------------
- -- Pre-Target --
- ----------------
- function pretarget(spell,action)
- if spell.action_type == 'Magic' and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
- cancel_spell()
- send_command('input /item "Echo Drops" <me>')
- elseif spell.english == "Berserk" and buffactive.Berserk then -- Change Berserk To Aggressor If Berserk Is On --
- cancel_spell()
- send_command('Aggressor')
- elseif spell.english == "Seigan" and buffactive.Seigan then -- Change Seigan To Third Eye If Seigan Is On --
- cancel_spell()
- send_command('ThirdEye')
- elseif spell.english == "Meditate" and player.tp > 2900 then -- Cancel Meditate If TP Is Above 2900 --
- cancel_spell()
- add_to_chat(123, spell.name .. ' Canceled: ['..player.tp..' TP]')
- elseif spell.type == 'WeaponSkill' and player.status == 'Engaged' then
- if spell.english ~= 'Bora Axe' and spell.name ~= 'Mistral Axe' and spell.target.distance > target_distance then -- Cancel WS If You Are Out Of Range --
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Out of Range]')
- return
- end
- end
- end
- --------------
- -- Pre-Cast --
- --------------
- function precast(spell,action)
- if spell.type == "WeaponSkill" then
- if player.status ~= 'Engaged' then
- return
- else
- equipSet = sets.WS
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if elements[spell.name] and elements[spell.name]:contains(world.day_element) then
- equipSet = set_combine(equipSet,elements.equip)
- end
- if buffactive["Mighty Strikes"] then -- Equip MS_WS Set When You Have Mighty Strikes On --
- equipSet = set_combine(equipSet,sets.MS_WS)
- end
- if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
- equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
- end
- if player.tp > 2750 or (player.equipment.main == 'Chango' and player.tp > 2250) then
- equipSet = set_combine(equipSet,{ear1="Zwazo Earring"}) -- 3000 TP: Equip Zwazo Earring --
- end
- if world.time <= (7*60) or world.time >= (17*60) then
- equipSet = set_combine(equipSet,{ear2="Lugra Earring +1"}) -- Dusk til Dawn: Equip Lugra Earring +1 --
- end
- equip(equipSet)
- end
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- elseif spell.type:endswith('Magic') or spell.type == "Ninjutsu" or spell.type == "Trust" then
- if spell.english == 'Utsusemi: Ni' then
- if buffactive['Copy Image (3)'] then
- cancel_spell()
- add_to_chat(123, spell.name .. ' Canceled: [3 Images]')
- return
- else
- equip(sets.Precast.FastCast)
- end
- else
- equip(sets.Precast.FastCast)
- end
- elseif spell.type == "Waltz" then
- equip(sets.Waltz)
- elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- if Twilight == 'Twilight' then
- equip(sets.Twilight)
- end
- end
- --------------
- -- Mid-Cast --
- --------------
- function midcast(spell,action)
- if spell.action_type == 'Magic' then
- if spell.english:startswith('Utsusemi') then
- if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)'] or buffactive['Copy Image (3)']) then -- Cancel Copy Image 1, 2 & 3 For Utsusemi: Ichi --
- send_command('@wait 1.7;cancel Copy Image*')
- end
- equip(sets.Midcast.Haste)
- elseif spell.english == 'Monomi: Ichi' then -- Cancel Sneak --
- if buffactive['Sneak'] then
- send_command('@wait 1.7;cancel sneak')
- end
- equip(sets.Midcast.Haste)
- else
- equip(sets.Midcast.Haste)
- end
- end
- end
- ----------------
- -- After-Cast --
- ----------------
- function aftercast(spell,action)
- if not spell.interrupted then
- if spell.type == "WeaponSkill" then
- send_command('wait 0.2;gs c TP')
- elseif spell.english == "Blood Rage" then -- Blood Rage Timer/Countdown --
- timer_blood_rage()
- send_command('wait 50;input /echo '..spell.name..': [WEARING OFF IN 10 SEC.];wait 10;input /echo '..spell.name..': [OFF]')
- elseif spell.english == "Tomahawk" then -- Tomahawk Timer/Countdown --
- timer_tomahawk()
- send_command('wait 80;input /echo '..spell.name..': [WEARING OFF IN 10 SEC.];wait 10;timers delete "Tomahawk";input /echo '..spell.name..': [OFF]')
- end
- end
- status_change(player.status)
- end
- -------------------
- -- Status Change --
- -------------------
- function status_change(new,old)
- if Armor == 'PDT' or buffactive.Terror or buffactive.Stun or buffactive.Petrification or buffactive.Sleep then
- equip(sets.PDT)
- elseif Armor == 'MDT' then
- equip(sets.MDT)
- elseif Armor == 'Kiting' then
- equip(sets.Kiting)
- elseif new == 'Engaged' then
- equipSet = sets.TP
- if Armor == 'Hybrid' and equipSet["Hybrid"] then
- equipSet = equipSet["Hybrid"]
- end
- if equipSet[WeaponArray[WeaponIndex]] then
- equipSet = equipSet[WeaponArray[WeaponIndex]]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if buffactive["Samurai Roll"] and equipSet["STP"] and Samurai_Roll == 'ON' then
- equipSet = equipSet["STP"]
- end
- if buffactive["Mighty Strikes"] then -- Mighty Strikes TP Set --
- equipSet = set_combine(equipSet,sets.TP.MS)
- end
- if buffactive.Retaliation and Retaliation == 'ON' then -- Use Retaliation Toggle For Retaliation TP Set --
- equipSet = set_combine(equipSet,sets.TP.Retaliation)
- end
- equip(equipSet)
- else
- equipSet = sets.Idle
- if equipSet[IdleArray[IdleIndex]] then
- equipSet = equipSet[IdleArray[IdleIndex]]
- end
- if equipSet[WeaponArray[WeaponIndex]] then
- equipSet = equipSet[WeaponArray[WeaponIndex]]
- end
- if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
- equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
- end
- equip(equipSet)
- end
- if Twilight == 'Twilight' then
- equip(sets.Twilight)
- end
- end
- -----------------
- -- Buff Change --
- -----------------
- function buff_change(buff,gain,loss)
- buff = string.lower(buff)
- if gain then
- add_to_chat(158,'--- Gained: ['..buff..']')
- elseif loss then
- add_to_chat(123,'--- Lost: ['..buff..']')
- end
- if not midaction() then
- status_change(player.status)
- end
- end
- -------------------------------------------------------------------------------------
- -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
- -------------------------------------------------------------------------------------
- function self_command(command)
- if command == 'acc' then -- Accuracy Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- add_to_chat(155,'Accuracy Level: ' .. AccArray[AccIndex])
- status_change(player.status)
- elseif command == 'weapon' then -- Main Weapon Toggle --
- WeaponIndex = (WeaponIndex % #WeaponArray) + 1
- add_to_chat(155,'Main Weapon: '..WeaponArray[WeaponIndex])
- status_change(player.status)
- elseif command == 'update' then -- Auto Update Gear Toggle --
- status_change(player.status)
- add_to_chat(155,'Auto Update Gear')
- elseif command == 'hybrid' then -- Hybrid Toggle --
- if Armor == 'Hybrid' then
- Armor = 'None'
- add_to_chat(123,'Hybrid Set: [Unlocked]')
- else
- Armor = 'Hybrid'
- add_to_chat(158,'Hybrid Set: '..AccArray[AccIndex])
- end
- status_change(player.status)
- elseif command == 'pdt' then -- PDT Toggle --
- if Armor == 'PDT' then
- Armor = 'None'
- add_to_chat(123,'PDT Set: [Unlocked]')
- else
- Armor = 'PDT'
- add_to_chat(158,'PDT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'mdt' then -- MDT Toggle --
- if Armor == 'MDT' then
- Armor = 'None'
- add_to_chat(123,'MDT Set: [Unlocked]')
- else
- Armor = 'MDT'
- add_to_chat(158,'MDT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'kiting' then -- Kiting Toggle --
- if Armor == 'Kiting' then
- Armor = 'None'
- add_to_chat(123,'Kiting Set: [Unlocked]')
- else
- Armor = 'Kiting'
- add_to_chat(158,'Kiting Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'retaliation' then -- Retaliation Toggle --
- if Retaliation == 'ON' then
- Retaliation = 'OFF'
- add_to_chat(123,'Retaliation Set: [Unlocked]')
- else
- Retaliation = 'ON'
- add_to_chat(158,'Retaliation Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'sam' then -- SAM Roll Toggle --
- if Samurai_Roll == 'ON' then
- Samurai_Roll = 'OFF'
- add_to_chat(123,'SAM Roll: [OFF]')
- else
- Samurai_Roll = 'ON'
- add_to_chat(158,'SAM Roll: [ON]')
- end
- status_change(player.status)
- elseif command == 'twilight' then -- Twilight Toggle --
- if Twilight == 'Twilight' then
- Twilight = 'None'
- add_to_chat(123,'Twilight Set: [Unlocked]')
- else
- Twilight = 'Twilight'
- add_to_chat(158,'Twilight Set: [locked]')
- end
- status_change(player.status)
- elseif command == 'distance' then -- Distance Toggle --
- if player.target.distance then
- target_distance = math.floor(player.target.distance*10)/10
- add_to_chat(155,'Distance: '..target_distance)
- else
- add_to_chat(123,'No Target Selected')
- end
- elseif command == 'idle' then -- Idle Toggle --
- IdleIndex = (IdleIndex % #IdleArray) + 1
- add_to_chat(155,'Idle Set: ' .. IdleArray[IdleIndex])
- status_change(player.status)
- elseif command == 'TP' then
- add_to_chat(155,'TP Return: ['..tostring(player.tp)..']')
- elseif command:match('^SC%d$') then
- send_command('//' .. sc_map[command])
- end
- end
- -----------
- -- Misc. --
- -----------
- function timer_blood_rage()
- local duration = 60
- send_command('timers create "Blood Rage" '..tostring(duration)..' down')
- end
- function timer_tomahawk()
- local duration = 90
- send_command('timers create "Tomahawk" '..tostring(duration)..' down')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement