Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -- Setup functions for this job. Generally should not be modified.
- -- Modified JUL 01 2018
- -------------------------------------------------------------------------------------------------------------------
- --[[
- Custom commands:
- Shorthand versions for each strategem type that uses the version appropriate for
- the current Arts.
- Light Arts Dark Arts
- gs c scholar light Light Arts/Addendum
- gs c scholar dark Dark Arts/Addendum
- gs c scholar cost Penury Parsimony
- gs c scholar speed Celerity Alacrity
- gs c scholar aoe Accession Manifestation
- gs c scholar power Rapture Ebullience
- gs c scholar duration Perpetuance
- gs c scholar accuracy Altruism Focalization
- gs c scholar enmity Tranquility Equanimity
- gs c scholar skillchain Immanence
- gs c scholar addendum Addendum: White Addendum: Black
- --]]
- -- Initialization function for this job file.
- function get_sets()
- mote_include_version = 2
- -- Load and initialize the include file.
- include('Mote-Include.lua')
- end
- -- Setup vars that are user-independent. state.Buff vars initialized here will automatically be tracked.
- function job_setup()
- state.Buff['Sublimation: Activated'] = buffactive['Sublimation: Activated'] or false
- state.Buff['Aurorastorm'] = buffactive['Aurorastorm'] or false
- state.Buff['Reive Mark'] = buffactive['Reive Mark'] or false
- info.addendumNukes = S{"Stone IV", "Water IV", "Aero IV", "Fire IV", "Blizzard IV", "Thunder IV",
- "Stone V", "Water V", "Aero V", "Fire V", "Blizzard V", "Thunder V"}
- update_active_strategems()
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User setup functions for this job. Recommend that these be overridden in a sidecar file.
- -------------------------------------------------------------------------------------------------------------------
- -- Setup vars that are user-dependent. Can override this function in a sidecar file.
- function user_setup()
- state.MagicBurst = M(false, 'Burst')
- state.Skillchain = M(false, 'Chainbound')
- state.CastingMode:options('Normal', 'Resistant')
- state.IdleMode:options('Normal', 'PDT', 'Stun')
- state.OffenseMode:options('None', 'Normal')
- -- info.low_nukes = S{"Stone", "Water", "Aero", "Fire", "Blizzard", "Thunder",
- -- "Stone II", "Water II", "Aero II", "Fire II", "Blizzard II", "Thunder II",
- -- "Stonega", "Waterga", "Aeroga", "Firaga", "Blizzaga", "Thundaga"}
- -- info.high_nukes = S{"Stonega II", "Waterga II", "Aeroga II",
- -- "Stone III", "Water III", "Aero III", "Fire III", "Blizzard III", "Thunder III",
- -- "Stone IV", "Water IV", "Aero IV", "Fire IV", "Blizzard IV", "Thunder IV",
- -- "Stone V", "Water V", "Aero V", "Fire V", "Blizzard V", "Thunder V"}
- select_default_macro_book()
- -- Gear Definitions
- gear.DarkRing = {name="Dark Ring"}
- gear.Reive = {name="Ygnas's Resolve +1"}
- gear.JPcape = {name="Mecistopins Mantle"}
- gear.HasteBelt = {name="Witful Belt"}
- -- Artifact set
- -- Artifact Head has MAB, M.Acc, aug: sublimation
- gear.AFHead = {name="Academic's Mortarboard +1"}
- -- Artifact Body has aug: dark arts
- gear.AFBody = {name="Academic's Gown +1"}
- -- Artifact Hands have fast cast, conserve mp
- gear.AFHands = {name="Academic's Bracers +1"}
- -- Artifact Legs have aug: light arts
- gear.AFLegs = {name="Academic's Pants +1"}
- -- Artifact Feet have grimoire: fast cast
- gear.AFFeet = {name="Academic's Loafers +1"}
- -- Relic set
- -- Relic Head has grimoire: fast cast, aug: altruism, focalization
- gear.RHead = {name="Pedagogy Mortarboard +1"}
- -- Relic Body has aug: sublimation, enlightenment
- gear.RBody = {name="Pedagogy Gown +1"}
- -- Relic Hands have aug: tranquility, equanamity
- gear.RHands = {name="Pedagogy Bracers +2"}
- -- Relic Legs have aug: tabula rasa
- gear.RLegs = {name="Pedagogy Pants +1"}
- -- Relic Feet have fast cast, aug: stormsurge, weather: celerity, alacrity
- gear.RFeet = {name="Pedagogy Loafers +2"}
- -- Empyrean set
- -- Empyrean set has a unique set bonus which applies with as little as 2 pieces.
- -- This entire set should be acquired and +2.
- -- Empyrean Head is for regen potency, aug: rapture, ebullience
- gear.EmpHead = {name="Arbatel Bonnet +1"}
- -- Empyrean Body is for aug: addendum white/black
- gear.EmpBody = {name="Arbatel Gown +1"}
- -- Empyrean Hands are for aug: perpetuance, immanence
- gear.EmpHands = {name="Arbatel Bracers +1"}
- -- Empyrean Legs are for grimoire: M.Acc, aug: penury, parsimony
- gear.EmpLegs = {name="Arbatel Pants +1"}
- -- Empyrean Feet are for aug: klimaform
- gear.EmpFeet = {name="Arbatel Loafers +1"}
- -- Gendewitha Set
- -- This entire set should be acquired and aug for DT, either NQ or +1
- -- Gendewitha head is for DT, Cure potency
- -- Best aug is cure potency
- gear.GHead = {name="Gendewitha Caubeen +1"}
- -- Gendewitha body is for DT
- gear.GBody = {name="Gendewitha Bliaut +1"}
- -- Gendewitha hands is for DT, Precast fast cast, Midcast recast
- gear.GHands = {name="Gendewitha Gages +1"}
- -- Gendewitha legs is for DT, Precast song cast
- gear.GLegs = {name="Gendewitha Spats +1"}
- -- Gendewitha feet is for DT, cursna
- gear.GFeet = {name="Gendewitha Galoshes +1"}
- -- Hagondes Set
- -- Hagondes head is for MAB
- gear.HagHead = {name="Hagondes Hat +1"}
- -- Hagondes body is for MAB, refresh
- gear.HagBody = {name="Hagondes Coat +1"}
- -- Hagondes hands is for M.Acc
- gear.HagHands = {name="Hagondes Cuffs +1"}
- -- Hagondes legs is for MAB, M.Dmg
- gear.HagLegs = {name="Hagondes Pants +1"}
- -- Hagondes feet is for Avatar: MAB
- gear.HagFeet = {name="Hagondes Sabots +1"}
- -- Telchine set
- -- Many augs are available for this set, multiple sets are an option
- -- This set assumes max Fast Cast and Enhancing duration augs on all pieces
- -- Telchine head is for M.Acc
- gear.THeadEnh = {name="Telchine Cap", augments={'Enh. Mag. eff. dur. +10'}}
- -- Telchine body is for Enhancing skill+12, Regen duration +12
- gear.TBodyEnh = {name="Telchine Chasuble", augments={'Enh. Mag. eff. dur. +10'}}
- -- Telchine hands is for cure potency
- gear.THandsEnh = {name="Telchine Gloves", augments={'Enh. Mag. eff. dur. +10'}}
- -- Telchine legs is for MAB+15, DA+3
- gear.TLegsEnh = {name="Telchine Braconi", augments={'Enh. Mag. eff. dur. +10'}}
- -- Telchine feet is for precast song cast
- gear.TFeetEnh = {name="Telchine Pigaches", augments={'Enh. Mag. eff. dur. +10'}}
- -- Helios set
- -- Many augs are available for this set, multiple sets are an option
- -- Helios head is for M.acc, MAB, conserve mp
- gear.HelHead = {name="Helios Band"}
- -- Helios body is for Acc, M.Acc, fast cast
- gear.HelBody = {name="Helios Jacket"}
- -- Helios hands is for MAB, enm-
- gear.HelHands = {name="Helios Gloves"}
- -- Helios legs is for Avatar: M.Acc, BP dmg
- gear.HelLegs = {name="Helios Spats"}
- -- Helios feet is for M.Acc, enm-
- gear.HelFeet = {name="Helios Boots"}
- -- Vanya set
- -- Vanya head is for conserve mp, cure pot, mdt-
- gear.VHead = {name="Vanya Hood"}
- -- Vanya body is for m.acc, divine skill, enfeebling skill, dt-
- gear.VBody = {name="Vanya Robe"}
- -- Vanya hands is for singing skill
- gear.VHands = {name="Vanya Cuffs"}
- -- Vanya legs is for m.acc, conserve mp
- gear.VLegs = {name="Vanya Slops"}
- -- Vanya feet is for healing skill, cure pot, cursna
- gear.VFeet = {name="Vanya Clogs"}
- -- Psycloth set
- -- Psycloth head is for
- gear.PsyHead = {name="Psycloth Tiara"}
- -- Psycloth body is for
- gear.PsyBody = {name="Psycloth Vest"}
- -- Psycloth hands is for macc, mab, ele skill, avatar: macc
- gear.PsyHands = {name="Psycloth Manillas"}
- -- Psycloth legs is for
- gear.PsyLegs = {name="Psycloth Lappas"}
- -- Psycloth feet is for
- gear.PsyFeet = {name="Psycloth Boots"}
- -- Chironic set
- -- Chironic head is for
- gear.ChiHead = {name="Chironic Hat"}
- -- Chironic body is for
- --gear.ChiBody = {name="Chironic Doublet"}
- -- Chironic hands is for
- gear.ChiHands = {name="Chironic Gloves"}
- -- Chironic legs is for macc, enf skill, cure pot, immunobreak
- gear.ChiLegs = {name="Chironic Hose"}
- -- Chironic feet is for atk, mab, div skill, enm-, pdt
- gear.ChiFeet = {name="Chironic Slippers"}
- -- Merlinic set
- -- Merlinic head is for macc, mab, fc
- gear.MerHead = {name="Merlinic Hood"}
- -- Merlinic body is for
- --gear.MerBody = {name="Merlinic Jubbah"}
- -- Merlinic hands is for avatar: atk, mab, enm+, bpdmg
- gear.MerHands = {name="Merlinic Dastanas"}
- -- Merlinic legs is for macc, mdmg, mab, enm-
- gear.MerLegs = {name="Merlinic Shalwar"}
- -- Merlinic feet is for
- gear.MerFeet = {name="Merlinic Crackows"}
- -- Kaykaus set
- -- Kaykaus head is for m.acc, healing skill, cure pot, mdt
- gear.KHead = {name="Kaykaus Mitra"}
- -- Kaykaus body is for acc, m.acc, refresh, cure potII
- gear.KBody = {name="Kaykaus Bliaut"}
- -- Kaykaus hands is for m.acc, enfeebling skill, enm-, cure pot
- gear.KHands = {name="Kaykaus Cuffs"}
- -- Kaykaus legs is for m.atk, divine skill, fc, cure pot
- gear.KLegs = {name="Kaykaus Tights"}
- -- Kaykaus feet is for enhancing skill, enm-, conserve mp, cure pot
- gear.KFeet = {name="Kaykaus Boots"}
- -- Jhakri set
- -- Jhakri head is for
- gear.JhaHead = {name="Jhakri Coronal"}
- -- Jhakri body is for
- gear.JhaBody = {name="Jhakri Robe"}
- -- Jhakri hands is for
- gear.JhaHands = {name="Jhakri Cuffs"}
- -- Jhakri legs is for
- gear.JhaLegs = {name="Jhakri Slops"}
- -- Jhakri feet is for
- gear.JhaFeet = {name="Jhakri Pigaches"}
- -- Additional local binds
- -- F10, F11, F12 are occupied by default as follows:
- -- f10 reset DefenseMode
- -- ^f10 DefenseMode Physical
- -- !f10 DefenseMode Magical
- -- f11 toggle CP
- -- ^f11 toggle Kiting
- -- f11 EquipStop
- -- f12 update user
- -- ^f12 IdleMode
- send_command('bind f9 gs c cycle CastingMode')
- send_command('bind ^f9 gs c toggle MagicBurst')
- send_command('bind !f9 gs c toggle Skillchain')
- send_command('bind ^` input /ma "Stun" <t>')
- end
- function user_unload()
- send_command('unbind ^`')
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- --------------------------------------
- -- Special sets (required by rules)
- --------------------------------------
- sets.Kiting = {feet="Herald's Gaiters"}
- sets.CP = {back=gear.JPcape}
- -- vm0d's Custom Sets
- -- Sets to augment the Idle set
- sets.latent_refresh = {waist="Fucho-no-obi"}
- sets.DayRefresh = {head="Befouled Crown",body=gear.GBody,legs="Assiduity Pants +1",feet="Serpentes Sabots"}
- sets.NightRefresh = {head="Befouled Crown",body=gear.GBody,legs="Assiduity Pants +1",hands="Serpentes Cuffs"}
- sets.ExtraRegen = {neck="Sanctity Necklace",ring1="Sheltered Ring",ring2="Paguroidea Ring"}
- sets.ExtraRefresh = {head="Befouled Crown",body=gear.GBody,legs="Assiduity Pants +1"}
- sets.SelfRefresh = {back="Grapevine Cape",waist="Gishdubar Sash"}
- sets.Sanction = {ring1="Balrahn's Ring"}
- sets.Roll = {ring1="Roller's Ring"}
- sets.poison = {back="Taster's Cape"}
- sets.Aries = {back="Aries Mantle"}
- sets.ProSh = {ring1="Sheltered Ring"}
- sets.ObiCure = {back="Twilight Cape",waist="Hachirin-no-Obi"}
- -- Sets that augment various sets
- --sets.GrimFC_Head = {head=gear.RHead}
- --sets.GrimFC_Feet = {feet=gear.AFFeet}
- sets.Burst = {neck="Mizukage-no-Kubikazari",hands="Amalric Gages +1"}
- -- prefer telchine for duration
- --sets.LAenh = {legs=gear.AFLegs}
- --sets.LowMP = {body="Seidr Cotehardie",neck="Sanctity Necklace"}
- sets.Moonshade = {ear2="Moonshade Earring"}
- -- Buff sets: Gear that needs to be worn to enhance an active player buff.
- sets.buff['Ebullience'] = {head=gear.EmpHead}
- sets.buff['Rapture'] = {head=gear.EmpHead}
- sets.buff['Perpetuance'] = {hands=gear.EmpHands}
- -- Empyrean hands provide SC dmg bonus
- sets.buff['Immanence'] = {hands=EmpHands}
- sets.buff['Penury'] = {legs=gear.EmpLegs}
- sets.buff['Parsimony'] = {legs=gear.EmpLegs}
- sets.buff['Celerity'] = {feet=gear.RFeet}
- sets.buff['Alacrity'] = {feet=gear.RFeet}
- sets.buff['Klimaform'] = {feet=gear.EmpFeet}
- sets.buff.FullSublimation = {head=gear.AFHead,ear2="Savant's Earring",body=gear.RBody}
- sets.buff.PDTSublimation = {ear2="Savant's Earring"}
- -- perfect set includes chatoyant, at the expense of losing tp
- sets.buff['Reive Mark'] = {neck=gear.Reive}
- --------------------------------------
- -- Precast sets
- --------------------------------------
- -- Precast sets to enhance JAs
- sets.precast.JA['Tabula Rasa'] = {legs=gear.RLegs}
- -- Fast cast sets for spells
- -- Relic head and Artifact feet reduce casting time if an arts effect is active and Celerity/Alacrity/Accession/Manifestation are not active
- sets.precast.FC = {ammo="Impatiens",
- head=gear.VHead,neck="Orunmila's Torque",ear1="Enchanter Earring +1",ear2="Loquacious Earring",
- body="Anhur Robe",hands=gear.GHands,ring1="Kishar Ring",ring2="Veneficium Ring",
- back="Perimede Cape",waist=gear.HasteBelt,legs=gear.TLegsEnh,feet=gear.RFeet}
- sets.precast['Enhancing Magic'] = set_combine(sets.precast.FC, {waist="Siegel Sash"})
- sets.precast['Elemental Magic'] = set_combine(sets.precast.FC, {ear1="Barkarole earring"})
- sets.precast.Stun = set_combine(sets.precast.FC, {})
- sets.precast.Impact = set_combine(sets.precast.FC['Elemental Magic'], {head=empty,body="Twilight Cloak"})
- sets.precast.Meteor = set_combine(sets.precast.FC['Elemental Magic'], {body="Onca Suit",hands=empty,legs=empty,feet=empty})
- -- Weaponskill sets
- -- Myrkr: 20% MP recovered @ 1000TP, 40% @ 2000TP, 60% @ 3000TP
- -- MP returned is based on current MP, use MP+ gear
- -- any IL119 armor is fine and add any MP+ accessories you carry
- sets.precast.WS['Myrkr'] = {ammo="Incantor Stone",
- head=gear.THeadEnh,neck="Fotia Gorget",ear1="Andoaa Earring",ear2="Loquacious Earring",
- body=gear.TBodyEnh,hands=gear.THandsEnh,ring1="Metamorph Ring +1",ring2="Zodiac Ring",
- back="Twilight Cape",waist="Fotia Belt",legs=gear.TLegsEnh,feet=gear.TFeetEnh}
- --------------------------------------
- -- Midcast Sets
- --------------------------------------
- -- Recast
- -- set for fast recast, used by default for spells without a defined set and spells mapped to "no skill"
- -- Relic head and Artifact feet reduce recast time if an arts effect is active and Celerity/Alacrity/Accession/Manifestation are not active
- sets.midcast.FastRecast = {ammo="Incantor Stone",
- head=gear.VHead,neck="Orunmila's Torque",ear1="Enchanter Earring +1",ear2="Loquacious Earring",
- body="Shango Robe",hands=gear.THandsEnh,ring1="Kishar Ring",ring2="Prolix Ring",
- back="Lugh's Cape",waist=gear.HasteBelt,legs=gear.TLegsEnh,feet=gear.RFeet}
- -- Healing Magic
- -- achieve 50% potency without main, back, waist for weather equipment
- sets.midcast.Cure = set_combine(sets.midcast.FastRecast, {
- head=gear.GHead,neck="Incanter's Torque",
- body=gear.GBody,hands=gear.THandsEnh,ring1="Sirona's Ring",ring2="Haoma's Ring",
- back="Lugh's Cape",waist=gear.HasteBelt,legs=gear.ChiLegs,feet="Skaoi Boots"})
- sets.midcast.Cursna = set_combine(sets.midcast.FastRecast, {ring2="Haoma's Ring",back="Oretania's Cape +1",feet=gear.GFeet})
- -- Enhancing Magic
- -- SCH base skill 350. Active Light Arts skill 420.
- -- base set with only enhancing duration
- sets.midcast['Enhancing Magic'] = set_combine(sets.midcast.FastRecast, {main="Gada",sub="Chanter's Shield",
- head=gear.THeadEnh,body=gear.TBodyEnh,hands=gear.THandsEnh,legs=gear.TLegsEnh,feet=gear.TFeetEnh})
- -- SCH base skill 350. base MND ~75.
- -- If ((Enhancing Magic Skill ÷ 3) + MND) ≥ 130 [base sch stats: 350/3 + 75 = 191 and 191 > 130],
- -- then (Enhancing Magic Skill + 3×MND - 190) = Stoneskin strength [base sch stats: (350 + 3x75 - 190) = 385 Stoneskin strength]
- -- Stoneskin caps at 350 HP absorbed, therefore SCH need only use Stoneskin enhancing gear.
- sets.midcast.Stoneskin = set_combine(sets.midcast['Enhancing Magic'], {ear1="Earthcry Earring",neck="Stone Gorget",waist="Siegel Sash",legs="Haven Hose"})
- -- Aquaveil prevents 2 interruptions at 355+ skill that would be caused by damage.
- -- Aquaveil will not prevent spell interruption from status effects (e.g. Paralyze) or from player movement during casting.
- -- SCH base skill 350. LA skill 420. therefore SCH with 3+ enhancing skill merits need only use Aquaveil enhancing gear.
- sets.midcast['Aquaveil'] = set_combine(sets.midcast['Enhancing Magic'], {head=gear.ChiHead,waist="Emphatikos Rope"})
- -- caps at 500 skill, will require some skill gear even after merits and gifts
- sets.midcast.Embrava = set_combine(sets.midcast['Enhancing Magic'], {ammo="Savant's Treatise",
- neck="Incanter's Torque",ear1="Augmenting Earring",ear2="Andoaa Earring",ring2="Stikini Ring",back="Perimede Cape",waist="Olympus Sash"})
- -- caps at 500 skill, will require some skill gear even after merits and gifts
- sets.midcast.Phalanx = set_combine(sets.midcast['Enhancing Magic'], {ammo="Savant's Treatise",
- neck="Incanter's Torque",ear1="Augmenting Earring",ear2="Andoaa Earring",ring2="Stikini Ring",back="Perimede Cape",waist="Olympus Sash"})
- -- caps at 500 skill, will require some skill gear even after merits and gifts
- sets.midcast.BarElement = set_combine(sets.midcast['Enhancing Magic'], {ammo="Savant's Treatise",
- neck="Incanter's Torque",ear1="Augmenting Earring",ear2="Andoaa Earring",ring2="Stikini Ring",back="Perimede Cape",waist="Olympus Sash"})
- -- caps at 500 skill, will require some skill gear even after merits and gifts
- sets.midcast.BarStatus = set_combine(sets.midcast['Enhancing Magic'], {ammo="Savant's Treatise",
- neck="Incanter's Torque",ear1="Augmenting Earring",ear2="Andoaa Earring",ring2="Stikini Ring",back="Perimede Cape",waist="Olympus Sash"})
- -- Gives single weather effect to the target(s).
- -- Stormsurge effect: Elements add +7 to their respective stat, except Dark which adds +3 to all stats.
- -- If equipped while the storm spell is cast, augmented Relic Feet will give +12/+6 to each stat.
- -- The same boost is received for both T1 and T2 storms.
- sets.midcast.Storm = set_combine(sets.midcast['Enhancing Magic'], {feet=gear.RFeet})
- -- Any potency/duration gear
- sets.midcast.Regen = set_combine(sets.midcast['Enhancing Magic'], {back="Lugh's Cape"})
- sets.midcast.Protect = set_combine(sets.midcast['Enhancing Magic'], {ring2="Sheltered Ring"})
- sets.midcast.Shell = set_combine(sets.midcast['Enhancing Magic'], {ring2="Sheltered Ring"})
- -- Currently, these spells have no augmenting gear, therefore need not be defined individually
- --sets.midcast.Refresh = set_combine(sets.midcast['Enhancing Magic'], {})
- --sets.midcast.Haste = set_combine(sets.midcast['Enhancing Magic'], {})
- --sets.midcast.Flurry = set_combine(sets.midcast['Enhancing Magic'], {})
- --sets.midcast.Adloquium = set_combine(sets.midcast['Enhancing Magic'], {})
- --sets.midcast['Animus Augeo'] = set_combine(sets.midcast['Enhancing Magic'], {})
- --sets.midcast['Animus Minuo'] = set_combine(sets.midcast['Enhancing Magic'], {})
- -- Various Enfeebling Magic
- -- INT, Enfeebling Magic, Magic Accuracy
- -- merlinic hands have no native m.acc, so chironic hands are used instead
- -- merlinic feet have no native m.acc, so skaoi boots are slightly better
- sets.midcast.IntEnfeebles = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Imbodla Necklace",ear1="Gwati Earring",ear2="Barkarole Earring",
- body="Shango Robe",hands=gear.ChiHands,ring1="Kishar Ring",ring2="Metamorph Ring +1",
- back="Lugh's Cape",waist="Ovate Rope",legs=gear.MerLegs,feet="Skaoi Boots"}
- sets.midcast.IntEnfeebles.Resistant = set_combine(sets.midcast.IntEnfeebles, {})
- -- MND, Enfeebling Magic, Magic Accuracy
- -- chironic feet have no native m.acc, so skaoi boots are slightly better
- sets.midcast.MndEnfeebles = {ammo="Hydrocera",
- head=gear.ChiHead,neck="Imbodla Necklace",ear1="Gwati Earring",ear2="Barkarole Earring",
- body="Shango Robe",hands=gear.ChiHands,ring1="Kishar Ring",ring2="Metamorph Ring +1",
- back="Lugh's Cape",waist="Ovate Rope",legs=gear.ChiLegs,feet="Skaoi Boots"}
- sets.midcast.MndEnfeebles.Resistant = set_combine(sets.midcast.MndEnfeebles, {})
- -- Poison II Damage Over Time potency is based on Enfeebling Magic Skill. Effect has no known cap.
- -- Enfeebling Magic, Magic Accuracy
- sets.midcast.Poison = set_combine(sets.midcast.IntEnfeebles, {})
- -- Elemental Debuffs stat reduction and DoT correspond directly to the caster's INT
- -- Caps at 150 INT, 2-3 Ilevel armors will cap this
- -- INT, Magic Accuracy
- sets.midcast.ElementalEnfeeble = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Sanctity Necklace",ear1="Gwati Earring",ear2="Barkarole Earring",
- body=gear.JhaBody,hands=gear.MerHands,ring1="Kishar Ring",ring2="Metamorph Ring +1",
- back="Lugh's Cape",waist="Ovate Rope",legs=gear.MerLegs,feet=gear.MerFeet}
- -- Helix damage is greatly affected by weather.
- -- Accuracy depends on caster's Elemental Magic skills; Damage is based on INT and Magic Attack Bonus
- -- Zodiac Ring will not work with luminohelix or noctohelix; Archon Ring is used for noctohelix instead
- -- JA Modus Veritas does not allow the DoT effect to surpass the 9,999 damage cap.
- sets.midcast.Helix = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Imbodla Necklace",ear1="Friomisi Earring",ear2="Barkarole Earring",
- body=gear.JhaBody,hands=gear.MerHands,ring1="Shiva Ring +1",ring2="Metamorph Ring +1",
- back="Lugh's Cape",waist="Refoccilation Stone",legs=gear.MerLegs,feet=gear.MerFeet}
- sets.midcast['Noctohelix'] = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Imbodla Necklace",ear1="Friomisi Earring",ear2="Barkarole Earring",
- body=gear.JhaBody,hands=gear.MerHands,ring1="Shiva Ring +1",ring2="Archon Ring",
- back="Lugh's Cape",waist="Refoccilation Stone",legs=gear.MerLegs,feet=gear.MerFeet}
- sets.midcast.Helix.Resistant = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Sanctity Necklace",ear1="Strophadic Earring",ear2="Barkarole Earring",
- body=gear.JhaBody,hands=gear.MerHands,ring1="Shiva Ring +1",ring2="Metamorph Ring +1",
- back="Lugh's Cape",waist="Eschan Stone",legs=gear.MerLegs,feet=gear.MerFeet}
- sets.midcast['Dark Magic'] = {ammo="Incantor Stone",
- head=gear.MerHead,neck="Erra Pendant",ear1="Gwati Earring",ear2="Barkarole Earring",
- body="Shango Robe",hands=gear.MerHands,ring1="Sangoma Ring",ring2="Metamorph Ring +1",
- back="Bookworm's Cape",waist="Ovate Rope",legs=gear.MerLegs,feet=gear.MerFeet}
- -- Klimaform is a dark magic buff, but, like the enhancing magic spell Haste, the buff is the same regardless of skill
- -- sets.midcast.Klimaform = set_combine(sets.midcast.FastRecast, {})
- -- Kaustra unresisted duration is approximately 1 + (Dark Magic Skill)/11 ticks (or three times that in seconds)
- -- Base damage depends on the main level (Lv), not on the level difference, dINT is caster's INT vs. target INT and caps at 300
- -- Other multipliers, such as darkness elemental potency and Magic Attack Bonus, are applied on top of the base damage normally
- sets.midcast.Kaustra = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Incanter's Torque",ear1="Friomisi Earring",ear2="Barkarole Earring",
- body="Shango Robe",hands=gear.MerHands,ring1="Shiva Ring +1",ring2="Archon Ring",
- back="Lugh's Cape",waist="Refoccilation Stone",legs=gear.MerLegs,feet=gear.MerFeet}
- -- Drain and Aspir potency is directly associated with dark magic skill
- sets.midcast.Drain = set_combine(sets.midcast.FastRecast, {neck="Erra Pendant",waist="Fucho-no-obi"})
- sets.midcast.Aspir = set_combine(sets.midcast.Drain, {})
- sets.midcast.Stun = set_combine(sets.midcast.FastRecast, {})
- sets.midcast.Stun.Resistant = set_combine(sets.midcast.Stun, {})
- -- Elemental Magic sets
- -- Generic non-MB Sets
- -- MAB|Mdmg>INT>M.acc
- sets.midcast['Elemental Magic'] = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Saevus Pendant +1",ear1="Friomisi Earring",ear2="Barkarole Earring",
- body=gear.EmpBody,hands=gear.MerHands,ring1="Shiva Ring +1",ring2="Metamorph Ring +1",
- back="Lugh's Cape",waist="Refoccilation Stone",legs=gear.MerLegs,feet=gear.MerFeet}
- -- INT>M.acc>Mdmg>MAB
- sets.midcast['Elemental Magic'].Resistant = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Sanctity Necklace",ear1="Strophadic Earring",ear2="Barkarole Earring",
- body=gear.EmpBody,hands=gear.MerHands,ring1="Shiva Ring +1",ring2="Metamorph Ring +1",
- back="Lugh's Cape",waist="Eschan Stone",legs=gear.MerLegs,feet=gear.MerFeet}
- -- Differentiated non-MB Sets
- -- Low-tier nukes, I/II/gaI
- -- benefit more from mdmg than MAB
- --sets.midcast['Elemental Magic'].LowTierNuke = set_combine(sets.midcast['Elemental Magic'], {ammo="Ghastly Tathlum",
- -- ear1="Crematio Earring",waist="Tengu-no-obi"})
- -- Likely not used outside MB, could be the same as MB sets
- --sets.midcast['Elemental Magic'].HighTierNuke = set_combine(sets.midcast['Elemental Magic'], {ammo="Pemphredo Tathlum"})
- --sets.midcast['Elemental Magic'].HighTierNuke.Resistant = set_combine(sets.midcast['Elemental Magic'].Resistant, {ammo="Pemphredo Tathlum"})
- -- Skillchain bonus set, only used with state.Skillchain = 'Chainbound'
- -- Chainbound state lasts for one spell, enable chainbound mode with alt-F9 or /console gs c toggle Skillchain
- -- Macro Format Below (Example: 1st spell for Fragmentation SC):
- -- /ma "Water" <t>
- -- /p SCH Skillchain Start! <wait 1>
- -- /console gs c toggle Skillchain
- --sets.midcast['Elemental Magic'].Chainbound = set_combine(sets.midcast['Elemental Magic'], {
- -- head="Jhakri Coronal +2",hands=gear.EmpHands,ring2="Mujin Band",back="Lugh's Cape",legs="Amalric Slops +1"})
- -- Magic Burst set, only used with state.MagicBurst = 'Burst'
- -- Burst state lasts for one spell, enable burst mode with ctrl-F9 or /console gs c toggle MagicBurst
- -- Macro Format Below (Example: 2nd spell for Fragmentation SC):
- -- /console gs c toggle Skillchain
- -- /ma "Water" <t>
- -- /p MB Fragmentation! <wait 1>
- sets.midcast['Elemental Magic'].Burst = set_combine(sets.midcast['Elemental Magic'], {
- neck="Mizukage-no-Kubikazari",hands="Amalric Gages +1"})
- -- Critical magic exists
- --sets.midcast['Elemental Magic'].HighTierNuke.Critical = set_combine(sets.midcast['Elemental Magic'].HighTierNuke, {
- -- neck="Nefarious Collar +1",ear1="Hecate's Earring",body="Count's Garb",ring1="Locus Ring",waist="Tengu-no-obi"})
- -- Impact: Elemental Magic skill
- -- Debuffs do not decay or get resisted, but the 3 minute duration can be resisted.
- sets.midcast.Impact = {ammo="Savant's Treatise",
- head=empty,neck="Incanter's Torque",ear1="Strophadic Earring",ear2="Barkarole Earring",
- body="Twilight Cloak",hands=gear.MerHands,ring1="Sangoma Ring",ring2="Archon Ring",
- back="Lugh's Cape",waist="Refoccilation Stone",legs=gear.MerLegs,feet=gear.MerFeet}
- -- Meteor damage is non-elemental magic damage and is not affected positively or negatively by any weather/day effects or any damage or accuracy affinity staves.
- -- Unlike other nukes, elemental magic skill contributes directly to Meteor base damage, and the damage is independent of the enemy's INT.
- -- Excluding MDB and MDT effects, each BLM's base damage can be approximated as: (1+MAB/100)*floor(INT + Elemental Magic Skill/6)*3.5
- sets.midcast.Meteor = {ammo="Pemphredo Tathlum",
- head=gear.MerHead,neck="Sanctity Necklace",ear1="Strophadic Earring",ear2="Barkarole Earring",
- body="Onca Suit",hands=empty,ring1="Shiva Ring +1",ring2="Metamorph Ring +1",
- back="Lugh's Cape",waist="Eschan Stone",legs=empty,feet=empty}
- --------------------------------------
- -- Idle/resting/defense sets
- --------------------------------------
- -- body="Anhur Robe"
- -- body=gear.GBody
- sets.idle = {main="Akademos",sub="Enki Strap",ammo="Homiliary",
- head=gear.GHead,neck="Loricate Torque +1",ear1="Ethereal Earring",ear2="Sanare Earring",
- body=gear.GBody,hands=gear.GHands,ring1=gear.DarkRing,ring2="Defending Ring",
- back="Solemnity Cape",waist="Slipor Sash",legs=gear.GLegs,feet="Herald's Gaiters"}
- sets.idle.PDT = set_combine(sets.idle, {})
- sets.idle.Town = set_combine(sets.idle, {})
- sets.idle.Stun = {ammo="Incantor Stone",
- head=gear.VHead,neck="Orunmila's Torque",ear1="Enchanter Earring +1",ear2="Loquacious Earring",
- body="Anhur Robe",hands=gear.GHands,ring1="Prolix Ring",ring2="Defending Ring",
- back="Lugh's Cape",waist=gear.HasteBelt,legs=gear.TLegsEnh,feet=gear.RFeet}
- sets.idle.Weak = set_combine(sets.idle, {})
- -- Defense sets
- sets.defense.PDT = set_combine(sets.idle, {})
- sets.defense.MDT = set_combine(sets.idle, {})
- -- Resting sets
- sets.resting = set_combine(sets.idle, sets.ExtraRefresh)
- --------------------------------------
- -- Engaged sets
- --------------------------------------
- -- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
- -- sets if more refined versions aren't defined.
- -- If you create a set with both offense and defense modes, the offense mode should be first.
- -- EG: sets.engaged.Dagger.Accuracy.Evasion
- -- Normal melee group
- sets.engaged = {
- head=gear.THeadEnh,
- body=gear.TBodyEnh,hands=gear.THandsEnh,
- waist=gear.HasteBelt,legs=gear.TLegsEnh,feet=gear.TFeetEnh}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Run after the general precast() is done.
- function job_post_precast(spell, action, spellMap, eventArgs)
- -- commented out until these pieces are significantly better than the default gear
- -- if spell.action_type == 'Magic' then
- -- if (buffactive['Light Arts'] or buffactive['Dark Arts'] or buffactive['Addendum: White'] or buffactive['Addendum: Black'])
- -- and not (buffactive['Alacrity'] or buffactive['Manifestation'] or buffactive['Celerity'] or buffactive['Accession']) then
- -- if spell.english == 'Impact' then
- -- equip(sets.GrimFC_Feet)
- -- elseif spell.english == 'Meteor' then
- -- equip(sets.GrimFC_Head)
- -- else
- -- equip(sets.GrimFC_Head)
- -- equip(sets.GrimFC_Feet)
- -- end
- -- elseif buffactive['Alacrity'] and (spell.element == world.weather_element or spell_element == world.day_element) then
- -- equip(sets.buff['Alacrity'])
- -- elseif buffactive['Celerity'] and (spell.element == world.weather_element or spell_element == world.day_element) then
- -- equip(sets.buff['Celerity'])
- -- end
- -- end
- -- only this part of the previous function is relevant
- if spell.action_type == 'Magic' then
- if buffactive['Alacrity'] and (spell.element == world.weather_element or spell_element == world.day_element) then
- equip(sets.buff['Alacrity'])
- elseif buffactive['Celerity'] and (spell.element == world.weather_element or spell_element == world.day_element) then
- equip(sets.buff['Celerity'])
- end
- end
- if spell.type:lower() == 'weaponskill' then
- if (player.tp > 1749 and player.tp < 2000) or (player.tp > 2749 and player.tp < 3000) then
- equip(sets.Moonshade)
- end
- end
- end
- -- Run after the general midcast() is done.
- function job_post_midcast(spell, action, spellMap, eventArgs)
- if spell.action_type == 'Magic' then
- -- Not used for now, as Vanya Hood is best in all situations except capped haste
- -- Relic Feet are best with both uncapped haste and celerity with matching spell/weather bonus
- -- Relic head and Artifact feet are best for non-celerity/alacrity casts with capped haste ONLY
- -- if (buffactive['light arts'] or buffactive['dark arts'] or buffactive['addendum: white'] or buffactive['addendum: black']) then
- -- if not (buffactive['Alacrity'] or buffactive['Manifestation'] or buffactive['Celerity'] or buffactive['Accession']) then
- -- gear.FC_Head = {gear.RHead}
- -- gear.FC_Feet = {gear.AFFeet}
- -- elseif buffactive['Alacrity'] and (spell.element == world.weather_element or spell_element == world.day_element) then
- -- -- sets.buff['Alacrity'] = {feet=gear.RFeet}
- -- gear.FC_Feet = {gear.RFeet}
- -- elseif buffactive['Celerity'] and (spell.element == world.weather_element or spell_element == world.day_element) then
- -- -- sets.buff['Celerity'] = {feet=gear.RFeet}
- -- gear.FC_Feet = {gear.RFeet}
- -- else
- -- gear.FC_Head = {gear.VHead}
- -- gear.FC_Feet = {gear.RFeet}
- -- end
- -- end
- if spell.skill == 'Elemental Magic' and spellMap ~= 'ElementalEnfeeble' and spell.english ~= 'Impact' and spell.english ~= 'Meteor' then
- if buffactive['Immanence'] then
- if state.Skillchain.value ~= nil then
- equip(sets.midcast['Elemental Magic'].Chainbound)
- -- Turns off Chainbound
- -- comment out the reset line if you prefer to toggle Skillchain mode manually
- state.Skillchain:reset()
- -- Equip Fast Recast for a standard Immanence cast
- else
- equip(sets.midcast.FastRecast)
- end
- -- Equip a special set for SC bonus Immanence cast
- elseif not buffactive['Immanence'] then
- if state.CastingMode.value ~= 'Resistant' then
- if spell.element == world.day_element or spell.element == world.weather_element then
- equip({waist="Hachirin-no-Obi"})
- end
- -- Equip a special set for MB
- if state.MagicBurst.value ~= nil then
- equip(sets.midcast['Elemental Magic'].Burst)
- end
- -- Turns off Burst
- -- comment out the reset line if you prefer to toggle MagicBurst mode manually
- state.MagicBurst:reset()
- -- Ebullience: Gives a 20% damage bonus to your next Black Magic.
- -- Empyrean head further increases the damage bonus
- if buffactive['Ebullience'] then
- equip(sets.buff['Ebullience'])
- end
- -- Klimaform: Increases the magic accuracy for spells of the same element as the current weather (not day).
- -- Empyrean feet increases magic damage of spells of the same element as the current weather by 10%
- -- (in a separate term from, and in addition to, the normal weather damage bonus)
- if buffactive['Klimaform'] and spell.element == world.weather_element then
- equip(sets.buff['Klimaform'])
- end
- end
- end
- end
- -- Perpetuance: Increases the enhancement effect duration of your next white magic enhancing magic spell.
- -- Empyrean hands further increase the duration
- if buffactive['Perpetuance'] and spell.type =='WhiteMagic' and spell.skill == 'Enhancing Magic' then
- equip(sets.buff['Perpetuance'])
- end
- -- Penury: Reduces the MP cost of your next White Magic spell by 50%
- -- Empyrean legs force a Conserve MP proc on top of this ability.
- if state.Buff.Penury then
- equip(sets.buff['Penury'])
- end
- -- Parsimony: Reduces the MP cost of your next Black Magic spell by 50%
- -- Empyrean legs force a Conserve MP proc on top of this ability.
- if state.Buff.Parsimony then
- equip(sets.buff['Parsimony'])
- end
- if spellMap == 'Cure' then
- if buffactive['Aurorastorm'] or world.weather_element == 'Light' or world.day_element == 'Light' then
- equip(sets.ObiCure)
- end
- -- Rapture: Gives a potency boost to Healing Magic.
- -- Empyrean head further increases the potency
- if buffactive['Rapture'] then
- equip(sets.buff['Rapture'])
- end
- end
- if spellMap == 'Refresh' and spell.target.type == 'SELF' then
- equip(sets.SelfRefresh)
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for non-casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Called when a player gains or loses a buff.
- -- buff == buff gained or lost
- -- gain == true if the buff was gained, false if it was lost.
- function job_buff_change(buff, gain)
- if buff == "Sublimation: Activated" then
- handle_equipping_gear(player.status)
- end
- -- Check if we're in a Reive
- if buff == "Reive Mark" then
- if player.inventory[sets.buff['Reive Mark']] or player.wardrobe[sets.buff['Reive Mark']] or player.wardrobe2[sets.buff['Reive Mark']] or player.wardrobe3[sets.buff['Reive Mark']] or player.wardrobe4[sets.buff['Reive Mark']] then
- if gain then
- equip(sets.buff['Reive Mark'])
- disable('neck')
- elseif not gain then
- enable('neck')
- status_change(player.status)
- end
- end
- end
- end
- -- Handle notifications of general user state change.
- function job_state_change(stateField, newValue, oldValue)
- if stateField == 'Idle Mode' then
- if newValue == 'Stun' then
- equip(sets.idle.Stun)
- disable('head','body','hands','legs','feet')
- else
- enable('head','body','hands','legs','feet')
- end
- end
- -- Lock gear that affects TP
- if stateField == 'Offense Mode' then
- if newValue == 'Normal' then
- equip(sets.Offense)
- disable('main','sub','range')
- else
- enable('main','sub','range')
- end
- end
- -- Equip capacity point gear
- if stateField == 'CP' then
- if newValue ~= false then
- equip(sets.CP)
- disable('back','ring1')
- else
- enable('back','ring1')
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements standard library decisions.
- -------------------------------------------------------------------------------------------------------------------
- -- Custom spell mapping.
- function job_get_spell_map(spell, default_spell_map)
- if spell.action_type == 'Magic' then
- -- if spell.skill == 'Elemental Magic' then
- -- if info.low_nukes:contains(spell.english) then
- -- return 'LowTierNuke'
- -- elseif info.high_nukes:contains(spell.english) then
- -- return 'HighTierNuke'
- -- end
- -- elseif spell.skill == "Enfeebling Magic" then
- if spell.skill == "Enfeebling Magic" then
- if spell.type == "WhiteMagic" then
- return "MndEnfeebles"
- else
- return "IntEnfeebles"
- end
- end
- end
- end
- -- Called any time we attempt to handle automatic gear equips (ie: engaged or idle gear).
- function job_handle_equipping_gear(playerStatus, eventArgs)
- end
- function customize_idle_set(idleSet)
- if state.Buff['Sublimation: Activated'] then
- if state.IdleMode.value == 'Normal' then
- idleSet = set_combine(idleSet, sets.buff.FullSublimation)
- elseif state.IdleMode.value == 'PDT' then
- idleSet = set_combine(idleSet, sets.buff.PDTSublimation)
- end
- end
- if player.hpp < 80 then
- idleSet = set_combine(idleSet, sets.ExtraRegen)
- end
- if player.mpp < 86 then
- if world.time >= (18*60) or world.time <= (6*60) then
- idleSet = set_combine(idleSet, sets.NightRefresh)
- else
- idleSet = set_combine(idleSet, sets.DayRefresh)
- end
- end
- if areas.TOAU:contains(world.area) then
- idleSet = set_combine(idleSet, sets.Sanction)
- end
- if buffactive['Poison'] then
- idleSet = set_combine(idleSet, sets.poison)
- end
- if player.mpp < 51 then
- idleSet = set_combine(idleSet, sets.latent_refresh)
- end
- if buffactive["Dancer's Roll"] or buffactive["Evoker's Roll"] or buffactive["Corsair's Roll"] or buffactive["Bolter's Roll"] then
- idleSet = set_combine(idleSet, sets.Roll)
- end
- if buffactive["Fighter's Roll"] or buffactive["Rogue's Roll"] or buffactive["Hunter's Roll"] or buffactive["Chaos Roll"] then
- idleSet = set_combine(idleSet, sets.Roll)
- end
- if buffactive["Wizard's Roll"] or buffactive["Warlock's Roll"] or buffactive["Caster's Roll"] or buffactive["Courser's Roll"] then
- idleSet = set_combine(idleSet, sets.Roll)
- end
- if buffactive["Samurai Roll"] or buffactive["Blitzer's Roll"] or buffactive["Tactician's Roll"] or buffactive["Miser's Roll"] then
- idleSet = set_combine(idleSet, sets.Roll)
- end
- if not buffactive['Protect'] or not buffactive['Shell'] then
- idleSet = set_combine(idleSet, sets.ProSh)
- end
- return idleSet
- end
- --function customize_melee_set(melee_set)
- -- return melee_set
- --end
- -- Called by the 'update' self-command.
- function job_update(cmdParams, eventArgs)
- if cmdParams[1] == 'user' and not (buffactive['light arts'] or buffactive['dark arts'] or buffactive['addendum: white'] or buffactive['addendum: black']) then
- if state.IdleMode.value == 'Stun' then
- send_command('@input /ja "Dark Arts" <me>')
- else
- send_command('@input /ja "Light Arts" <me>')
- end
- end
- update_active_strategems()
- update_sublimation()
- end
- -- Function to display the current relevant user state when doing an update.
- -- Return true if display was handled, and you don't want the default info shown.
- function display_current_job_state(eventArgs)
- local msg = 'Scholar'
- if state.CombatForm.has_value then
- msg = msg .. ' (' .. state.CombatForm.value .. ')'
- end
- msg = msg .. ', Magic: ' .. state.CastingMode.value
- msg = msg .. ', Offense: ' .. state.OffenseMode.value
- if state.DefenseMode.value ~= 'None' then
- msg = msg .. ', ' .. 'Defense: ' .. state.DefenseMode.value .. ' (' .. state[state.DefenseMode.value .. 'DefenseMode'].value .. ')'
- end
- if state.MagicBurst.value == true then
- msg = msg .. ', Burst ON'
- end
- if state.Skillchain.value == true then
- msg = msg .. ', SC Damage ON'
- end
- if state.Kiting.value == true then
- msg = msg .. ', Kiting ON'
- end
- if state.CP.value == true then
- msg = msg .. ', CP ON'
- end
- add_to_chat(122, msg)
- eventArgs.handled = true
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements self-commands.
- -------------------------------------------------------------------------------------------------------------------
- -- Called for direct player commands.
- function job_self_command(cmdParams, eventArgs)
- if cmdParams[1]:lower() == 'scholar' then
- handle_strategems(cmdParams)
- eventArgs.handled = true
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
- -- Reset the state vars tracking strategems.
- function update_active_strategems()
- state.Buff['Ebullience'] = buffactive['Ebullience'] or false
- state.Buff['Rapture'] = buffactive['Rapture'] or false
- state.Buff['Perpetuance'] = buffactive['Perpetuance'] or false
- state.Buff['Immanence'] = buffactive['Immanence'] or false
- state.Buff['Penury'] = buffactive['Penury'] or false
- state.Buff['Parsimony'] = buffactive['Parsimony'] or false
- state.Buff['Celerity'] = buffactive['Celerity'] or false
- state.Buff['Alacrity'] = buffactive['Alacrity'] or false
- state.Buff['Klimaform'] = buffactive['Klimaform'] or false
- end
- function update_sublimation()
- state.Buff['Sublimation: Activated'] = buffactive['Sublimation: Activated'] or false
- end
- -- General handling of strategems in an Arts-agnostic way.
- -- Format: gs c scholar <strategem>
- function handle_strategems(cmdParams)
- -- cmdParams[1] == 'scholar'
- -- cmdParams[2] == strategem to use
- if not cmdParams[2] then
- add_to_chat(123,'Error: No strategem command given.')
- return
- end
- local strategem = cmdParams[2]:lower()
- if strategem == 'light' then
- if buffactive['light arts'] then
- send_command('input /ja "Addendum: White" <me>')
- elseif buffactive['addendum: white'] then
- add_to_chat(122,'Error: Addendum: White is already active.')
- else
- send_command('input /ja "Light Arts" <me>')
- end
- elseif strategem == 'dark' then
- if buffactive['dark arts'] then
- send_command('input /ja "Addendum: Black" <me>')
- elseif buffactive['addendum: black'] then
- add_to_chat(122,'Error: Addendum: Black is already active.')
- else
- send_command('input /ja "Dark Arts" <me>')
- end
- elseif buffactive['light arts'] or buffactive['addendum: white'] then
- if strategem == 'cost' then
- send_command('input /ja Penury <me>')
- elseif strategem == 'speed' then
- send_command('input /ja Celerity <me>')
- elseif strategem == 'aoe' then
- send_command('input /ja Accession <me>')
- elseif strategem == 'power' then
- send_command('input /ja Rapture <me>')
- elseif strategem == 'duration' then
- send_command('input /ja Perpetuance <me>')
- elseif strategem == 'accuracy' then
- send_command('input /ja Altruism <me>')
- elseif strategem == 'enmity' then
- send_command('input /ja Tranquility <me>')
- elseif strategem == 'skillchain' then
- add_to_chat(122,'Error: Light Arts does not have a skillchain strategem.')
- elseif strategem == 'addendum' then
- send_command('input /ja "Addendum: White" <me>')
- else
- add_to_chat(123,'Error: Unknown strategem ['..strategem..']')
- end
- elseif buffactive['dark arts'] or buffactive['addendum: black'] then
- if strategem == 'cost' then
- send_command('input /ja Parsimony <me>')
- elseif strategem == 'speed' then
- send_command('input /ja Alacrity <me>')
- elseif strategem == 'aoe' then
- send_command('input /ja Manifestation <me>')
- elseif strategem == 'power' then
- send_command('input /ja Ebullience <me>')
- elseif strategem == 'duration' then
- add_to_chat(122,'Error: Dark Arts does not have a duration strategem.')
- elseif strategem == 'accuracy' then
- send_command('input /ja Focalization <me>')
- elseif strategem == 'enmity' then
- send_command('input /ja Equanimity <me>')
- elseif strategem == 'skillchain' then
- send_command('input /ja Immanence <me>')
- elseif strategem == 'addendum' then
- send_command('input /ja "Addendum: Black" <me>')
- else
- add_to_chat(123,'Error: Unknown strategem ['..strategem..']')
- end
- else
- add_to_chat(123,'No arts has been activated yet.')
- end
- end
- -- Gets the current number of available strategems based on the recast remaining
- -- and the level of the sch.
- function get_current_strategem_count()
- -- returns recast in seconds.
- local allRecasts = windower.ffxi.get_ability_recasts()
- local stratsRecast = allRecasts[231]
- local maxStrategems = (player.main_job_level + 10) / 20
- local fullRechargeTime = 4*60
- local currentCharges = math.floor(maxStrategems - maxStrategems * stratsRecast / fullRechargeTime)
- return currentCharges
- end
- -- Select default macro book on initial load or subjob change.
- function select_default_macro_book()
- set_macro_page(1, 17)
- end
Advertisement
Add Comment
Please, Sign In to add comment