Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- sets.fashion = {
- main = "Wrath Tabar",
- sub = "Kabrakan's Axe",
- range = "Lightning Bow +1",
- ammo = "Bodkin Arrow",
- head = "Luisant Salade",
- body = "Luisant Haubert",
- hands = "Luisant Moufles",
- legs = "Luisant Brayettes",
- feet = "Gothic Sabatons"
- }
- sets.idle = {
- head = "Empress Hairpin",
- neck = "Fortified Chain",
- left_ear = "Elusive Earring",
- right_ear = "Elusive Earring",
- body = "Scp. Harness +1",
- hands = "Akinji Bazubands",
- left_ring = "Wivre Ring +1",
- right_ring = "Wivre Ring +1",
- back = "Thunderer's Mantle",
- waist = "",
- legs = "Raven Hose",
- feet = "Gothic Sabatons"
- }
- sets.engaged = {
- head = "Zeal Cap +1",
- neck = "Peacock Amulet",
- left_ear = "Spike Earring",
- right_ear = "Spike Earring",
- body = "Haubergeon +1",
- hands = "Akinji Bazubands",
- left_ring = "Ecphoria Ring",
- right_ring = "Rajas Ring",
- back = "Amemet Mantle +1",
- waist = "Precise Belt",
- legs = "Abtal Zerehs",
- feet = "Gothic Sabatons"
- }
- sets.chr = {
- neck = "Star Pendant",
- left_ear = "Melody Earring +1",
- right_ear = "Melody Earring +1",
- body = "Brigandine +1",
- left_ring = "Allure Ring +1",
- right_ring = "Allure Ring +1",
- waist = "Corsette +1",
- legs = "Dst. Codpiece",
- feet = "Ceremonial Boots"
- }
- -- Rampage
- -- Modifiers: STR:50%
- -- but a multi-hit, so prolly want to think about acc as well.
- sets.str = {
- head = "Luisant Salade",
- neck = "Chivalrous Chain",
- left_ear = "",
- right_ear = "",
- body = "",
- hands = "Pallas's Bracelets",
- left_ring = "Puissance Ring +1",
- right_ring = "Rajas Ring",
- back = "Amemet Mantle +1",
- waist = "Jungle Belt",
- legs = "Abtal Zerehs",
- feet = ""
- }
- end
- --[[********************************************************
- functions go here
- ********************************************************--]]
- -- equip our idle set
- function equip_idle()
- windower.add_to_chat(8,'[Idle]')
- equip(sets.idle)
- end
- -- equip our engaged set
- function equip_engaged()
- windower.add_to_chat(8,'[Engaged]')
- equip(sets.idle,sets.engaged)
- end
- -- equip our ws set
- function equip_ws()
- windower.add_to_chat(8,'[Weapon Skill]')
- equip(sets.str)
- end
- -- equip our resting hMP set
- function equip_rest()
- windower.add_to_chat(8, '[Resting]')
- equip(sets.rest)
- end
- -- the choose_set function figures out whether we're engaged with a
- -- mob or not, and passes control to the relevant function above.
- function choose_set()
- if player.status == "Engaged" then
- equip_engaged()
- else
- equip_idle()
- end
- end
- --[[ ******************************************************
- Casting functions - these functions run automatically when
- we cast a spell, use a job ability, rest for MP, and so on
- ****************************************************** --]]
- -- prior to using our ability
- function precast(spell)
- if spell.type == 'WeaponSkill' then
- equip_ws()
- elseif spell.name == 'Charm' then
- equip(sets.chr)
- elseif spell.name == 'Ranged' then
- am = true
- windower.add_to_chat(121, '[Ranged]')
- equip(sets.ranged)
- end
- end
- -- the midcast function swaps in a new set of gear during
- -- the cast, which will make the spell effect more potent.
- function midcast(spell)
- end
- -- after we use an ability, put on either our engaged or
- -- idle sets.
- function aftercast(spell)
- if am == true then
- an = player.inventory[player.equipment.ammo].count
- windower.add_to_chat(121, '['..player.inventory[player.equipment.ammo].count..']')
- am = false
- end
- choose_set()
- end
- -- when we engage or disengage, sit or stand, put on the
- -- correct set of gear.
- -- the status_change function runs automatically whenever we
- -- engage, disengage, kneel, or stand. As a BLM we use this
- -- to equip our +hMP gear when we /heal, and return to our
- -- idle gear when we stand up.
- function status_change(new,old)
- if new == 'Resting' then
- equip_rest()
- else
- choose_set()
- end
- end
- -- this posts into chatlog what buffs are added to and removed
- -- from you
- function buff_change(name,gain)
- if gain == true then
- windower.add_to_chat(130, '['.. name ..' Applied!]')
- elseif gain == false then
- windower.add_to_chat(130, '['.. name ..' Has Fallen!]')
- end
- end
- --[[ ******************************************************
- Code that runs once, when we first swap to our drk job
- ****************************************************** --]]
- -- puts on our fashion set, lockstyle it, then switch to our idle set.
- am = false
- send_command('wait 1;gs equip fashion;wait 1;input /lockstyle on;wait 1;gs equip idle;wiat 1;input /macro book 3')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement