Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- AccIndex = 1
- AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For TP/WS/Hybrid. Default ACC Set Is LowACC. The First TP Set Of Your Main Weapon Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
- IdleIndex = 1
- IdleArray = {"Movement","Regen"} -- Default Idle Set Is Movement --
- Armor = 'None'
- Twilight = 0
- Seigan = 'OFF' -- Set Default Seigan Set ON or OFF Here --
- Third_Eye = 'OFF' -- Set Default Third Eye Set ON or OFF Here --
- target_distance = 5 -- Set Default Distance Here --
- send_command('input /macro book 1;wait .1;input /macro set 1') -- Change Default Macro Book Here --
- sc_map = {SC1="TachiFudo", SC2="TachiRana", SC3="Meditate"} -- 3 Additional Binds. Can Change Whatever JA/WS/Spells You Like Here. Remember Not To Use Spaces. --
- -- Idle/Town Sets --
- sets.Idle = {
- main="Kogarasumaru",
- head="Usk. Somen +1",
- neck="Da. Nodowa +1",
- body="Kyujutsugi",
- hands="Wakido kote +1",
- ring1="Karieyh Ring",
- ring2="Defending Ring",
- belt="Windbuffet Belt +1",
- back="Takaha mantle",
- legs="Hachiryu haidate",
- feet="Danzo Sune-Ate"}
- sets.Idle.Regen = {
- main="Kogarasumaru",
- head="Twilight helm",
- neck="Wiglen gorget",
- body="Kumarbi's akar",
- hands="Wakido kote +1",
- ring1="Karieyh ring",
- ring2="Sheltered Ring",
- belt="Windbuffet Belt +1",
- back="Takaha mantle",
- legs="Hachiryu haidate",
- feet="Danzo Sune-Ate"}
- sets.Idle.Movement = set_combine(sets.Idle.Regen,{
- head="Usk. Somen +1",
- ring2="Defending Ring"})
- sets.Twilight = {head="Twilight Helm",body="Twilight Mail"}
- -- TP Base Set --
- sets.TP = {}
- -- Kogarasumaru(AM3 Down) TP Sets --
- sets.TP.Kogarasumaru = {
- main="Kogarasumaru",
- sub="Bloodrain Strap",
- head="Sakonji kabuto +1",
- neck="Ganesha's Mala",
- ear1="Tripudio Earring",
- ear2="Trux Earring",
- body="Sakonji Domaru +1",
- hands="Wakido Kote +1",
- ring1="K'ayres Ring",
- ring2="Rajas Ring",
- back="Takaha mantle",
- waist="Windbuffet Belt +1",
- legs="Otronif Brais +1",
- feet="Otronif Boots +1"}
- sets.TP.Kogarasumaru.MidACC = set_combine(sets.TP.Kogarasumaru,{
- head="Yaoyotl Helm",
- neck="Da. Nodowa +1",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- back="Takaha Mantle",
- waist="Dynamic Belt +1"})
- sets.TP.Kogarasumaru.HighACC = set_combine(sets.TP.Kogarasumaru.MidACC,{
- neck="Da. Nodowa +1",
- body="Mes. Haubergeon",
- hands="Wakido kote +1",
- ear2="Zennaroi earring",
- ring1="Oneiros Ring",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Kogarasumaru(AM3 Up) TP Sets --
- sets.TP.Kogarasumaru.AM3 = set_combine(sets.TP.Kogarasumaru,{
- head="Sakonji Kabuto +1",
- ear1="Tripudio Earring",
- ear2="Brutal Earring",
- back="Takaha Mantle"})
- sets.TP.Kogarasumaru.MidACC.AM3 = set_combine(sets.TP.Kogarasumaru.AM3,{
- head="Yaoyotl Helm",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- waist="Dynamic Belt +1",
- feet="Whirlpool Greaves"})
- sets.TP.Kogarasumaru.HighACC.AM3 = set_combine(sets.TP.Kogarasumaru.MidACC.AM3,{
- neck="Da. Nodowa +1",
- body="Mes. Haubergeon",
- ring1="Patricius Ring",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Kogarasumaru(AM3 Down: Ionis) TP Sets --
- sets.TP.Kogarasumaru.Ionis = set_combine(sets.TP.Kogarasumaru,{})
- sets.TP.Kogarasumaru.MidACC.Ionis = set_combine(sets.TP.Kogarasumaru.Ionis,{
- head="Yaoyotl Helm",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- back="Takaha Mantle",
- waist="Dynamic Belt +1",
- feet="Whirlpool Greaves"})
- sets.TP.Kogarasumaru.HighACC.Ionis = set_combine(sets.TP.Kogarasumaru.MidACC.Ionis,{
- neck="Da. Nodowa +1",
- body="Mes. Haubergeon",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Kogarasumaru(AM3 Up: Ionis) TP Sets --
- sets.TP.Kogarasumaru.AM3.Ionis = set_combine(sets.TP.Kogarasumaru.AM3,{})
- sets.TP.Kogarasumaru.MidACC.AM3.Ionis = set_combine(sets.TP.Kogarasumaru.AM3.Ionis,{
- head="Yaoyotl Helm",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- waist="Dynamic Belt +1",
- feet="Whirlpool Greaves"})
- sets.TP.Kogarasumaru.HighACC.AM3.Ionis = set_combine(sets.TP.Kogarasumaru.MidACC.AM3.Ionis,{
- neck="Da. Nodowa +1",
- body="Mes. Haubergeon",
- ring1="Patricius Ring",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Tsurumaru TP Sets --
- sets.TP.Tsurumaru = {
- main="Tsurumaru",
- sub="Bloodrain Strap",
- head="Otomi Helm",
- neck="Ganesha's Mala",
- ear1="Trux Earring",
- ear2="Brutal Earring",
- body="Sakonji Domaru +1",
- hands="Wakido Kote +1",
- ring1="K'ayres Ring",
- ring2="Rajas Ring",
- back="Takaha Mantle",
- waist="Windbuffet belt +1",
- legs="Otronif Brais +1",
- feet="Otronif Boots +1"}
- sets.TP.Tsurumaru.MidACC = set_combine(sets.TP.Tsurumaru,{
- head="Yaoyotl Helm",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring"})
- sets.TP.Tsurumaru.HighACC = set_combine(sets.TP.Tsurumaru.MidACC,{
- neck="Da. Nodowa +1",
- body="Mes. Haubergeon",
- ring1="Oneiros Ring",
- ring2="Rajas Ring",
- legs="Otronif brais +1"})
- -- Tsurumaru(Ionis) TP Sets --
- sets.TP.Tsurumaru.Ionis = set_combine(sets.TP.Tsurumaru,{
- head="Otomi helm",
- sub="Bloodrain Strap",
- body="Mes. Haubergeon",
- Ring1="Oneiros ring",
- Ring2="Rajas ring",
- waist="Windbuffet Belt +1"})
- sets.TP.Tsurumaru.MidACC.Ionis = set_combine(sets.TP.Tsurumaru.Ionis,{
- head="Yaoyotl Helm",
- ear1="Trux Earring",
- ear2="Brutal Earring",
- back="Takaha Mantle"})
- sets.TP.Tsurumaru.HighACC.Ionis = set_combine(sets.TP.Tsurumaru.MidACC.Ionis,{
- head="Yaoyotl helm",
- neck="Da. Nodowa +1",
- body="Mes. Haubergeon",
- hands="Wakido Kote +1",
- ear1="Steelflash earring",
- ear2="Bladeborn earring",
- ring1="Mars's Ring",
- ring2="Rajas Ring",
- legs="Xaddi cuisses",
- feet="Otronif boots +1"})
- -- Amanomurakumo(AM Down) TP Sets --
- sets.TP.Amanomurakumo = {
- main="Amanomurakumo",
- head="Yaoyotl Helm",
- neck="Ganesha's mala",
- ear1="Tripudio earring",
- ear2="Brutal earring",
- body="Sakonji domaru +1",
- hands="Wakido kote +1",
- ring1="K'ayres ring",
- ring2="Rajas ring",
- back="Takaha mantle",
- waist="Windbuffet belt +1",
- legs="Otronif Brais +1",
- feet="Otronif Boots +1"}
- sets.TP.Amanomurakumo.MidACC = set_combine(sets.TP.Amanomurakumo,{
- head="Yaoyotl Helm",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- back="Takaha Mantle",
- waist="Dynamic Belt +1"})
- sets.TP.Amanomurakumo.HighACC = set_combine(sets.TP.Amanomurakumo.MidACC,{
- neck="Iqabi Necklace",
- hands="Buremte Gloves",
- ring1="Patricius Ring",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Amanomurakumo(AM Up) TP Sets --
- sets.TP.Amanomurakumo.AM = set_combine(sets.TP.Amanomurakumo,{})
- sets.TP.Amanomurakumo.MidACC.AM = set_combine(sets.TP.Amanomurakumo.AM,{
- head="Yaoyotl Helm",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- back="Takaha Mantle",
- waist="Dynamic Belt +1",
- feet="Whirlpool Greaves"})
- sets.TP.Amanomurakumo.HighACC.AM = set_combine(sets.TP.Amanomurakumo.MidACC.AM,{
- neck="Iqabi Necklace",
- body="Unkai Domaru +2",
- hands="Buremte Gloves",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Amanomurakumo(AM Down: Ionis) TP Sets --
- sets.TP.Amanomurakumo.Ionis = set_combine(sets.TP.Amanomurakumo,{})
- sets.TP.Amanomurakumo.MidACC.Ionis = set_combine(sets.TP.Amanomurakumo.Ionis,{
- head="Yaoyotl Helm",
- feet="Whirlpool Greaves"})
- sets.TP.Amanomurakumo.HighACC.Ionis = set_combine(sets.TP.Amanomurakumo.MidACC.Ionis,{
- neck="Iqabi Necklace",
- body="Mes. Haubergeon",
- hands="Buremte Gloves",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Amanomurakumo(AM Up: Ionis) TP Sets --
- sets.TP.Amanomurakumo.AM.Ionis = set_combine(sets.TP.Amanomurakumo.AM,{})
- sets.TP.Amanomurakumo.MidACC.AM.Ionis = set_combine(sets.TP.Amanomurakumo.AM.Ionis,{
- head="Yaoyotl Helm",
- back="Takaha Mantle",
- waist="Dynamic Belt +1",
- feet="Whirlpool Greaves"})
- sets.TP.Amanomurakumo.HighACC.AM.Ionis = set_combine(sets.TP.Amanomurakumo.MidACC.AM.Ionis,{
- neck="Iqabi Necklace",
- hands="Buremte Gloves",
- ring1="Patricius Ring",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Masamune TP Sets --
- sets.TP.Masamune = {
- main="Masamune",
- sub="Duplus Grip",
- ammo="Hagneia Stone",
- head="Otomi Helm",
- neck="Ganesha's Mala",
- ear1="Trux Earring",
- ear2="Brutal Earring",
- body="Wakido Domaru +1",
- hands="Wakido Kote +1",
- ring1="K'ayres Ring",
- ring2="Rajas Ring",
- back="Misuuchi Kappa",
- waist="Windbuffet Belt +1",
- legs="Otronif Brais +1",
- feet="Otronif Boots +1"}
- sets.TP.Masamune.MidACC = set_combine(sets.TP.Masamune,{
- ammo="Jukukik Feather",
- head="Yaoyotl Helm",
- back="Takaha Mantle",
- waist="Dynamic Belt +1",
- feet="Whirlpool Greaves"})
- sets.TP.Masamune.HighACC = set_combine(sets.TP.Masamune.MidACC,{
- neck="Ziel Charm",
- body="Mes. Haubergeon",
- hands="Buremte Gloves",
- ring1="Patricius Ring",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Masamune(Ionis) TP Sets --
- sets.TP.Masamune.Ionis = set_combine(sets.TP.Masamune,{})
- sets.TP.Masamune.MidACC.Ionis = set_combine(sets.TP.Masamune.Ionis,{
- ammo="Jukukik Feather",
- head="Yaoyotl Helm",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- back="Takaha Mantle",
- waist="Dynamic Belt +1",
- feet="Whirlpool Greaves"})
- sets.TP.Masamune.HighACC.Ionis = set_combine(sets.TP.Masamune.MidACC.Ionis,{
- neck="Ziel Charm",
- body="Mes. Haubergeon",
- hands="Buremte Gloves",
- ring1="Patricius Ring",
- ring2="Mars's Ring",
- feet="Waki. Sune-Ate +1"})
- -- Seigan TP Set --
- sets.TP.Seigan = {head="Unkai Kabuto +2"}
- -- Third Eye TP Set --
- sets.TP['Third Eye'] = {legs="Saotome Haidate +2"}
- -- PDT/MDT Sets --
- sets.PDT = {
- head="Otronif Mask +1",
- neck="Agitator's Collar",
- ear1="Trux Earring",
- ear2="Tripudio Earring",
- body="Otro. Harness +1",
- hands="Otronif Gloves",
- ring1="Patricius Ring",
- ring2="Defending Ring",
- back="Repulse Mantle",
- waist="Flume Belt",
- legs="Otronif Brais +1",
- feet="Otronif Boots +1"}
- sets.MDT = set_combine(sets.PDT,{
- head="Otronif mask +1",
- neck="Twilight torque",
- ear1="Hearty Earring",
- ear2="Sanare Earring",
- hands="Wakido kote +1",
- body="Nocturnus mail",
- ring1="Shadow Ring",
- back="Engulfer Cape +1",
- legs="Osmium cuisses",
- waist="Resolute Belt"})
- -- Hybrid Sets --
- sets.TP.Hybrid = set_combine(sets.PDT,{
- ammo="Hagneia stone",
- ear1="Brutal Earring",
- ear2="Tripudio Earring",
- hands="Sakonji Kote +1",
- ring1="Dark Ring",
- ring2="Defending Ring",
- back="Takaha Mantle"})
- sets.TP.Hybrid.MidACC = set_combine(sets.TP.Hybrid,{
- head="Yaoyotl Helm",
- body="Mes. Haubergeon",
- waist="Dynamic Belt +1",
- feet="Whirlpool Greaves"})
- sets.TP.Hybrid.HighACC = set_combine(sets.TP.Hybrid.MidACC,{
- neck="Ziel Charm",
- back="Takaha Mantle",
- feet="Waki. Sune-Ate +1"})
- -- WS Base Set --
- sets.WS = {
- head="Gavialis Helm",
- neck="Ganesha's Mala",
- ear1="Vulcan's Pearl",
- ear2="Brutal Earring",
- body="Mes. Haubergeon",
- hands="Buremte gloves",
- ring1="Ifrit Ring +1",
- ring2="Karieyh Ring",
- back="Letalis Mantle",
- waist="Caudata Belt",
- legs="Miki. Cuisses",
- feet="Sak. Sune-Ate +1"}
- -- WS Sets --
- sets.WS["Tachi: Fudo"] = {
- head="Otomi Helm",
- neck="Light gorget",
- ear1="Vulcan's pearl",
- ear2="Moonshade Earring",
- body="Phorcys Korazin",
- hands="Mikinaak gauntlets",
- ring1="Ifrit Ring +1",
- ring2="Karieyh Ring",
- back="Buquwik Cape",
- waist="Metalsinger Belt",
- legs="Mikinaak cuisses",
- feet="Sak. sune-ate +1"}
- sets.WS["Tachi: Fudo"].MidACC = set_combine(sets.WS["Tachi: Fudo"],{
- head="Otomi Helm",
- hands="Boor bracelets",
- waist="Metalsinger belt"})
- sets.WS["Tachi: Fudo"].HighACC = set_combine(sets.WS["Tachi: Fudo"].MidACC,{
- head="Yayotl helm",
- neck="Light Gorget",
- waist="Light Belt",
- back="Letalis Mantle",
- legs="Miki. Cuisses"})
- sets.WS["Tachi: Shoha"] = {
- head="Otomi Helm",
- neck="Ganesha's Mala",
- ear1="Moonshade Earring",
- ear2="Brutal Earring",
- body="Phorcys Korazin",
- hands="Boor Bracelets",
- ring1="Ifrit's Ring",
- ring2="Karieyh Ring",
- back="Buquwik Cape",
- waist="Windbuffet Belt +1",
- legs="Wakido Haidate +1",
- feet="Ejekamal boots"}
- sets.WS["Tachi: Shoha"].MidACC = set_combine(sets.WS["Tachi: Shoha"],{
- head="Yaoyotl Helm",
- neck="Thunder Gorget",
- hands="Miki. Gauntlets",
- waist="Thunder Belt"})
- sets.WS["Tachi: Shoha"].HighACC = set_combine(sets.WS["Tachi: Shoha"].MidACC,{
- body="Sakonji Domaru +1",
- back="Takaha Mantle",
- legs="Miki. Cuisses",
- feet="Waki. Sune-Ate +1"})
- sets.WS["Tachi: Kaiten"] = {
- head="Otomi Helm",
- neck="Light Gorget",
- ear1="Vulcan's Pearl",
- ear2="Brutal Earring",
- body="Phorcys Korazin",
- hands="Boor Bracelets",
- ring1="Ifrit's Ring +1",
- ring2="Karieyh Ring",
- back="Buquwik Cape",
- waist="Light Belt",
- legs="Wakido Haidate +1",
- feet="Sak. Sune-Ate +1"}
- sets.WS["Tachi: Kaiten"].MidACC = set_combine(sets.WS["Tachi: Kaiten"],{
- head="Yaoyotl Helm",
- hands="Miki. Gauntlets",
- feet="Whirlpool Greaves"})
- sets.WS["Tachi: Kaiten"].HighACC = set_combine(sets.WS["Tachi: Kaiten"].MidACC,{
- body="Mes. Haubergeon",
- back="Takaha Mantle",
- legs="Miki. Cuisses",
- feet="Waki. Sune-Ate +1"})
- sets.WS["Tachi: Rana"] = {
- head="Otomi Helm",
- neck="Shadow Gorget",
- ear1="Vulcan's Pearl",
- ear2="Brutal Earring",
- body="Phorcys Korazin",
- hands="Boor Bracelets",
- ring1="Ifrit's Ring +1",
- ring2="Karieyh Ring",
- back="Buquwik Cape",
- waist="Shadow Belt",
- legs="Wakido Haidate +1",
- feet="Sak. Sune-Ate +1"}
- sets.WS["Tachi: Rana"].MidACC = set_combine(sets.WS["Tachi: Rana"],{
- head="Yaoyotl Helm",
- hands="Miki. Gauntlets",
- feet="Whirlpool Greaves"})
- sets.WS["Tachi: Rana"].HighACC = set_combine(sets.WS["Tachi: Rana"].MidACC,{
- body="Mes. Haubergeon",
- back="Takaha Mantle",
- legs="Miki. Cuisses",
- feet="Waki. Sune-Ate +1"})
- sets.WS["Namas Arrow"] = {
- ammo="Tulfaire Arrow",
- head="Sakonji Kabuto +1",
- neck="Light Gorget",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Phorcys Korazin",
- hands="Unkai Kote +2",
- ring1="Ifrit's Ring +1",
- ring2="Karieyh Ring",
- back="Buquwik Cape",
- waist="Light Belt",
- legs="Wakido Haidate +1",
- feet="Waki. Sune-Ate +1"}
- sets.WS["Namas Arrow"].MidACC = set_combine(sets.WS["Namas Arrow"],{
- body="Kyujutsugi"})
- sets.WS["Namas Arrow"].HighACC = set_combine(sets.WS["Namas Arrow"].MidACC,{
- ring1="Hajduk Ring",
- ring2="Hajduk Ring",
- back="Jaeger Mantle"})
- sets.WS["Apex Arrow"] = {
- ammo="Tulfaire Arrow",
- head="Sakonji Kabuto +1",
- neck="Breeze Gorget",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Phorcys Korazin",
- hands="Unkai Kote +2",
- ring1="Bellona's Ring",
- ring2="Stormsoul Ring",
- back="Buquwik Cape",
- waist="Thunder Belt",
- legs="Wakido Haidate +1",
- feet="Waki. Sune-Ate +1"}
- sets.WS["Apex Arrow"].MidACC = set_combine(sets.WS["Apex Arrow"],{
- body="Kyujutsugi"})
- sets.WS["Apex Arrow"].HighACC = set_combine(sets.WS["Apex Arrow"].MidACC,{
- ring1="Hajduk Ring",
- ring2="Hajduk Ring"})
- -- JA Sets --
- sets.JA = {}
- sets.JA.Meditate = {head="Wakido Kabuto",hands="Sakonji Kote +1",back="Takaha Mantle"}
- sets.JA["Warding Circle"] = {head="Wakido Kabuto"}
- sets.JA["Sekkanoki"] = {hands="Unkai Kote +2"}
- sets.JA["Meikyo Shisui"] = {feet="Sak. Sune-Ate +1"}
- -- Waltz Set --
- sets.Waltz = {}
- sets.Precast = {}
- -- Fastcast Set --
- sets.Precast.FastCast = {
- neck="Orunmila's torque",
- ear1="Loquac. Earring",
- ring1="Prolix Ring",}
- sets.Midcast = {}
- -- Magic Haste Set --
- sets.Midcast.Haste = set_combine(sets.PDT,{})
- end
- function pretarget(spell,action)
- if (spell.type:endswith('Magic') or spell.type == "Ninjutsu") 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 290 --
- cancel_spell()
- add_to_chat(123, spell.name .. ' Canceled: ['..player.tp..' TP]')
- elseif (spell.english == 'Ranged' and spell.target.distance > 24.9) or (player.status == 'Engaged' and (((spell.english == "Namas Arrow" or spell.english == "Apex Arrow") and spell.target.distance > 16+target_distance) or (spell.type == "WeaponSkill" and spell.english ~= "Namas Arrow" and spell.english ~= "Apex Arrow" and spell.target.distance > target_distance))) then -- Cancel Ranged Attack or WS If You Are Out Of Range --
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Out of Range]')
- return
- end
- end
- function precast(spell,action)
- if spell.type == "WeaponSkill" then
- if player.status ~= 'Engaged' then -- Cancel WS If You Are Not Engaged. Can Delete It If You Don't Need It --
- cancel_spell()
- add_to_chat(123,'Unable To Use WeaponSkill: [Disengaged]')
- return
- else
- equipSet = sets.WS
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if buffactive.Sekkanoki then -- Equip Unkai Kote +2 When Sekkanoki Is On --
- equipSet = set_combine(equipSet,{hands="Unkai Kote +2"})
- end
- if buffactive.Sengikori then -- Equip Unkai Sune-ate +2 When Sengikori Is On --
- equipSet = set_combine(equipSet,{feet="Unkai Sune-ate +2"})
- end
- if (spell.english == "Tachi: Fudo" or spell.english == "Tachi: Shoha") and (player.tp > 2990 or buffactive.Sekkanoki or (player.tp > 1990 and buffactive.Hagakure)) then -- Equip Vulcan's Pearl When You Have 300 TP or Sekkanoki On or 200+ TP For Hagakure --
- equipSet = set_combine(equipSet,{ear1="Vulcan's Pearl"})
- end
- equip(equipSet)
- end
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- elseif spell.type:endswith('Magic') or spell.type == 'Ninjutsu' 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
- elseif spell.type == "Waltz" then
- equip(sets.Waltz)
- elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- if Twilight == 1 then
- equip(sets.Twilight)
- end
- end
- function midcast(spell,action)
- if spell.type:endswith('Magic') or spell.type == 'Ninjutsu' 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 spell.type == "WeaponSkill" and not spell.interrupted then
- send_command('wait 0.2;gs c TP')
- elseif spell.english == "Warding Circle" and not spell.interrupted then -- Warding Circle Countdown --
- send_command('wait 260;input /echo '..spell.name..' Effect: [WEARING OFF IN 10 SEC.];wait 10;input /echo '..spell.name..' Effect: [OFF]')
- end
- status_change(player.status)
- end
- function status_change(new,old)
- if player.equipment.range ~= 'empty' then
- disable('range','ammo')
- else
- enable('range','ammo')
- end
- if Armor == 'PDT' then
- equip(sets.PDT)
- elseif Armor == 'MDT' then
- equip(sets.MDT)
- elseif new == 'Engaged' then
- equipSet = sets.TP
- if Armor == 'Hybrid' and equipSet["Hybrid"] then
- equipSet = equipSet["Hybrid"]
- end
- if equipSet[player.equipment.main] then
- equipSet = equipSet[player.equipment.main]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if buffactive["Aftermath: Lv.3"] and equipSet["AM3"] then
- equipSet = equipSet["AM3"]
- end
- if buffactive.Aftermath and equipSet["AM"] then
- equipSet = equipSet["AM"]
- end
- if buffactive.Ionis and equipSet["Ionis"] then
- equipSet = equipSet["Ionis"]
- end
- if buffactive.Seigan and Seigan == 'ON' then -- Use Seigan Toggle For Seigan TP Set --
- equipSet = set_combine(equipSet,sets.TP.Seigan)
- end
- if buffactive["Third Eye"] and Third_Eye == 'ON' then -- Use Third Eye Toggle For Third Eye TP Set --
- equipSet = set_combine(equipSet,sets.TP["Third Eye"])
- end
- equip(equipSet)
- else
- equip(sets.Idle[IdleArray[IdleIndex]])
- end
- if buffactive.doom then -- Lock Twilight When You Are Doomed --
- equip(sets.Twilight)
- disable('head','body')
- end
- if Twilight == 1 then
- equip(sets.Twilight)
- end
- end
- function buff_change(buff,gain)
- buff = string.lower(buff)
- if buff == "doom" and not gain then
- enable('head','body')
- elseif buff == "aftermath: lv.3" then -- AM3 Timer/Countdown --
- if gain then
- 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
- send_command('timers delete "Aftermath: Lv.3"')
- add_to_chat(123,'AM3: [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" and gain and player.hp > 200 and player.status == "Engaged" then -- Equip Berserker's Torque When You Are Asleep & Have 200+ HP --
- equip({neck="Berserker's Torque"})
- else
- if not midaction() then
- status_change(player.status)
- end
- end
- end
- -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
- function self_command(command)
- if command == 'C1' then -- Accuracy Level Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- add_to_chat(158,'Accuracy Level: '..AccArray[AccIndex])
- status_change(player.status)
- elseif command == 'C5' then -- Auto Update Gear Toggle --
- status_change(player.status)
- add_to_chat(158,'Auto Update Gear')
- elseif command == 'C2' then -- Hybrid Toggle --
- if Armor == 'Hybrid' then
- Armor = 'None'
- add_to_chat(123,'Hybrid Set: [Unlocked]')
- else
- Armor = 'Hybrid'
- add_to_chat(158,'Hybrid Set: '..AccArray[AccIndex])
- end
- status_change(player.status)
- 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 == 'C9' 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 == 'C10' 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 == 'C3' then -- Twilight Toggle --
- if Twilight == 1 then
- Twilight = 0
- add_to_chat(123,'Twilight Set: [Unlocked]')
- else
- Twilight = 1
- 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 == '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:match('^SC%d$') then
- send_command('//'..sc_map[command])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement