Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- NOTE: I do not play bst, so this will not be maintained for 'active' use.
- -- It is added to the repository to allow people to have a baseline to build from,
- -- and make sure it is up-to-date with the library API.
- -- Credit to Quetzalcoatl.Falkirk for most of the original work.
- --[[
- Custom commands:
- Ctrl-F8 : Cycle through available pet food options.
- Alt-F8 : Cycle through correlation modes for pet attacks.
- Alt-F7 : Cycle through PET MODES
- ]]
- -------------------------------------------------------------------------------------------------------------------
- -- Setup functions for this job. Generally should not be modified.
- -------------------------------------------------------------------------------------------------------------------
- -- Initialization function for this job file.
- function get_sets()
- mote_include_version = 2
- -- Load and initialize the include file.
- include('Mote-Include.lua')
- end
- function job_setup()
- -- Set up Reward Modes and keybind Ctrl-F8
- state.RewardMode = M{['description']='Reward Mode', 'Theta', 'Eta', 'Zeta', 'Pet Poultice', 'Pet Roborant'}
- RewardFood = {name="Pet Food Theta"}
- send_command('bind ^f8 gs c cycle RewardMode')
- --Pet Roborant = Erase Pet
- --Pet Poultice = Regen 6 HP/tick for 5 Minutes
- --Theta = 20 HP/tick Regen and BEST FOOD for heals
- --Eta = 17 HP/tick Regen and 2nd BEST FOOD for heals
- --Zeta = 14 HP/tick Regen and 3rd BEST FOOD for heals
- -- Set up Monster Correlation Modes and keybind Alt-F8
- state.CorrelationMode = M{['description']='Correlation Mode', 'Neutral','Favorable'}
- send_command('bind !f8 gs c cycle CorrelationMode')
- -- Custom pet modes for engaged gear
- state.PetMode = M{['description']='Pet Mode', 'Normal', 'PetStance', 'PetTank'}
- send_command('bind !f7 gs c cycle PetMode')
- ready_moves_to_check = S{'Sic','Whirl Claws','Dust Cloud','Foot Kick','Sheep Song','Sheep Charge','Lamb Chop',
- 'Rage','Head Butt','Scream','Dream Flower','Wild Oats','Leaf Dagger','Claw Cyclone','Razor Fang',
- 'Roar','Gloeosuccus','Palsy Pollen','Soporific','Cursed Sphere','Venom','Geist Wall','Toxic Spit',
- 'Numbing Noise','Nimble Snap','Cyclotail','Spoil','Rhino Guard','Rhino Attack','Power Attack',
- 'Hi-Freq Field','Sandpit','Sandblast','Venom Spray','Mandibular Bite','Metallic Body','Bubble Shower',
- 'Bubble Curtain','Scissor Guard','Big Scissors','Grapple','Spinning Top','Double Claw','Filamented Hold',
- 'Frog Kick','Queasyshroom','Silence Gas','Numbshroom','Spore','Dark Spore','Shakeshroom','Blockhead',
- 'Secretion','Fireball','Tail Blow','Plague Breath','Brain Crush','Infrasonics','1000 Needles',
- 'Needleshot','Chaotic Eye','Blaster','Scythe Tail','Ripper Fang','Chomp Rush','Intimidate','Recoil Dive',
- 'Water Wall','Snow Cloud','Wild Carrot','Sudden Lunge','Spiral Spin','Noisome Powder','Wing Slap',
- 'Beak Lunge','Suction','Drainkiss','Acid Mist','TP Drainkiss','Back Heel','Jettatura','Choke Breath',
- 'Fantod','Charged Whisker','Purulent Ooze','Corrosive Ooze','Tortoise Stomp','Harden Shell','Aqua Breath',
- 'Sensilla Blades','Tegmina Buffet','Molting Plumage','Swooping Frenzy','Pentapeck','Sweeping Gouge',
- 'Zealous Snort'}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User setup functions for this job. Recommend that these be overridden in a sidecar file.
- -------------------------------------------------------------------------------------------------------------------
- function user_setup()
- state.OffenseMode:options('Normal', 'Acc')
- state.WeaponskillMode:options('Normal', 'Acc')
- state.IdleMode:options('Normal', 'Refresh', 'Reraise')
- state.PhysicalDefenseMode:options('PDT', 'Hybrid', 'Killer')
- update_combat_form()
- end
- -- Called when this job file is unloaded (eg: job change)
- function user_unload()
- -- Unbinds the Reward and Correlation hotkeys.
- send_command('unbind ^f8')
- send_command('unbind !f8')
- send_command('unbind !f8')
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- --------------------------------------
- -- Precast sets
- --------------------------------------
- sets.precast.JA['Killer Instinct'] = {head="Ankusa Helm"}
- sets.precast.JA['Feral Howl'] = {body="Ankusa Jackcoat"}
- sets.precast.JA['Call Beast'] = {hands="Ankusa Gloves"}
- sets.precast.JA['Familiar'] = {legs="Ankusa Trousers"}
- sets.precast.JA['Tame'] = {head="Totemic Helm",ear1="Tamer's Earring",legs="Stout Kecks"}
- sets.precast.JA['Spur'] = {feet="Ferine Ocreae +2"}
- sets.precast.JA['Reward'] = {main="Zoraal Ja's Axe",sub="Zoraal Ja's Axe",ammo=RewardFood,
- head="Khimaira Bonnet",neck="Aife's Medal",ear2="Lifestorm Earring",ear1="Ferine Earring",
- body="Totemic Jackcoat",hands="Ogre Gloves",ring1="Levia. Ring",ring2="Rufescent Ring",
- back="Pastoralist's Mantle",waist="Crudelis Belt",legs="Ankusa Trousers",feet="Ankusa Gaiters"}--Loyalist Sabatons/Stout Bonnet/Zoraal Ja's Axe/Pallas's Shield/Pratik Earring/Mdomo Axe
- sets.precast.JA['Charm'] = {ammo="Tsar's Egg",
- head="Totemic Helm",neck="Ferine Necklace",ear1="Enchanter's Earring",ear2="Reverie Earring +1",
- body="Ankusa Jackcoat",hands="Ankusa Gloves",ring1="Dawnsoul Ring",ring2="Dawnsoul Ring",
- back="Aisance Mantle +1",waist="Aristo Belt",legs="Ankusa Trousers",feet="Ankusa Gaiters"}
- -- CURING WALTZ
- sets.precast.Waltz = {ammo="Sonia's Plectrum",
- head="Taeon Chapeau",neck="Tjukurrpa Medal",ear1="Soil Pearl",ear2="Soil Pearl",
- body="Emet Harness +1",hands="Taeon Gloves",ring1="Titan Ring",ring2="Titan Ring",
- back="Iximulew Cape",waist="Warwolf Belt",legs="Acro Breeches",feet="Amm Greaves"}--Taeon Boots
- -- HEALING WALTZ
- sets.precast.Waltz['Healing Waltz'] = {}
- -- STEPS
- sets.precast.Step = {ammo="Ginsen",
- head="Dampening Tam",neck="Subtlety Spec.",ear1="Steelflash Earring",ear2="Heartseeker Earring",
- body="Emet Harness +1",hands="Buremte Gloves",ring1="Rajas Ring",ring2="Mars's Ring",
- back="Letalis Mantle",waist="Hurch'lan Sash",legs="Taeon Tights",feet="Taeon Boots"}--Leyline Gloves
- -- VIOLENT FLOURISH
- sets.precast.Flourish1 = {}
- sets.precast.Flourish1['Violent Flourish'] = {body="Ankusa Jackcoat",legs="Taeon Tights",feet="Taeon Boots"}
- sets.precast.FC = {ammo="Impatiens",neck="Orunmila's Torque",ear2="Loquacious Earring",ring1="Weather. Ring",ring2="Prolix Ring"}
- sets.precast.FC.Utsusemi = set_combine(sets.precast.FC, {neck="Magoraga Beads"})
- -- WEAPONSKILLS
- -- Default weaponskill set.
- sets.precast.WS = {ammo="Ginsen",
- head="Otomi Helm",neck="Fotia Gorget",ear1="Brutal Earring",ear2="Moonshade Earring",
- body="Vatic Byrnie",hands="Taeon Gloves",ring1="Ifrit Ring",ring2="Epona's Ring",
- back="Letalis Mantle",waist="Fotia Belt",legs="Taeon Tights",feet="Taeon Boots"}--Vespid Mantle
- sets.precast.WS.WSAcc = {ammo="Ginsen",
- head="Yaoyotl Helm",neck="Subtlety Spec.",ear1="Steelflash Earring",ear2="Bladeborn Earring",
- body="Emet Harness +1",hands="Leyline Gloves",ring1="Rajas Ring",ring2="Rufescent Ring",
- back="Letalis Mantle",waist="Anguinus Belt",legs="Taeon Tights",feet="Taeon Boots"}
- -- Specific weaponskill sets.
- sets.precast.WS['Ruinator'] = set_combine(sets.precast.WS, {neck="Fotia Gorget",hands="Taeon Gloves",
- back="Buquwik Cape",waist="Fotia Belt"})
- sets.precast.WS['Ruinator'].WSAcc = set_combine(sets.precast.WS.WSAcc, {neck="Fotia Gorget",waist="Fotia Belt"})
- sets.precast.WS['Ruinator'].Mekira = set_combine(sets.precast.WS['Ruinator'], {head="Mekira-oto +1"})
- sets.precast.WS['Onslaught'] = set_combine(sets.precast.WS, {ear1="Steelflash Earring",ear2="Bladeborn Earring",
- ring1="Rajas Ring",feet="Ejekamal Boots"})
- sets.precast.WS['Onslaught'].WSAcc = set_combine(sets.precast.WSAcc, {hands="Buremte Gloves",ring1="Rajas Ring"})
- sets.precast.WS['Primal Rend'] = {ammo="Dosis Tathlum",
- head="Dampening Tam",neck="Stoicheion Medal",ear1="Hecate's Earring",ear2="Friomisi Earring",
- body="Phorcys Korazin",hands="Ankusa Gloves",ring1="Acumen Ring",ring2="Fenrir Ring",
- back="Toro Cape",waist="Fotia Belt",legs="Taeon Tights",feet="Taeon Boots"}--Jumalik Helm
- sets.precast.WS['Cloudsplitter'] = set_combine(sets.precast.WS['Primal Rend'], {waist="Fotia Belt",neck="Fotia Gorget"})
- sets.precast.WS['Bora Axe'] = set_combine(sets.precast.WS['Primal Rend'], {waist="Fotia Belt",neck="Fotia Gorget"})
- --------------------------------------
- -- Midcast sets
- --------------------------------------
- sets.midcast.FastRecast = {ammo="Impatiens",
- head="Anwig Salade",neck="Orunmila's Torque",ear2="Loquacious Earring",
- body="Mirke Wardecors",hands="Leyline Gloves",ring2="Prolix Ring",ring1="Weather. Ring",
- back="Iximulew Cape",waist="Hurch'lan Sash",legs="Taeon Tights",feet="Amm Greaves"}
- sets.midcast.Utsusemi = sets.midcast.FastRecast
- sets.midcast.Cure = {ammo="Impatiens",
- ear1="Mendi. Earring",ear2="Loquacious Earring",head="Anwig Salade",body="Jumalik Mail",hands="Buremte Gloves",ring1="Weather. Ring",ring2="Prolix Ring"}
- sets.midcast.Curaga = sets.midcast.Cure
- -- PET SIC & READY MOVES
- sets.midcast.Pet.WS = {ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear2="Ferine Earring",ear1="Sabong Earring",
- body="Emet Harness +1",hands="Ferine Manoplas +2",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Desultor Tassets",feet="Totemic Gaiters"}--Argocham. Mantle/Pastoralist's Mantle/Pastoralist's Mantle/Hija Earring/Domes. Earring/Regimen Mittens/Despair Greaves/Despair Cuisses/Despair Mail
- sets.midcast.Pet.WS.Unleash = set_combine(sets.midcast.Pet.WS, {hands="Ferine Manoplas +2"})
- sets.midcast.Pet.Neutral = {legs="Desultor Tassets"}
- sets.midcast.Pet.Favorable = {head="Ferine Cabasset +2",legs="Desultor Tassets"}
- --------------------------------------
- -- Idle/resting/defense/etc sets
- --------------------------------------
- -- RESTING
- sets.resting = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Twilight Helm",neck="Lissome Necklace",ear1="Ferine Earring",ear2="Sabong Earring",
- body="Twilight Mail",hands="Totemic Gloves",ring1="Matrimony Band",ring2="Sheltered Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ferine Quijotes +2",feet="Skadi's Jambeaux +1"}--Isa Belt/Primal Belt/Muscle Belt +1
- -- IDLE SETS
- sets.idle = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Twilight Helm",neck="Lissome Necklace",ear1="Ferine Earring",ear2="Sabong Earring",
- body="Twilight Mail",hands="Totemic Gloves",ring1="Matrimony Band",ring2="Sheltered Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ferine Quijotes +2",feet="Skadi's Jambeaux +1"}
- sets.idle.Town = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Twilight Helm",neck="Lissome Necklace",ear1="Ferine Earring",ear2="Sabong Earring",
- body="Twilight Mail",hands="Totemic Gloves",ring1="Matrimony Band",ring2="Sheltered Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ferine Quijotes +2",feet="Skadi's Jambeaux +1"}
- sets.idle.Weak = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Twilight Helm",neck="Lissome Necklace",ear1="Ferine Earring",ear2="Sabong Earring",
- body="Twilight Mail",hands="Totemic Gloves",ring1="Matrimony Band",ring2="Sheltered Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ferine Quijotes +2",feet="Skadi's Jambeaux +1"}
- sets.idle.Refresh = {head="Wivre Hairpin",body="Twilight Mail",hands="Ogier's Gauntlets",legs="Ogier's Breeches"}
- sets.idle.Reraise = set_combine(sets.idle, {head="Twilight Helm",body="Twilight Mail"})
- sets.idle.Pet = sets.idle
- sets.idle.Pet.Engaged = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Ferine Earring",ear2="Sabong Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ankusa Trousers",feet="Taeon Boots"}--Regimen Mittens/Rimeice Earring/Spurrer Beret
- sets.idle.Pet.Engaged.PDT = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Handler's Earring +1",ear2="Handler's Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Isa Belt",legs="Ankusa Trousers",feet="Taeon Boots"}--Shepherd's Chain/Despair Greaves/Despair Cuisses/Despair Mail
- sets.idle.Pet.Engaged.MDT = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Handler's Earring +1",ear2="Handler's Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Isa Belt",legs="Ankusa Trousers",feet="Taeon Boots"}--Shepherd's Chain/Despair Greaves/Despair Cuisses/Despair Mail/Selemnus Belt/Rimeice Earring
- -- DEFENSE SETS
- sets.defense.PDT = {ammo="Ginsen",
- head="Jumalik Helm",neck="Twilight Torque",
- body="Emet Harness +1",hands="Macabre Gaunt.",ring1="Dark Ring",ring2="Defending Ring",
- back="Mollusca Mantle",waist="Flume Belt",legs="Taeon Tights",feet="Amm Greaves"}--Jumalik Mail/Jumalik Helm
- sets.defense.Hybrid = set_combine(sets.defense.PDT, {head="Iuitl Headgear",
- back="Mollusca Mantle",waist="Hurch'lan Sash",legs="Taeon Tights",feet="Amm Greaves"})
- sets.defense.Killer = set_combine(sets.defense.Hybrid, {ammo="Bibiki Seashell",head="Ankusa Helm",body="Ferine Gausape +2"})
- sets.defense.MDT = set_combine(sets.defense.PDT, {ammo="Sihirik",
- head="Ogier's Helm",ear1="Flashward Earring",ear2="Spellbreaker Earring",
- body="Jumalik Mail",ring1="Dark Ring",
- back="Engulfer Cape",waist="Nierenschutz"})
- sets.Kiting = {ammo="Demonry Core",
- head="Iuitl Headgear",neck="Twilight Torque",
- body="Jumalik Mail",hands="Macabre Gaunt.",ring1="Dark Ring",ring2="Defending Ring",
- back="Repulse Mantle",waist="Hurch'lan Sash",legs="Taeon Tights",feet="Skadi's Jambeaux +1"}
- --------------------------------------
- -- Engaged sets
- --------------------------------------
- sets.engaged = {ammo="Ginsen",
- head="Taeon Chapeau",neck="Asperity Necklace",ear2="Suppanomimi",ear1="Brutal Earring",
- body="Vatic Byrnie",hands="Taeon Gloves",ring1="Rajas Ring",ring2="Epona's Ring",
- back="Bleating Mantle",waist="Windbuffet Belt",legs="Taeon Tights",feet="Taeon Boots"}--Mes'yohi Haubergeon/Patentia Sash/Felistris Mask
- sets.engaged.Acc = {ammo="Ginsen",
- head="Yaoyotl Helm",neck="Subtlety Spec.",ear1="Steelflash Earring",ear2="Heartseeker Earring",
- body="Vatic Byrnie",hands="Buremte Gloves",ring1="Rajas Ring",ring2="Mars's Ring",
- back="Letalis Mantle",waist="Anguinus Belt",legs="Taeon Tights",feet="Taeon Boots"}
- sets.engaged.Killer = set_combine(sets.engaged, {head="Ankusa Helm",body="Ferine Gausape +2"})
- sets.engaged.Killer.Acc = set_combine(sets.engaged.Acc, {head="Ankusa Helm",body="Ferine Gausape +2",waist="Anguinus Belt"})
- -- EXAMPLE SETS WITH PET MODES
- sets.engaged.PetStance = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Ferine Earring",ear2="Sabong Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ankusa Trousers",feet="Taeon Boots"}
- sets.engaged.PetStance.Acc = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Ferine Earring",ear2="Sabong Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ankusa Trousers",feet="Taeon Boots"}
- sets.engaged.PetTank = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Handler's Earring +1",ear2="Handler's Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Isa Belt",legs="Ankusa Trousers",feet="Taeon Boots"}
- sets.engaged.PetTank.Acc = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Handler's Earring +1",ear2="Handler's Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Isa Belt",legs="Ankusa Trousers",feet="Taeon Boots"}
- sets.engaged.PetMDT = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Handler's Earring +1",ear2="Handler's Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Isa Belt",legs="Ankusa Trousers",feet="Taeon Boots"}
- --[[sets.engaged.PetStance.Killer = {}
- --sets.engaged.PetStance.Killer.Acc = {}
- --sets.engaged.PetTank.Killer = {}
- --sets.engaged.PetTank.Killer.Acc = {}]]
- -- MORE EXAMPLE SETS WITH EXPANDED COMBAT FORMS
- --[[sets.engaged.DW.PetStance = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",head="Despair Helm",neck="Ferine Necklace",ear1="Ferine Earring",ear2="Sabong Earring",body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ankusa Trousers",feet="Taeon Boots"}
- sets.engaged.DW.PetStance.Acc = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Ferine Earring",ear2="Sabong Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Hurch'lan Sash",legs="Ankusa Trousers",feet="Taeon Boots"}
- sets.engaged.DW.PetTank = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Handler's Earring +1",ear2="Handler's Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Isa Belt",legs="Ankusa Trousers",feet="Taeon Boots"}
- sets.engaged.DW.PetTank.Acc = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Handler's Earring +1",ear2="Handler's Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Isa Belt",legs="Ankusa Trousers",feet="Taeon Boots"}
- sets.engaged.DW.PetMDT = {main="Izizoeksi",sub="Kerehcatl",ammo="Demonry Core",
- head="Despair Helm",neck="Ferine Necklace",ear1="Handler's Earring +1",ear2="Handler's Earring",
- body="Ankusa Jackcoat",hands="Totemic Gloves",ring1="Angel's Ring",ring2="Angel's Ring",
- back="Pastoralist's Mantle",waist="Isa Belt",legs="Ankusa Trousers",feet="Taeon Boots"}
- --sets.engaged.KillerDW.PetStance = {}
- --sets.engaged.KillerDW.PetStance.Acc = {}
- --sets.engaged.KillerDW.PetTank= {}
- --sets.engaged.KillerDW.PetTank.Acc = {}]]
- --------------------------------------
- -- Custom buff sets
- --------------------------------------
- sets.buff['Killer Instinct'] = {head="Ankusa Helm",body="Ferine Gausape +2"}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- function job_precast(spell, action, spellMap, eventArgs)
- -- Define class for Sic and Ready moves.
- if ready_moves_to_check:contains(spell.english) and pet.status == 'Engaged' then
- classes.CustomClass = "WS"
- end
- end
- function job_post_precast(spell, action, spellMap, eventArgs)
- -- If Killer Instinct is active during WS, equip Ferine Gausape +2.
- if spell.type:lower() == 'weaponskill' and buffactive['Killer Instinct'] then
- equip(sets.buff['Killer Instinct'])
- end
- end
- function job_pet_post_midcast(spell, action, spellMap, eventArgs)
- -- Equip monster correlation gear, as appropriate
- equip(sets.midcast.Pet[state.CorrelationMode.value])
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for non-casting events.
- -------------------------------------------------------------------------------------------------------------------
- function job_buff_change(buff, gain)
- if buff == 'Killer Instinct' then
- update_combat_form()
- handle_equipping_gear(player.status)
- end
- end
- -- Called when the pet's status changes.
- function job_pet_status_change(newStatus, oldStatus)
- end
- -- Handle notifications of general user state change.
- function job_state_change(stateField, newValue, oldValue)
- if stateField == 'Reward Mode' then
- -- Thena, Zeta or Eta
- RewardFood.name = "Pet Food " .. newValue
- elseif stateField == 'Pet Mode' then
- state.CombatWeapon:set(newValue)
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements standard library decisions.
- -------------------------------------------------------------------------------------------------------------------
- function get_custom_wsmode(spell, spellMap, defaut_wsmode)
- if defaut_wsmode == 'Normal' then
- if spell.english == "Ruinator" and (world.day_element == 'Water' or world.day_element == 'Wind' or world.day_element == 'Ice') then
- return 'Mekira'
- end
- end
- end
- -- Called by the 'update' self-command, for common needs.
- -- Set eventArgs.handled to true if we don't want automatic equipping of gear.
- function job_update(cmdParams, eventArgs)
- update_combat_form()
- end
- -- Set eventArgs.handled to true if we don't want the automatic display to be run.
- function display_current_job_state(eventArgs)
- local msg = 'Melee'
- if state.CombatForm.has_value then
- msg = msg .. ' (' .. state.CombatForm.value .. ')'
- end
- msg = msg .. ': '
- msg = msg .. state.OffenseMode.value
- if state.HybridMode.value ~= 'Normal' then
- msg = msg .. '/' .. state.HybridMode.value
- end
- msg = msg .. ', WS: ' .. state.WeaponskillMode.value
- if state.DefenseMode.value ~= 'None' then
- msg = msg .. ', ' .. 'Defense: ' .. state.DefenseMode.value .. ' (' .. state[state.DefenseMode.value .. 'DefenseMode'].value .. ')'
- end
- if state.Kiting.value then
- msg = msg .. ', Kiting'
- end
- msg = msg .. ', Reward: '..state.RewardMode.value..', Correlation: '..state.CorrelationMode.value
- add_to_chat(122, msg)
- eventArgs.handled = true
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
- function update_combat_form()
- if buffactive['Killer Instinct'] then
- if (player.sub_job == 'NIN' or player.sub_job == 'DNC') and player.equipment.sub:endswith('Axe') then
- state.CombatForm:set('KillerDW')
- else
- state.CombatForm:set('Killer')
- end
- elseif (player.sub_job == 'NIN' or player.sub_job == 'DNC') and player.equipment.sub:endswith('Axe') then
- state.CombatForm:set('DW')
- else
- state.CombatForm:reset()
- end
- end
- -- Select default macro book on initial load or subjob change.
- function select_default_macro_book()
- -- Default macro set/book
- set_macro_page(1, 12)
- -- Default macro set/book
- if player.sub_job == 'DNC' then
- set_macro_page(1, 12)
- elseif player.sub_job == 'NIN' then
- set_macro_page(1, 12)
- elseif player.sub_job == 'WHM' then
- set_macro_page(1, 12)
- elseif player.sub_job == 'SCH' then
- set_macro_page(1, 12)
- else
- set_macro_page(1, 12)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement