Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- *** Credit goes to Flippant for helping me with Gearswap *** --
- -- ** I Use Motenten's Macro Book Function ** --
- -- Last Updated: 05/02/14 8:00 PM *Added RA Sets* --
- function get_sets()
- include('organizer-lib')
- include('gs_bribuddy')
- include('Hastecount')
- count = 0
- hasso = 0
- seigan = 0
- fewd = 0
- AccIndex = 1
- AccArray = {"Normal","Acc","MaxAcc","MaxAcc2"}
- WeaponIndex = 1
- WeaponArray = {"Kogarasumaru", "Dojikiri"} -- Default TP Set Is Kogarasumaru. Can Delete Any Weapons/Sets That You Don't Need Or Replace/Add The New Weapons That You Want To Use. --
- WsAccIndex = 1
- WsAccArray = {"Normal","Acc","MaxAcc","MaxAcc2"}
- IdleIndex = 1
- IdleArray = {"Regen",} -- Default Idle Set Is Movement --
- AM = "off"
- Quicktest = "off"
- Armor = 'None'
- Twilight = 'None'
- warning = false
- Attack = 'OFF' -- Set Default Attack Set ON or OFF Here --
- Seigan = 'ON' -- Set Default Seigan Set ON or OFF Here --
- Third_Eye = 'ON' -- Set Default Third Eye Set ON or OFF Here --
- Samurai_Roll = 'OFF' -- Set Default SAM Roll ON or OFF Here --
- ammo_warning_limit = 10 -- Set Ammo Limit Check Here --
- target_distance = 5 -- Set Default Distance Here --
- select_default_macro_book() -- Change Default Macro Book At The End --
- areasCities = S{"Ru'Lude Gardens","Upper Jeuno","Lower Jeuno","Port Jeuno",
- "Port Windurst","Windurst Waters","Windurst Woods","Windurst Walls","Heavens Tower",
- "Port San d'Oria","Northern San d'Oria","Southern San d'Oria","Port Bastok",
- "Bastok Markets","Bastok Mines","Metalworks","Aht Urhgan Whitegate","Tavanazian Safehold",
- "Nashmau","Selbina","Mhaura","Norg","Eastern Adoulin","Western Adoulin","Kazham", "Konschtat Highlands",}
- windower.send_command('input //gs org; input /echo [ Job Changed to sam ]')
- windower.send_command('input /lockstyleset 2')
- --NOTICED ON STARTUP--
- notice(' SAMURAI KEY BINDS')
- notice(' F9 -------- Cycles Accuracy Modes')
- notice(' F10 ------- Lock/unlock PDT')
- notice(' CTRL + F11 - Reset changes weapon')
- notice(' F11 - Lock/unlock MDT')
- notice(' CTRL + F12 - Prints Variables')
- notice(' ALT + F12 -- Resets defense')
- windower.send_command('bind F9 gs c C1')
- windower.send_command('bind F10 gs c C7')
- windower.send_command('bind F11 gs c C15')
- windower.send_command('bind ^F11 gs c C17')
- windower.send_command('bind ^F12 gs c C6')
- windower.send_command('bind !F12 gs c vars')
- organizer_items = {
- echos="Remedies",
- shihei="Shihei",
- sushi="Sole Sushi",
- sushione="Sole Sushi +1",
- sushitwo="Sublime Sushi",
- sushithree="Bream Sushi",
- Warpr="Warp Ring",
- n="Hangaku-no-Yumi",k="Lugra Earring +1",
- }
- sets.buffs = {}
- sets.buffs.Doom = {
- ring1="Saida Ring",
- ring2="Saida Ring"
- }
- sets.buffs.reive = {
- neck="Adoulin's Refuge +1",
- }
- sets.buffs.sleep = {
- neck="Vim Torque +1",
- }
- sets.Utility = {}
- -- PDT/MDT Sets --
- sets.Utility.PDT = {
- head="Hizamaru Somen +1",
- body="Emet Harness +1",
- hands="Hizamaru Kote +1",
- legs="Hiza. Hizayoroi +1",
- feet="Hiza. Sune-Ate +1",
- neck="Loricate Torque +1",
- waist="Flume Belt +1",
- left_ear="Genmei Earring",
- right_ear="Merman's Earring",
- left_ring="Defending Ring",
- right_ring={ name="Dark Ring", augments={'Phys. dmg. taken -4%','Magic dmg. taken -3%','Breath dmg. taken -3%',}},
- back="Repulse Mantle",
- }
- sets.Utility.MDT = {
- head="Terminal Helm",
- body="Hiza. Haramaki +1",
- hands="Hizamaru Kote +1",
- legs="Hiza. Hizayoroi +1",
- feet="Hiza. Sune-Ate +1",
- neck="Loricate Torque +1",
- waist="Flume Belt +1",
- left_ear="Merman's Earring",
- right_ear="Merman's Earring",
- left_ring="Defending Ring",
- right_ring={ name="Dark Ring", augments={'Magic dmg. taken -4%','Breath dmg. taken -4%','Phys. dmg. taken -3%',}},
- back="Repulse Mantle",}
- -- Hybrid Sets --
- sets.Utility.Charm = set_combine(sets.Utility.MDT,{
- ammo="Pemphredo Tathlum",
- neck="M. No.17's Locket",
- waist="Slipor Sash",
- left_ring="Wuji Ring",
- right_ring="Dusksoul Ring",
- back="Solemnity Cape",
- })
- sets.Utility.Death = set_combine(sets.Utility.MDT,{
- head="Flawless Ribbon",
- left_ring="Eihwaz Ring",
- right_ring="Shadow Ring",
- })
- sets.Utility.Severe = set_combine(sets.Utility.MDT,{head="Nocturnus helm",body="Found. Breastplate",rring="Archon Ring",lring="Shadow Ring",})
- sets.Utility.Hybrid = set_combine(sets.Utility.MDT,{})
- sets.Utility.MEva = set_combine(sets.Utility.MDT,{})
- sets.Utility.BDT = set_combine(sets.Utility.MDT,{})
- sets.Utility.Stun = set_combine(sets.Utility.MDT,{body="Onca Suit",back="Tantalic cape", lring="terrasoul Ring", rring="Icecrack Ring", lear="Stoic Earring", rear="Arete Del Sol", head="Flawless Ribbon",})
- sets.Idle = {}
- -- Idle/Town Sets --
- sets.Idle.Regen = {
- range="Cibitshavore",
- ammo="Stone Arrow",
- head="Flam. zucchetto +1",
- body="Hiza. Haramaki +1",
- hands="Hizamaru Kote +1",
- legs="Hiza. Hizayoroi +1",
- feet="Hiza. Sune-Ate +1",
- neck="Loricate Torque +1",
- waist="Flume Belt +1",
- left_ear="Genmei Earring",
- right_ear="Merman's Earring",
- lring="Defending Ring",
- rring="Karieyh Ring",
- back="Repulse Mantle",}
- sets.Idle.Town = set_combine(sets.Idle.Regen,{Head="Hizamaru Somen +1",neck="Sanctity Necklace",})
- sets.Idle.Regen.Kogarasumaru = set_combine(sets.Idle.Regen,{
- })
- sets.Twilight = {
- head="Twilight Helm",
- body="Twilight Mail"}
- -- Preshot Set --
- sets.Preshot = {}
- -- Midshot Sets --
- sets.Midshot = {
- range={ name="Cibitshavore", augments={'STR+12','Rng.Acc.+10','"Store TP"+7',}},
- ammo="Stone Arrow",
- head="Terminal Helm",
- body="Kasuga Domaru +1",
- hands="Kobo Kote",
- legs="Kasuga Haidate +1",
- feet="Wakido Sune-Ate",
- neck="Combatant's Torque",
- waist="Windbuffet Belt +1",
- left_ear="Enervating Earring",
- right_ear="Telos Earring",
- left_ring="Hajduk Ring",
- right_ring="Hajduk Ring",
- back="Sokolski Mantle",}
- sets.Midshot.Acc = set_combine(sets.Midshot,{})
- sets.Midshot.MaxAcc = set_combine(sets.Midshot.Acc,{})
- sets.Main = {}
- sets.Main.Kogarasumaru = {main="Kogarasumaru",sub="Bloodrain Strap",}
- sets.Main.Dojikiri = {main="Dojikiri Yasutsuna",sub="Bloodrain Strap",}
- -- TP Base Set --
- sets.TP = {}
- ---------------------------------------------------------------------------------------------------AFTERMATH DOWN--------------------------------------
- -- Kogarasumaru(AM3 Down) TP Sets --
- sets.TP.Kogarasumaru = {
- main="Kogarasumaru",
- sub="Bloodrain Strap",
- range={ name="Cibitshavore", augments={'STR+12','Rng.Acc.+10','"Store TP"+7',}},
- head={ name="Ryuo Somen", augments={'STR+10','DEX+10','Accuracy+15',}},
- body="Flamma Korazin +1",
- hands={ name="Valorous Mitts", augments={'Accuracy+23 Attack+23','"Store TP"+8','DEX+4','Accuracy+12',}},
- legs="Hiza. Hizayoroi +1",
- feet={ name="Valorous Greaves", augments={'Accuracy+25','"Store TP"+6',}},
- neck="Clotharius Torque",
- waist="Windbuffet Belt +1",
- left_ear="Telos Earring",
- right_ear="Digni. Earring",
- left_ring="Ifrit Ring +1",
- right_ring="Karieyh Ring",
- back={ name="Smertrios's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},
- }
- sets.TP.Kogarasumaru.Acc = set_combine(sets.TP.Kogarasumaru,{
- head="Flam. zucchetto +1",
- hands={ name="Valorous Mitts", augments={'Accuracy+23 Attack+23','"Store TP"+8','DEX+4','Accuracy+12',}},
- neck="Clotharius Torque",
- waist="Kentarch Belt +1",
- right_ring="Enlivened Ring",
- })
- sets.TP.Kogarasumaru.MaxAcc = set_combine(sets.TP.Kogarasumaru,sets.TP.Kogarasumaru.Acc, {
- right_ear="Digni. Earring",
- })
- sets.TP.Kogarasumaru.MaxAcc2 = set_combine(sets.TP.Kogarasumaru,sets.TP.Kogarasumaru.Acc,sets.TP.Kogarasumaru.MaxAcc, {
- body={ name="Valorous Mail", augments={'Accuracy+25 Attack+25','Weapon skill damage +1%','STR+10','Accuracy+8','Attack+11',}},
- })
- --------------------------------------------------------------AM DOWN + HASTE ------------------------------
- -- Kogarasumaru(AM3 Down: Haste) TP Sets --
- sets.TP.Kogarasumaru.Haste = set_combine(sets.TP.Kogarasumaru,{
- })
- sets.TP.Kogarasumaru.Acc.Haste = set_combine(sets.TP.Kogarasumaru.Acc,sets.TP.Kogarasumaru.Haste,{
- })
- sets.TP.Kogarasumaru.MaxAcc.Haste = set_combine(sets.TP.Kogarasumaru.Acc.Haste,sets.TP.Kogarasumaru.MaxAcc,{
- })
- sets.TP.Kogarasumaru.MaxAcc2.Haste = set_combine(sets.TP.Kogarasumaru.MaxAcc.Haste,sets.TP.Kogarasumaru.MaxAcc2,{
- })
- -----------------------------------------------------------AM DOWN + SAM -----------------------------------
- -- Kogarasumaru(AM3 Down: SAM Roll) TP Sets --
- sets.TP.Kogarasumaru.STP = set_combine(sets.TP.Kogarasumaru,{})
- sets.TP.Kogarasumaru.Acc.STP = set_combine(sets.TP.Kogarasumaru.Acc,sets.TP.Kogarasumaru.STP,{})
- sets.TP.Kogarasumaru.MaxAcc.STP = set_combine(sets.TP.Kogarasumaru.MaxAcc,sets.TP.Kogarasumaru.Acc.STP,{})
- sets.TP.Kogarasumaru.MaxAcc2.STP = set_combine(sets.TP.Kogarasumaru.MaxAcc2,sets.TP.Kogarasumaru.MaxAcc.STP,{})
- ----------------------------------------------------------AM DOWN + HASTE + SAM ----------------------------
- -- Kogarasumaru(AM3 Down:Haste UP: SAM Roll) TP Sets --
- sets.TP.Kogarasumaru.Haste.STP = set_combine(sets.TP.Kogarasumaru,{})
- sets.TP.Kogarasumaru.Acc.Haste.STP = set_combine(sets.TP.Kogarasumaru.Acc,sets.TP.Kogarasumaru.Haste.STP,{})
- sets.TP.Kogarasumaru.MaxAcc.Haste.STP = set_combine(sets.TP.Kogarasumaru.MaxAcc,sets.TP.Kogarasumaru.Acc.Haste.STP,{})
- sets.TP.Kogarasumaru.MaxAcc2.Haste.STP = set_combine(sets.TP.Kogarasumaru.MaxAcc2,sets.TP.Kogarasumaru.MaxAcc.Haste.STP,{})
- ---------------------------------------------------------------------------------------AFTERMATH UP---------------------------------------------------
- -- Kogarasumaru(AM3 Up) TP Sets --
- sets.TP.Kogarasumaru.AM3 = {
- main="Kogarasumaru",
- sub="Bloodrain Strap",
- range={ name="Cibitshavore", augments={'STR+12','Rng.Acc.+10','"Store TP"+7',}},
- head={ name="Ryuo Somen", augments={'STR+10','DEX+10','Accuracy+15',}},
- body="Flamma Korazin +1",
- hands={ name="Valorous Mitts", augments={'Accuracy+23 Attack+23','"Store TP"+8','DEX+4','Accuracy+12',}},
- legs="Hiza. Hizayoroi +1",
- feet={ name="Valorous Greaves", augments={'Accuracy+25','"Store TP"+6',}},
- neck="Clotharius Torque",
- waist="Windbuffet Belt +1",
- left_ear="Telos Earring",
- right_ear="Digni. Earring",
- left_ring="Ifrit Ring +1",
- right_ring="Karieyh Ring",
- back={ name="Smertrios's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},
- }
- sets.TP.Kogarasumaru.Acc.AM3 = set_combine(sets.TP.Kogarasumaru.AM3,{
- head="Ryuo somen",
- })
- sets.TP.Kogarasumaru.MaxAcc.AM3 = set_combine(sets.TP.Kogarasumaru.Acc.AM3, {
- neck="Clotharius Torque",
- body={ name="Valorous Mail", augments={'Accuracy+25 Attack+25','Weapon skill damage +1%','STR+10','Accuracy+8','Attack+11',}},
- legs={ name="Valor. Hose", augments={'Accuracy+22 Attack+22','"Store TP"+7','AGI+2','Accuracy+9','Attack+8',}},
- waist="Kentarch Belt +1",
- left_ring="Enlivened Ring",
- })
- sets.TP.Kogarasumaru.MaxAcc2.AM3 = set_combine(sets.TP.Kogarasumaru.MaxAcc.AM3, {
- back="Ground. Mantle +1",
- })
- -----------------------------------------------------------aftermath + haste-------------------------------
- -- Kogarasumaru(AM3 Up: Haste) TP Sets --
- sets.TP.Kogarasumaru.AM3.Haste = set_combine(sets.TP.Kogarasumaru.AM3,{
- })
- sets.TP.Kogarasumaru.Acc.AM3.Haste = set_combine(sets.TP.Kogarasumaru.Acc.AM3,{
- })
- sets.TP.Kogarasumaru.MaxAcc.AM3.Haste = set_combine(sets.TP.Kogarasumaru.MaxAcc.AM3,{
- })
- sets.TP.Kogarasumaru.MaxAcc2.AM3.Haste = set_combine(sets.TP.Kogarasumaru.MaxAcc2.AM3,{
- })
- ---------------------------------------------------------AFTERMATH + SAM----------------------------------
- -- Kogarasumaru(AM3 Up: SAM Roll) TP Sets --
- sets.TP.Kogarasumaru.AM3.STP = set_combine(sets.TP.Kogarasumaru.AM3,{
- })
- sets.TP.Kogarasumaru.Acc.AM3.STP = set_combine(sets.TP.Kogarasumaru.Acc.AM3,sets.TP.Kogarasumaru.AM3.STP,{
- })
- sets.TP.Kogarasumaru.MaxAcc.AM3.STP = set_combine(sets.TP.Kogarasumaru.MaxAcc.AM3,sets.TP.Kogarasumaru.Acc.AM3.STP,{
- })
- sets.TP.Kogarasumaru.MaxAcc2.AM3.STP = set_combine(sets.TP.Kogarasumaru.MaxAcc2.AM3,sets.TP.Kogarasumaru.MaxAcc.AM3.STP,{
- })
- --------------------------------------------------------AFTERMATH + HASTE + SAM---------------------------
- -- Kogarasumaru(AM3 Up:Haste UP: SAM Roll) TP Sets --
- sets.TP.Kogarasumaru.AM3.Haste.STP = set_combine(sets.TP.Kogarasumaru.AM3,{
- head="Flam. zucchetto +1",
- body={ name="Valorous Mail", augments={'Accuracy+25 Attack+25','Weapon skill damage +1%','STR+10','Accuracy+8','Attack+11',}},
- hands={ name="Ryuo Tekko", augments={'DEX+10','Accuracy+20','"Dbl.Atk."+3',}},
- legs={ name="Valor. Hose", augments={'Accuracy+25','Crit.hit rate+3',}},
- feet={ name="Valorous Greaves", augments={'Attack+13','Crit.hit rate+4','CHR+9','Accuracy+12',}},
- })
- sets.TP.Kogarasumaru.Acc.AM3.Haste.STP = set_combine(sets.TP.Kogarasumaru.Acc.AM3,sets.TP.Kogarasumaru.AM3.Haste.STP,{
- })
- sets.TP.Kogarasumaru.MaxAcc.AM3.Haste.STP = set_combine(sets.TP.Kogarasumaru.MaxAcc.AM3,sets.TP.Kogarasumaru.Acc.AM3.Haste.STP,{
- })
- sets.TP.Kogarasumaru.MaxAcc2.AM3.Haste.STP = set_combine(sets.TP.Kogarasumaru.MaxAcc2.AM3,sets.TP.Kogarasumaru.MaxAcc.AM3.Haste.STP,{
- })
- -- -----xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx----
- sets.TP.Dojikiri = {
- main="Dojikiri Yasutsuna",
- sub="Bloodrain Strap",
- range={ name="Cibitshavore", augments={'STR+12','Rng.Acc.+10','"Store TP"+7',}},
- head={ name="Ryuo Somen", augments={'STR+10','DEX+10','Accuracy+15',}},
- body={ name="Valorous Mail", augments={'Accuracy+14 Attack+14','"Store TP"+5','Accuracy+14',}},
- hands={ name="Valorous Mitts", augments={'Accuracy+23 Attack+23','"Store TP"+8','DEX+4','Accuracy+12',}},
- legs="Hiza. Hizayoroi +1",
- feet={ name="Valorous Greaves", augments={'Accuracy+25','"Store TP"+6',}},
- neck="Clotharius Torque",
- waist="Windbuffet Belt +1",
- left_ear="Telos Earring",
- right_ear="Digni. Earring",
- left_ring="Ifrit Ring +1",
- right_ring="Karieyh Ring",
- back={ name="Smertrios's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},
- }
- sets.TP.Dojikiri.Acc = set_combine(sets.TP.Dojikiri,{
- head="Flam. zucchetto +1",
- hands={ name="Valorous Mitts", augments={'Accuracy+23 Attack+23','"Store TP"+8','DEX+4','Accuracy+12',}},
- neck="Clotharius Torque",
- waist="Kentarch Belt +1",
- right_ring="Enlivened Ring",
- })
- sets.TP.Dojikiri.MaxAcc = set_combine(sets.TP.Dojikiri,sets.TP.Dojikiri.Acc, {
- right_ear="Digni. Earring",
- })
- sets.TP.Dojikiri.MaxAcc2 = set_combine(sets.TP.Dojikiri,sets.TP.Dojikiri.Acc,sets.TP.Dojikiri.MaxAcc, {
- body={ name="Valorous Mail", augments={'Accuracy+25 Attack+25','Weapon skill damage +1%','STR+10','Accuracy+8','Attack+11',}},
- })
- --------------------------------------------------------------AM DOWN + HASTE ------------------------------
- -- Dojikiri(AM3 Down: Haste) TP Sets --
- sets.TP.Dojikiri.Haste = set_combine(sets.TP.Dojikiri,{
- })
- sets.TP.Dojikiri.Acc.Haste = set_combine(sets.TP.Dojikiri.Acc,sets.TP.Dojikiri.Haste,{
- })
- sets.TP.Dojikiri.MaxAcc.Haste = set_combine(sets.TP.Dojikiri.Acc.Haste,sets.TP.Dojikiri.MaxAcc,{
- })
- sets.TP.Dojikiri.MaxAcc2.Haste = set_combine(sets.TP.Dojikiri.MaxAcc.Haste,sets.TP.Dojikiri.MaxAcc2,{
- })
- -----------------------------------------------------------AM DOWN + SAM -----------------------------------
- -- Dojikiri(AM3 Down: SAM Roll) TP Sets --
- sets.TP.Dojikiri.STP = set_combine(sets.TP.Dojikiri,{})
- sets.TP.Dojikiri.Acc.STP = set_combine(sets.TP.Dojikiri.Acc,sets.TP.Dojikiri.STP,{})
- sets.TP.Dojikiri.MaxAcc.STP = set_combine(sets.TP.Dojikiri.MaxAcc,sets.TP.Dojikiri.Acc.STP,{})
- sets.TP.Dojikiri.MaxAcc2.STP = set_combine(sets.TP.Dojikiri.MaxAcc2,sets.TP.Dojikiri.MaxAcc.STP,{})
- ----------------------------------------------------------AM DOWN + HASTE + SAM ----------------------------
- -- Dojikiri(AM3 Down:Haste UP: SAM Roll) TP Sets --
- sets.TP.Dojikiri.Haste.STP = set_combine(sets.TP.Dojikiri,{})
- sets.TP.Dojikiri.Acc.Haste.STP = set_combine(sets.TP.Dojikiri.Acc,sets.TP.Dojikiri.Haste.STP,{})
- sets.TP.Dojikiri.MaxAcc.Haste.STP = set_combine(sets.TP.Dojikiri.MaxAcc,sets.TP.Dojikiri.Acc.Haste.STP,{})
- sets.TP.Dojikiri.MaxAcc2.Haste.STP = set_combine(sets.TP.Dojikiri.MaxAcc2,sets.TP.Dojikiri.MaxAcc.Haste.STP,{})
- ---------------------------------------------------------------------------------------AFTERMATH UP---------------------------------------------------
- -- Dojikiri(AM3 Up) TP Sets --
- sets.TP.Dojikiri.AM3 = {
- main="Dojikiri Yasutsuna",
- sub="Bloodrain Strap",
- range={ name="Cibitshavore", augments={'STR+12','Rng.Acc.+10','"Store TP"+7',}},
- head={ name="Ryuo Somen", augments={'STR+10','DEX+10','Accuracy+15',}},
- body={ name="Valorous Mail", augments={'Accuracy+14 Attack+14','"Store TP"+5','Accuracy+14',}},
- hands={ name="Valorous Mitts", augments={'Accuracy+23 Attack+23','"Store TP"+8','DEX+4','Accuracy+12',}},
- legs="Hiza. Hizayoroi +1",
- feet={ name="Valorous Greaves", augments={'Accuracy+25','"Store TP"+6',}},
- neck="Clotharius Torque",
- waist="Windbuffet Belt +1",
- left_ear="Telos Earring",
- right_ear="Digni. Earring",
- left_ring="Ifrit Ring +1",
- right_ring="Karieyh Ring",
- back={ name="Smertrios's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},
- }
- sets.TP.Dojikiri.Acc.AM3 = set_combine(sets.TP.Dojikiri.AM3,{
- })
- sets.TP.Dojikiri.MaxAcc.AM3 = set_combine(sets.TP.Dojikiri.Acc.AM3, {
- waist="Kentarch Belt +1",
- })
- sets.TP.Dojikiri.MaxAcc2.AM3 = set_combine(sets.TP.Dojikiri.MaxAcc.AM3, {
- })
- -----------------------------------------------------------aftermath + haste-------------------------------
- -- Dojikiri(AM3 Up: Haste) TP Sets --
- sets.TP.Dojikiri.AM3.Haste = set_combine(sets.TP.Dojikiri.AM3,{
- })
- sets.TP.Dojikiri.Acc.AM3.Haste = set_combine(sets.TP.Dojikiri.Acc.AM3,{
- })
- sets.TP.Dojikiri.MaxAcc.AM3.Haste = set_combine(sets.TP.Dojikiri.MaxAcc.AM3,{
- })
- sets.TP.Dojikiri.MaxAcc2.AM3.Haste = set_combine(sets.TP.Dojikiri.MaxAcc2.AM3,{
- })
- ---------------------------------------------------------AFTERMATH + SAM----------------------------------
- -- Dojikiri(AM3 Up: SAM Roll) TP Sets --
- sets.TP.Dojikiri.AM3.STP = set_combine(sets.TP.Dojikiri.AM3,{
- })
- sets.TP.Dojikiri.Acc.AM3.STP = set_combine(sets.TP.Dojikiri.Acc.AM3,sets.TP.Dojikiri.AM3.STP,{
- })
- sets.TP.Dojikiri.MaxAcc.AM3.STP = set_combine(sets.TP.Dojikiri.MaxAcc.AM3,sets.TP.Dojikiri.Acc.AM3.STP,{
- })
- sets.TP.Dojikiri.MaxAcc2.AM3.STP = set_combine(sets.TP.Dojikiri.MaxAcc2.AM3,sets.TP.Dojikiri.MaxAcc.AM3.STP,{
- })
- --------------------------------------------------------AFTERMATH + HASTE + SAM---------------------------
- -- Dojikiri(AM3 Up:Haste UP: SAM Roll) TP Sets --
- sets.TP.Dojikiri.AM3.Haste.STP = set_combine(sets.TP.Dojikiri.AM3,{
- })
- sets.TP.Dojikiri.Acc.AM3.Haste.STP = set_combine(sets.TP.Dojikiri.Acc.AM3,sets.TP.Dojikiri.AM3.Haste.STP,{
- })
- sets.TP.Dojikiri.MaxAcc.AM3.Haste.STP = set_combine(sets.TP.Dojikiri.MaxAcc.AM3,sets.TP.Dojikiri.Acc.AM3.Haste.STP,{
- })
- sets.TP.Dojikiri.MaxAcc2.AM3.Haste.STP = set_combine(sets.TP.Dojikiri.MaxAcc2.AM3,sets.TP.Dojikiri.MaxAcc.AM3.Haste.STP,{
- })
- -- ---------------------------------------------------------------------------
- -- Seigan TP Set --
- sets.TP.Seigan = {head="Kasuga Kabuto +1"}
- -- Third Eye TP Set --
- sets.TP['Third Eye'] = {legs="Sakonji Haidate +1"}
- sets.TP.Hybrid = set_combine(sets.Utility.PDT,{})
- sets.TP.Hybrid.Acc = set_combine(sets.TP.Hybrid,{})
- sets.TP.Hybrid.MaxAcc = set_combine(sets.TP.Hybrid.Acc,{})
- sets.TP.Hybrid.MaxAcc2 = set_combine(sets.TP.Hybrid.MaxAcc,{})
- -- WS Base Set --
- sets.WS = {
- sub="Bloodrain Strap",
- ammo="Stone Arrow",
- head="Sukeroku Hachi.",
- body={ name="Valorous Mail", augments={'Accuracy+25 Attack+25','Weapon skill damage +1%','STR+10','Accuracy+8','Attack+11',}},
- hands={ name="Valorous Mitts", augments={'Accuracy+23 Attack+23','"Store TP"+8','DEX+4','Accuracy+12',}},
- legs="Hiza. Hizayoroi +1",
- feet={ name="Valorous Greaves", augments={'Accuracy+25','"Store TP"+6',}},
- neck="Combatant's Torque",
- waist="Windbuffet Belt +1",
- left_ear="Telos Earring",
- right_ear="Moonshade Earring",
- left_ring="Enlivened Ring",
- right_ring="Petrov Ring",
- back={ name="Smertrios's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}},
- }
- -- Tachi: Fudo Sets --
- sets.WS["Tachi: Fudo"] = {
- head={ name="Valorous Mask", augments={'Accuracy+21 Attack+21','"Dbl.Atk."+5','Accuracy+11','Attack+15',}},
- body={ name="Valorous Mail", augments={'Accuracy+25 Attack+25','Weapon skill damage +1%','STR+10','Accuracy+8','Attack+11',}},
- hands={ name="Valorous Mitts", augments={'Weapon skill damage +5%','STR+4','Accuracy+12','Attack+7',}},
- legs="Hiza. Hizayoroi +1",
- feet={ name="Valorous Greaves", augments={'Attack+14','Weapon skill damage +4%','VIT+5','Accuracy+15',}},
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Telos Earring",
- right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
- left_ring="Ifrit Ring +1",
- right_ring="Karieyh Ring",
- back={ name="Smertrios's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}, }
- sets.WS["Tachi: Fudo"].Acc = set_combine(sets.WS["Tachi: Fudo"],{})
- sets.WS["Tachi: Fudo"].MaxAcc = set_combine(sets.WS["Tachi: Fudo"].Acc,{
- })
- sets.WS["Tachi: Fudo"].MaxAcc2 = set_combine(sets.WS["Tachi: Fudo"].MaxAcc,{})
- -- Tachi: Fudo(SAM Roll) Sets --
- sets.WS["Tachi: Fudo"].STP = set_combine(sets.WS["Tachi: Fudo"],{})
- sets.WS["Tachi: Fudo"].Acc.STP = set_combine(sets.WS["Tachi: Fudo"].Acc,{})
- sets.WS["Tachi: Fudo"].MaxAcc.STP = set_combine(sets.WS["Tachi: Fudo"].MaxAcc,{})
- -- Tachi: Fudo(Attack) Set --
- sets.WS["Tachi: Fudo"].ATT = set_combine(sets.WS["Tachi: Fudo"],{})
- -- Tachi: Shoha Sets --
- sets.WS["Tachi: Shoha"] = sets.WS["Tachi: Fudo"]
- sets.WS["Tachi: Shoha"].Acc = set_combine(sets.WS["Tachi: Shoha"],{})
- sets.WS["Tachi: Shoha"].MaxAcc = set_combine(sets.WS["Tachi: Shoha"].Acc,{})
- -- Tachi: Shoha(SAM Roll) Sets --
- sets.WS["Tachi: Shoha"].STP = set_combine(sets.WS["Tachi: Shoha"],{})
- sets.WS["Tachi: Shoha"].Acc.STP = set_combine(sets.WS["Tachi: Shoha"].Acc,{})
- sets.WS["Tachi: Shoha"].MaxAcc.STP = set_combine(sets.WS["Tachi: Shoha"].MaxAcc,{})
- -- Tachi: Kaiten Sets --
- sets.WS["Tachi: Kaiten"] = {}
- sets.WS["Tachi: Kaiten"].Acc = set_combine(sets.WS["Tachi: Kaiten"],{})
- sets.WS["Tachi: Kaiten"].MaxAcc = set_combine(sets.WS["Tachi: Kaiten"].Acc,{})
- -- Tachi: Kaiten(SAM Roll) Sets --
- sets.WS["Tachi: Kaiten"].STP = set_combine(sets.WS["Tachi: Kaiten"],{})
- sets.WS["Tachi: Kaiten"].Acc.STP = set_combine(sets.WS["Tachi: Kaiten"].Acc,{})
- sets.WS["Tachi: Kaiten"].MaxAcc.STP = set_combine(sets.WS["Tachi: Kaiten"].MaxAcc,{})
- -- Tachi: Kaiten(Attack) Set --
- sets.WS["Tachi: Kaiten"].ATT = set_combine(sets.WS["Tachi: Kaiten"],{})
- -- Tachi: Rana Sets --
- sets.WS["Tachi: Rana"] = sets.WS
- sets.WS["Tachi: Rana"].Acc = set_combine(sets.WS["Tachi: Rana"],{})
- sets.WS["Tachi: Rana"].MaxAcc = set_combine(sets.WS["Tachi: Rana"].Acc,{})
- -- Tachi: Rana(SAM Roll) Sets --
- sets.WS["Tachi: Rana"].STP = set_combine(sets.WS["Tachi: Rana"],{})
- sets.WS["Tachi: Rana"].Acc.STP = set_combine(sets.WS["Tachi: Rana"].Acc,{})
- sets.WS["Tachi: Rana"].MaxAcc.STP = set_combine(sets.WS["Tachi: Rana"].MaxAcc,{})
- -- Tachi: Ageha Sets --
- sets.WS["Tachi: Ageha"] = {
- head="Flam. Zucchetto +1",
- body="Flamma Korazin +1",
- hands="Flam. Manopolas +1",
- legs="Flamma Dirs +1",
- feet="Flam. Gambieras +1",
- neck="Sanctity Necklace",
- waist="Fotia Belt",
- left_ear="Digni. Earring",
- right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
- left_ring="Rufescent Ring",
- right_ring="Karieyh Ring",
- back={ name="Smertrios's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}},
- }
- sets.WS["Tachi: Ageha"].Acc = set_combine(sets.WS["Tachi: Ageha"],{})
- sets.WS["Tachi: Ageha"].MaxAcc = set_combine(sets.WS["Tachi: Ageha"].Acc,{})
- -- Tachi: Gekko Sets --
- sets.WS["Tachi: Gekko"] = sets.WS["Tachi: Ageha"]
- sets.WS["Tachi: Gekko"].Acc = set_combine(sets.WS["Tachi: Gekko"],{})
- sets.WS["Tachi: Gekko"].MaxAcc = set_combine(sets.WS["Tachi: Gekko"].Acc,{})
- -- Tachi: Hobaku Sets --
- sets.WS["Tachi: Hobaku"] = sets.WS["Tachi: Ageha"]
- sets.WS["Tachi: Hobaku"].Acc = set_combine(sets.WS["Tachi: Hobaku"],{})
- sets.WS["Tachi: Hobaku"].MaxAcc = set_combine(sets.WS["Tachi: Hobaku"].Acc,{})
- -- Tachi: Jinpu--
- sets.WS["Tachi: Jinpu"] = sets.WS["Tachi: Shoha"]
- -- Namas Arrow Sets --
- sets.WS["Namas Arrow"] = {}
- sets.WS["Namas Arrow"].Acc = set_combine(sets.WS["Namas Arrow"],{})
- sets.WS["Namas Arrow"].MaxAcc = set_combine(sets.WS["Namas Arrow"].Acc,{})
- -- Apex Arrow Sets --
- sets.WS["Apex Arrow"] = {
- sub="Bloodrain Strap",
- range={ name="Cibitshavore", augments={'STR+12','Rng.Acc.+10','"Store TP"+7',}},
- ammo="Eminent Arrow",
- hands="Kasuga Kote +1",
- feet="Waki. Sune-Ate",
- neck="Combatant's Torque",
- left_ear="Neritic Earring",
- right_ear="Moonshade Earring",
- left_ring="Hajduk Ring",
- right_ring="Karieyh Ring",
- back="Takaha Mantle",}
- sets.WS["Apex Arrow"].Acc = set_combine(sets.WS["Apex Arrow"],{
- body=""})
- sets.WS["Apex Arrow"].MaxAcc = set_combine(sets.WS["Apex Arrow"].Acc,{})
- sets.WS["Sonic Thrust"] = set_combine(sets.WS["Tachi: Fudo"], {
- neck="Fotia Gorget",
- waist="Fotia Belt"})
- sets.WS["Sonic Thrust"].Acc = set_combine(sets.WS["Sonic Thrust"],{})
- sets.WS["Sonic Thrust"].MaxAcc = set_combine(sets.WS["Sonic Thrust"].Acc,{})
- sets.WSDayBonus = {}
- -- JA Sets --
- sets.JA = {}
- sets.JA.Meditate = {
- head="Myochin Kabuto",
- hands="Sakonji Kote",
- back={ name="Smertrios's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}},}
- sets.JA["Ikishoten"] = {
- head="Sakonji Kabuto +1"}
- sets.JA["Warding Circle"] = {
- head="Myochin Kabuto"}
- sets.JA["Sengikori"] = {
- feet="Kasuga Sune-Ate +1"}
- -- Waltz Set --
- sets.Waltz = {}
- sets.Precast = {}
- -- Fastcast Set --
- sets.Precast.FastCast = {}
- sets.Midcast = {}
- -- Magic Haste Set --
- sets.Midcast.Haste = set_combine(sets.Utility.PDT,{body="Yoran Unity Shirt",})
- end
- local weaponskill = {
- Firesday = {'Liquefaction','Fusion'}, Earthsday = {'Scission','Gravitation'}, Watersday = {'Reverberation','Distortion'}, Windsday = {'Detonation','Fragmentation'},
- Iceday = {'Induration','Distortion'}, Lightningsday = {'Impaction','Fragmentation'}, Lightsday= {'Transfixion','Fusion'}, Darksday = {'Compression','Gravitation'},}
- -- weaponskill.Firesday = T{'Liquefaction','Fusion'}
- -- weaponskill.Earthsday = T{'Scission','Gravitation'}
- -- weaponskill.Watersday = T{'Reverberation','Distortion'}
- -- weaponskill.Windsday = T{'Detonation','Fragmentation'}
- -- weaponskill.Iceday = T{'Induration','Distortion'}
- -- weaponskill.Lightningsday = T{'Impaction','Fragmentation'}
- -- weaponskill.Lightsday = T{'Transfixion','Fusion'}
- -- weaponskill.Darksday = T{'Compression','Gravitation'}
- function notice(msg, color)
- if color == nil then
- color = 158
- end
- windower.add_to_chat(color, msg)
- end
- function file_unload()
- windower.send_command('unbind F9')
- windower.send_command('unbind F10')
- windower.send_command('unbind F11')
- windower.send_command('unbind F12')
- windower.send_command('unbind ^`')
- windower.send_command('unbind !`')
- windower.send_command('unbind F9')
- windower.send_command('unbind !F12')
- notice('Unbinding Samurai Interface.')
- end
- 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.action_type == 'Ranged Attack' and spell.target.distance > 24.9 then
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Out of Range]')
- return
- elseif spell.type == 'WeaponSkill' and player.status == 'Engaged' then
- if spell.skill == 'Archery' then
- if spell.target.distance > 16+target_distance then
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Out of Range]')
- return
- end
- else
- end
- end
- end
- function m_table_contains(t, searchVal0, searchVal1, searchVal2)
- if (t ~= nil) then
- for key,value in pairs(t) do
- if (searchVal0 ~= nil) then
- if (string.find(value, searchVal0)) then
- return true;
- end
- end
- if (searchVal1 ~= nil) then
- if (string.find(value, searchVal1)) then
- return true;
- end
- end
- if (searchVal2 ~= nil) then
- if (string.find(value, searchVal2)) then
- return true;
- end
- end
- end
- end
- return false;
- end
- function precast(spell,action)
- if spell.action_type == 'Ranged Attack' then
- if player.equipment.ammo == 'empty' then
- add_to_chat(123, spell.name..' Canceled: [Out of Ammo]')
- cancel_spell()
- return
- else
- equip(sets.Preshot)
- end
- end
- if spell.type == "WeaponSkill" and player.equipment.main == "Kogarasumaru" and player.tp > 999 then
- if spell.english == "Tachi: Fudo" and player.tp > 2999 and AM == 'off' then
- cancel_spell()
- windower.send_command('Tachi: Rana')
- else
- equipSet = sets.WS
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if Attack == 'ON' then
- equipSet = equipSet["ATT"]
- end
- --EDITED CODE--
- if equipSet[WsAccArray[WsAccIndex]] then
- equipSet = equipSet[WsAccArray[WsAccIndex]]
- end
- if equipSet[WeaponArray[WeaponIndex]] then
- equipSet = equipSet[WeaponArray[WeaponIndex]]
- end
- if buffactive.Sekkanoki then -- Equip Kasuga Kote When Sekkanoki Is On --
- equipSet = set_combine(equipSet,{hands="Kasuga Kote +1"})
- end
- if buffactive.Sengikori then -- Equip Unkai Sune-Ate +2 When Sengikori Is On --
- equipSet = set_combine(equipSet,{feet="Kasuga Sune-Ate +1"})
- end
- -- Equip Vulcan's Pearl When You Have 300 TP or Sekkanoki On or 200+ TP For Hagakure --
- -- if (spell.english == "Tachi: Fudo" or spell.english == "Tachi: Shoha") and (player.tp > 2999 or buffactive.Sekkanoki or (player.tp > 1999 and buffactive.Hagakure)) then
- -- equipSet = set_combine(equipSet,{ear1="Flame Pearl"})
- -- end
- if (m_table_contains(weaponskill[world['day']], spell['skillchain_a'], spell['skillchain_b'], spell['skillchain_c'])) then
- equipSet = set_combine(equipSet,{head="Gavialis Helm"})
- windower.add_to_chat(123, spell.skillchain_a);
- windower.add_to_chat(123, spell.skillchain_b);
- windower.add_to_chat(123, spell.skillchain_c);
- end
- if (spell.english == "Tachi: Fudo" or spell.english == "Tachi: Shoha") and world.time >= 1020 or world.time <= 420 then
- equipSet = set_combine(equipSet,{ear1="Lugra Earring +1"})
- end
- equip(equipSet)
- end
- end
- if spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- end
- if spell.action_type == 'Magic' then
- if string.find(spell.english,'Utsusemi') then
- if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] 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
- end
- if spell.type == "Waltz" then
- refine_waltz(spell,action)
- 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
- function midcast(spell,action)
- if spell.action_type == 'Ranged Attack' then
- equip(sets.Midshot.Acc)
- elseif spell.action_type == 'Magic' then
- if string.find(spell.english,'Utsusemi') then
- if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then
- send_command('@wait 1.7;cancel Copy Image*')
- end
- equip(sets.Midcast.Haste)
- elseif spell.english == 'Monomi: Ichi' then
- if buffactive['Sneak'] then
- send_command('@wait 1.7;cancel sneak')
- end
- equip(sets.Midcast.Haste)
- else
- equip(sets.Midcast.Haste)
- end
- end
- end
- function aftercast(spell,action)
- if not spell.interrupted then
- if spell.type == "WeaponSkill" then
- send_command('wait 0.2;gs c TP')
- if buffactive["Meikyo Shisui"] and player.tp < 1000 then
- send_command('cancel Meikyo Shisui')
- end
- elseif spell.english == "Warding Circle" then -- Warding Circle Countdown --
- send_command('wait 260;input /echo '..spell.name..': [WEARING OFF IN 10 SEC.];wait 10;input /echo '..spell.name..': [OFF]')
- end
- end
- status_change(player.status)
- end
- function status_change(new,old)
- if Armor == 'PDT' then
- equip(sets.Utility.PDT)
- elseif Armor == 'MDT' then
- equip(sets.Utility.MDT)
- elseif player.status == '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["Aftermath: Lv.3"] then
- equipSet = equipSet["AM3"]
- end
- -- haste 1 and two id 33 entrust haste id 580 magic haste cap 43.75%
- -- if count >= 15 then
- -- equipSet = equipSet["Haste"]
- -- end
- if buffactive.Seigan then -- Use Seigan Toggle For Seigan TP Set --
- equipSet = set_combine(equipSet,sets.TP.Seigan)
- end
- if buffactive["Third Eye"] then -- Use Third Eye Toggle For Third Eye TP Set --
- equipSet = set_combine(equipSet,sets.TP["Third Eye"])
- end
- equip(equipSet)
- else
- equipSet = sets.Idle
- if areasCities:contains(world.zone) then
- equipSet = sets.Idle.Town
- end
- if equipSet[IdleArray[IdleIndex]] then
- equipSet = equipSet[IdleArray[IdleIndex]]
- end
- if equipSet[WeaponArray[WeaponIndex]] then
- equipSet = equipSet[WeaponArray[WeaponIndex]]
- end
- equip(equipSet)
- end
- if Twilight == 'Twilight' then
- equip(sets.Twilight)
- end
- end
- -- ***********all buff names must be in lowercase to work*************
- function buff_change(buff,gain)
- buff = buff:lower();
- if buff == "hasso" then
- if hasso == nil then
- hasso = 0
- end
- if gain then
- seigan = 0
- hasso = world.zone_id
- add_to_chat(158,'HASSO: [ON]')
- elseif not gain and world.zone_id == hasso then
- add_to_chat(158,'HASSO: [OFF]')
- windower.send_command('Hasso')
- end
- end
- -- if buff == "encumbrance" and not gain then
- -- equip(sets.Twilight)
- -- end
- if buff == "seigan" then
- if seigan == nil then
- seigan = 0
- end
- if gain then
- hasso = 0
- seigan = world.zone_id
- add_to_chat(158,'Seigan: [ON]')
- elseif not gain and world.zone_id == seigan then
- add_to_chat(158,'Seigan: [OFF]')
- windower.send_command('Seigan')
- end
- end
- if buff == "food" then
- if fewd == nil then
- fewd = 0
- end
- if gain then
- fewd = world.zone_id
- elseif not gain and world.zone_id == fewd then
- add_to_chat(158,'FOOD: [OFF]')
- end
- end
- if buff == "aftermath: lv.3" then -- AM3 Timer/Countdown --
- if gain then
- AM = 'on'
- send_command('timers create "Aftermath: Lv.3" 180 down;wait 120;input /echo Aftermath: Lv.3 [WEARING OFF IN 60 SEC.];wait 30;input /echo Aftermath: Lv.3 [WEARING OFF IN 30 SEC.];wait 20;input /echo Aftermath: Lv.3 [WEARING OFF IN 10 SEC.]')
- else
- AM = 'off'
- send_command('timers delete "Aftermath: Lv.3"')
- add_to_chat(123,'AM3: [OFF]')
- end
- elseif buff == "perfect defense" then -- PD Timer --
- if gain then
- send_command('timers create "Perfect Defense" 57 down')
- else
- send_command('timers delete "Perfect Defense"')
- add_to_chat(123,'PD: [OFF]')
- end
- elseif buff == "yaegasumi" then -- Yaegasumi Timer --
- if gain then
- send_command('timers create "Yaegasumi" 45 down')
- else
- send_command('timers delete "Yaegasumi"')
- add_to_chat(123,'Yaegasumi: [OFF]')
- end
- elseif buff == 'weakness' then -- Weakness Timer --
- if gain then
- send_command('timers create "Weakness" 300 up')
- else
- send_command('timers delete "Weakness"')
- end
- end
- if buff == "sleep" then -- Equip Vim Torque +1 When You Are Asleep & Have 200+ HP --
- if gain and player.status == "Engaged" then
- equip(sets.buffs.sleep)
- disable('neck')
- else
- enable('neck')
- status_change(player.status)
- add_to_chat(158,'SLEEP IS OFF')
- end
- end
- if buff == 'doom' then
- if gain then
- disable('lring','rring')
- equip(sets.buffs.Doom)
- add_to_chat(123,'Doom rings ON')
- elseif not gain then
- enable('left_ring','right_ring')
- add_to_chat(123,'DOOM IS OFF')
- update_current_set()
- end
- end
- -- if buff == 'Reive Mark' then
- -- if gain then
- -- send_command('gs disable neck')
- -- equip(sets.buffs.reive)
- -- add_to_chat(123,'Rieve started')
- -- elseif not gain then
- -- enable('neck')
- -- add_to_chat(123,'Reive over')
- -- status_change(player.status)
- -- end
- -- end
- if (m_buff_change ~= nil) then
- m_buff_change(buff, gain);
- end
- end
- -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
- function self_command(command)
- bri_command(command)
- if command == 'C1' then -- Accuracy Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- add_to_chat(158,'Accuracy Level: '..AccArray[AccIndex])
- WsAccIndex = (WsAccIndex % #WsAccArray) +1
- status_change(player.status)
- --END MANUAL CODE--
- elseif command == 'C17' then -- Main Weapon Toggle --
- WeaponIndex = (WeaponIndex % #WeaponArray) + 1
- add_to_chat(158,'Main Weapon: '..WeaponArray[WeaponIndex])
- status_change(player.status)
- if WeaponIndex == 1 then
- equip(sets.Main.Kogarasumaru)
- elseif WeaponIndex == 2 then
- equip(sets.Main.Dojikiri)
- end
- elseif command == 'C5' then -- Auto Update Gear Toggle --
- status_change(player.status)
- add_to_chat(158,'Auto Update Gear')
- elseif command == 'C7' 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 == 'C15' 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 == 'C16' then -- Seigan Toggle --
- if Seigan == 'ON' then
- Seigan = 'OFF'
- add_to_chat(123,'Seigan Set: [Unlocked]')
- else
- Seigan = 'ON'
- add_to_chat(158,'Seigan Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C12' then -- Third Eye Toggle --
- if Third_Eye == 'ON' then
- Third_Eye = 'OFF'
- add_to_chat(123,'Third Eye Set: [Unlocked]')
- else
- Third_Eye = 'ON'
- add_to_chat(158,'Third Eye Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C11' 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 == 'C9' then -- Attack Toggle --
- if Attack == 'ON' then
- Attack = 'OFF'
- add_to_chat(123,'Attack: [OFF]')
- else
- Attack = 'ON'
- add_to_chat(158,'Attack: [ON]')
- end
- status_change(player.status)
- elseif command == 'C3' 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 == 'C8' then -- Distance Toggle --
- if player.target.distance then
- target_distance = math.floor(player.target.distance*10)/10
- add_to_chat(158,'Distance: '..target_distance)
- else
- add_to_chat(123,'No Target Selected')
- end
- elseif command == 'C10' then -- Cancel Meikyo Shisui --
- send_command('Cancel Meikyo Shisui')
- add_to_chat(123,'Meikyo Shisui: [OFF]')
- elseif command == 'C6' then -- Idle Toggle --
- IdleIndex = (IdleIndex % #IdleArray) + 1
- add_to_chat(158,'Idle Set: '..IdleArray[IdleIndex])
- status_change(player.status)
- elseif command == 'TP' then
- add_to_chat(158,'TP Return: ['..tostring(player.tp)..']')
- elseif command == 'vars' then
- windower.add_to_chat(158,string.format('[VariableCheck]: hasso [%d] -- haste%% [%s] count [%d] -- Acc [%s] -- SamRoll [%s] -- AM [%s] ',hasso, count_buffs(), count, AccArray[AccIndex], Samurai_Roll, AM));
- end
- if command == 'info' then
- index_guy = 317 -- can put the index of a mob here if you just want other info
- name_guy = "Orcish Fodder" -- put a name here for that if you want
- if windower.ffxi.get_mob_by_target('t') ~= nil then
- guy = windower.ffxi.get_mob_by_target('t')
- elseif windower.ffxi.get_mob_by_index(index_guy) ~= nil then
- guy = windower.ffxi.get_mob_by_index(index_guy)
- elseif windower.ffxi.get_mob_by_name(name_guy) ~= nil then
- guy = windower.ffxi.get_mob_by_name(name_guy)
- else
- send_command('input /echo No target selected for Info')
- return
- end
- if guy.valid_target == true then
- valid = "TRUE"
- else
- valid = "FALSE"
- end
- local x = math.abs(player.x-guy.x)
- local y = math.abs(player.y-guy.y)
- local z = math.abs(player.z-guy.z)
- windower.add_to_chat(50,guy.name..' Info!')
- windower.add_to_chat(50,'index '..guy.index..' ID '..guy.id..' movement speed '..guy.movement_speed..' valid target? '..valid)
- windower.add_to_chat(50,'facing '..guy.heading..' spawn type '..guy.spawn_type..' status '..guy.status)
- windower.add_to_chat(50,'X: '..guy.x..' Y: '..guy.y..' Z: '..guy.z..' race: '..guy.race)
- windower.add_to_chat(50,'DistX: '..x..' DistY: '..y..' DistZ: '..z..' HP: '..guy.hpp)
- end
- end
- function refine_waltz(spell,action)
- if spell.type ~= 'Waltz' then
- return
- end
- if spell.name == "Healing Waltz" or spell.name == "Divine Waltz" then
- return
- end
- local newWaltz = spell.english
- local waltzID
- local missingHP
- if spell.target.type == "SELF" then
- missingHP = player.max_hp - player.hp
- elseif spell.target.isallymember then
- local target = find_player_in_alliance(spell.target.name)
- local est_max_hp = target.hp / (target.hpp/100)
- missingHP = math.floor(est_max_hp - target.hp)
- end
- if missingHP ~= nil then
- if player.sub_job == 'DNC' then
- if missingHP < 40 and spell.target.name == player.name then
- add_to_chat(123,'Full HP!')
- cancel_spell()
- return
- elseif missingHP < 150 then
- newWaltz = 'Curing Waltz'
- waltzID = 190
- elseif missingHP < 300 then
- newWaltz = 'Curing Waltz II'
- waltzID = 191
- else
- newWaltz = 'Curing Waltz III'
- waltzID = 192
- end
- else
- return
- end
- end
- local waltzTPCost = {['Curing Waltz'] = 200, ['Curing Waltz II'] = 350, ['Curing Waltz III'] = 500}
- local tpCost = waltzTPCost[newWaltz]
- local downgrade
- if player.tp < tpCost then
- if player.tp < 200 then
- add_to_chat(123, 'Insufficient TP ['..tostring(player.tp)..']. Cancelling.')
- cancel_spell()
- return
- elseif player.tp < 350 then
- newWaltz = 'Curing Waltz'
- elseif player.tp < 500 then
- newWaltz = 'Curing Waltz II'
- end
- downgrade = 'Insufficient TP ['..tostring(player.tp)..']. Downgrading to '..newWaltz..'.'
- end
- if newWaltz ~= spell.english then
- send_command('@input /ja "'..newWaltz..'" '..tostring(spell.target.raw))
- if downgrade then
- add_to_chat(8, downgrade)
- end
- cancel_spell()
- return
- end
- if missingHP > 0 then
- add_to_chat(8,'Trying to cure '..tostring(missingHP)..' HP using '..newWaltz..'.')
- end
- end
- function find_player_in_alliance(name)
- for i,v in ipairs(alliance) do
- for k,p in ipairs(v) do
- if p.name == name then
- return p
- end
- end
- end
- end
- function sub_job_change(newSubjob, oldSubjob)
- select_default_macro_book()
- end
- function set_macro_page(set,book)
- if not tonumber(set) then
- add_to_chat(123,'Error setting macro page: Set is not a valid number ('..tostring(set)..').')
- return
- end
- if set < 1 or set > 10 then
- add_to_chat(123,'Error setting macro page: Macro set ('..tostring(set)..') must be between 1 and 10.')
- return
- end
- if book then
- if not tonumber(book) then
- add_to_chat(123,'Error setting macro page: book is not a valid number ('..tostring(book)..').')
- return
- end
- if book < 1 or book > 20 then
- add_to_chat(123,'Error setting macro page: Macro book ('..tostring(book)..') must be between 1 and 20.')
- return
- end
- send_command('@input /macro book '..tostring(book)..';wait .1;input /macro set '..tostring(set))
- else
- send_command('@input /macro set '..tostring(set))
- end
- end
- function select_default_macro_book()
- -- Default macro set/book
- if player.sub_job == 'WAR' then
- set_macro_page(1, 3)
- elseif player.sub_job == 'DNC' then
- set_macro_page(1, 3)
- elseif player.sub_job == 'DRK' then
- set_macro_page(1, 3)
- elseif player.sub_job == 'NIN' then
- set_macro_page(1, 3)
- else
- set_macro_page(1, 3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement