Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include('organizer-lib')
- include('includes/common-functions')
- include('includes/common-gearsets')
- include('includes/config')
- --initialise local variables to inherit from master config
- local showFCInfo = config.showFastCastInfo
- local showSpellInfo = config.showSpellInfo
- local showCancelInfo = config.showCancelInfo
- local FastCast = 80
- TPStyle = {"Default", "TH", "Accuracy", "Evasion"}
- TPStyleIndex = 1
- function get_sets()
- local mjob = player.main_job
- init_gear_sets(mjob)
- sets.TH = {
- sub="Sandung",
- hands="Plun. Armlets +1",
- feet="Skulk. Poulaines",
- }
- sets.JobAbility['Perfect Dodge'] = {}
- sets.JobAbility['Sneak Attack'] = { }
- sets.JobAbility['Trick Attack'] = { }
- sets.JobAbility.Flee = { feet="Pillager's Poulaines +2"}
- sets.JobAbility.Accomplice = { head={ name="Skulker's Bonnet" } }
- sets.JobAbility.Collaborator = { head={ name="Skulker's Bonnet" } }
- sets.WeaponSkills['Dancing Edge'] = { }
- sets.WeaponSkills['Mercy Stroke'] = { }
- sets.WeaponSkills['Mandalic Stab'] = { }
- sets.WeaponSkills['Rudra\'s Storm'] = {
- neck = "Shadow Gorget",
- }
- sets.WeaponSkills['Aeolian Edge'] = {
- neck="Breeze Gorget",
- left_ear="Moldavite Earring",
- right_ear="Sortiarius Earring",
- }
- sets.WeaponSkills['Exenterator'] = {}
- sets.midcast.Cure = { }
- sets.aftercast = {}
- sets.aftercast.Resting = { }
- sets.aftercast.Engaged = {}
- sets.aftercast.Engaged.Default = set_combine(sets.weapons[mjob]['Daggers'], {
- ammo="Yetshila +1",
- head="Pill. Bonnet +2",
- body="Pillager's Vest +2",
- hands="Pill. Armlets +2",
- legs="Pill. Culottes +2",
- feet="Plun. Poulaines +1",
- neck="Ziel Charm",
- back="Atheling Mantle",
- waist="Twilight belt",
- left_ear="Mache Earring +1",
- right_ear="Mache Earring +1",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- })
- sets.aftercast.Engaged.TH = set_combine(sets.aftercast.Engaged.Default, sets.TH)
- sets.aftercast.Engaged.Accuracy = set_combine(sets.aftercast.Engaged.Default, { })
- sets.aftercast.Engaged.Evasion= set_combine(sets.aftercast.Engaged.Default, { })
- sets.aftercast.Idle = set_combine(sets.aftercast.Engaged[TPStyle[TPStyleIndex]], {
- left_ring="Defending Ring",
- feet="Pillager's Poulaines +2",
- })
- enspell_list = S{"Enstone", "Enwater", "Enaero", "Enfire", "Enblizzard", "Enthunder"}
- switchMacroSet(8,1)
- send_command('gs enable all')
- send_command('gs equip sets.aftercast.Idle')
- send_command('input /echo [F9] Bound to Default TP Gear;bind F9 gs c default')
- send_command('input /echo [F10] Bound to Set TH based TP Gear;bind F10 gs c th')
- send_command('input /echo [F11] Bound to Set Accuracy heavy TP Gear;bind F11 gs c accuracy')
- send_command('input /echo [F12] Bound to Set Evasion heavy TP Gear;bind F12 gs c evasion')
- --send_command('input /echo >> Need to finish SA/TA buff rules!! <<)
- disable('main','sub')
- end
- function precast(spell)
- if sets.JobAbility[spell.english] then
- equip(sets.JobAbility[spell.english])
- end
- if sets.WeaponSkills[spell.english] then
- equip(sets.WeaponSkills[spell.english])
- end
- if sets.precast[spell.english] then
- equip(sets.precast[spell.english])
- end
- if spell.action_type == 'Magic' then
- equip(sets.precast.FastCast.Default)
- end
- end
- function midcast(spell)
- cancelBuff(spell.english, spell.cast_time, FastCast)
- if sets.midcast[spell.english] then
- equip(sets.midcast[spell.english])
- elseif string.find(spell.english,'Cur') and spell.english ~='Cursna' then
- equip(sets.midcast.Cure)
- end
- if sets.midcast[spell.skill] then
- equip(sets.midcast[spell.skill])
- end
- if (enspell_list:contains(spell.english)) then
- equip(sets.midcast.Enspell)
- end
- end
- function aftercast(spell)
- if spell.english == "Sneak Attack" then
- add_to_chat(8, "<<Sneak Attack>>")
- equip (sets.precast['Sneak Attack'])
- elseif spell.english == "Trick Attack" then
- add_to_chat(8, "<<Trick Attack>>")
- equip (sets.precast['Trick Attack'])
- else
- equipGearByState()
- end
- end
- function status_change(new,old)
- equipGearByState()
- end
- function buff_change(name,gain)
- if name == "Trick Attack" and gain == "false" then
- equip(sets.aftercast.Idle)
- elseif name == "Sneak Attack" and gain == "false" then
- if player.status == 'Idle' then
- equip_idle_set()
- elseif sets.aftercast[player.status][TPStyle[TPStyleIndex]] then
- equip(sets.aftercast[player.status][TPStyle[TPStyleIndex]],sets.aftercast)
- else
- equip(sets.aftercast.Idle,sets.aftercast)
- end
- end
- end
- function self_command(command)
- if command:lower() == "default" then
- TPStyleIndex = 1
- add_to_chat(8, 'TP Style is now: '.. TPStyle[TPStyleIndex] .. '!')
- send_command('gs enable sub')
- equip(sets.aftercast.Engaged[TPStyle[TPStyleIndex]])
- elseif command:lower() == "th" then
- TPStyleIndex = 2
- add_to_chat(8, 'TP Style is now: '.. TPStyle[TPStyleIndex] .. '!')
- equip(sets.aftercast.Engaged[TPStyle[TPStyleIndex]])
- send_command('gs disable sub')
- elseif command:lower() == "accuracy" then
- TPStyleIndex = 3
- add_to_chat(8, 'TP Style is now: '.. TPStyle[TPStyleIndex] .. '!')
- send_command('gs enable sub')
- equip(sets.aftercast.Engaged[TPStyle[TPStyleIndex]])
- elseif command:lower() == "evasion" then
- TPStyleIndex = 4
- add_to_chat(8, 'TP Style is now: '.. TPStyle[TPStyleIndex] .. '!')
- send_command('gs enable sub')
- equip(sets.aftercast.Engaged[TPStyle[TPStyleIndex]])
- end
- if player.status == "Engaged" then
- equip(sets.aftercast[player.status][TPStyle[TPStyleIndex]])
- else
- equip(sets.aftercast[player.status])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement