Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------
- -- *** Arnan Red Mage Gearswap Lua File *** --
- ----------------------------------------------
- -- Commands --
- -- In Game: //gs c, Macro: /console gs c, Bind: gs c --
- -- gs c acc Toggle accuracy tier for TP/WS
- -- gs c idle Toggle idle sets
- -- gs c pdt PDT on/off
- -- gs c mdt MDT on/off
- -- gs c kiting Kiting on/off
- -- gs c mb Magic Burst on/off
- ----------
- -- Sets --
- ----------
- function get_sets()
- AccIndex = 1
- AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For TP/WS/Magic. Default ACC Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
- IdleIndex = 1
- IdleArray = {"Full","DT","Warp"} -- Default Idle Set Is Movement --
- Armor = 'None'
- StunIndex = 0
- Lock_Main = 'OFF' -- Set Default Lock Main Weapon ON or OFF Here --
- Obi = 'ON' -- Turn Default Obi ON or OFF Here --
- LowNuke = 'ON' -- Set Default Low Tier Nuke ON or OFF Here --
- MB = 'ON' -- Set Default MB ON or OFF Here --
- Elemental_Staff = 'OFF' -- Set Default Precast Elemental Staff ON or OFF Here --
- Enspells = 'OFF' -- Set Default Enspells ON or OFF Here --
- target_distance = 6 -- Set Default Distance Here --
- send_command('input /macro book 7;wait .1;input /macro set 1') -- Change Default Macro Book Here --
- add_to_chat(158,'-----[Red Mage Lua Loaded]-----')
- add_to_chat(155,'Accuracy Level: ' .. AccArray[AccIndex])
- add_to_chat(155,'Idle Set: ' .. IdleArray[IdleIndex])
- add_to_chat(158,'-----[Weapon Skill Keybinds]-----')
- add_to_chat(155,'F7 - Sanguine Blade, F9 - Death Blossom, F10 - Requiescat, F11 - Savage Blade, Delete - Chant du Cygne')
- add_to_chat(155,'F12 - Last Stand (mule), Alt+F12 - Leaden Salute (mule) Alt+Delete - Savage Blade (mule)')
- Low_Tier_Spells = S{
- 'Fire','Aero','Water','Blizzard','Stone','Thunder','Fire II','Aero II','Water II',
- 'Blizzard II','Stone II','Thunder II'}
- Non_Obi_Spells = S{
- 'Burn','Choke','Drown','Frost','Rasp','Shock','Impact','Anemohelix','Cryohelix',
- 'Geohelix','Hydrohelix','Ionohelix','Luminohelix','Noctohelix','Pyrohelix'}
- Cure_Spells = {"Cure","Cure II","Cure III","Cure IV"} -- Cure Degradation --
- Curaga_Spells = {"Curaga","Curaga II"} -- Curaga Degradation --
- -- Sucellos's Cape Augments --
- WSDCape={ name="Sucellos's Cape", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}
- INTCape={ name="Sucellos's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','"Mag.Atk.Bns."+10',}}
- STPCape={ name="Sucellos's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Store TP"+10','Phys. dmg. taken-10%',}}
- CritCape={ name="Sucellos's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}}
- --------------------
- -- Key Binds Load --
- --------------------
- -- Key Bind Toggles (The Same for all my job files) (Ctrl Key) --
- send_command('bind ^A input //gs c acc')
- send_command('bind ^D input //gs c pdt')
- send_command('bind ^H input //gs c hybrid')
- send_command('bind ^I input //gs c idle')
- send_command('bind ^K input //gs c kiting')
- -- Stuff to control both Mules (Ctrl Key) --
- send_command('bind ^X input /pcmd add ojomo;pause 5;input /pcmd add oeogo')
- send_command('bind ^3 input //send oeogo //ma Cure 3 Arnan')
- send_command('bind ^4 input //send oeogo //ma Cure 4 Arnan')
- send_command('bind ^5 input //send oeogo //ma Refresh Arnan')
- send_command('bind ^7 input //send oeogo //ma haste ojomo')
- send_command('bind ^8 input //send oeogo //ma Dia 2 <t>;pause 2;input //send ojomo //ja Light Shot <t>')
- send_command('bind ^9 input //send ojomo //follow arnan;pause 0.1;input //send oeogo //follow arnan')
- send_command('bind ^0 input //send ojomo //assist arnan;pause 0.1;input //send oeogo //assist arnan')
- send_command('bind ^- input //send ojomo /attack <t>;pause 0.1;input //send oeogo /attack <t>')
- -- COR (Mule) Job Ability Key Binds (Alt Key) --
- send_command('bind !7 input //send ojomo //ja Crooked Cards <me>')
- send_command('bind !8 input //send ojomo //ja Snake Eye <me>')
- send_command('bind !9 input //send ojomo //ja Fold <me>')
- send_command('bind !0 input //send ojomo //ja Random Deal <me>')
- -- COR (mule) Phantom Roll Key Binds (Alt Key) --
- send_command('bind !A input //send ojomo //ja Allies\' Roll <me>')
- send_command('bind !B input //send ojomo //ja Bolter\'s Roll <me>')
- send_command('bind !C input //send ojomo //ja Chaos Roll <me>')
- send_command('bind !D input //send ojomo //ja Dancer\'s Roll <me>')
- send_command('bind !E input //send ojomo //ja Evoker\s Roll <me>')
- send_command('bind !F input //send ojomo //ja Fighter\'s Roll <me>')
- send_command('bind !G input //send ojomo //ja Gallant\'s Roll <me>')
- send_command('bind !H input //send ojomo //ja Hunter\'s Roll <me>')
- send_command('bind !Q input //send ojomo //ja Warlock\'s Roll <me>')
- send_command('bind !R input //send ojomo //ja Rogue\'s Roll <me>')
- send_command('bind !S input //send ojomo //ja Samurai Roll <me>')
- send_command('bind !T input //send ojomo //ja Tactician\'s Roll <me>')
- send_command('bind !W input //send ojomo //ja Wizard\'s Roll <me>')
- send_command('bind !X input //send ojomo //ja Corsair\'s Roll <me>')
- -- GEO (Mule) Job Ability Key Binds (Win Key) --
- send_command('bind @3 input //send oeogo //ja Radial Arcana <me>')
- send_command('bind @5 input //send oeogo //ma Refresh <me>')
- send_command('bind @7 input //send oeogo //ja Blaze of Glory <me>')
- send_command('bind @8 input //send oeogo //ja Ecliptic Attrition <me>')
- send_command('bind @9 input //send oeogo //ja Life Cycle <me>')
- send_command('bind @0 input //send oeogo //ja Lasting Emanation <me>')
- -- GEO (Mule) Nuke Key Binds (Win Key) --
- send_command('bind @F1 input //send oeogo /ma Aero V <t>;pause 0.5;input //send oeogo /ma Aero IV <t>;pause 0.5;input //send oeogo /ma Aero III <t>;')
- send_command('bind @F2 input //send oeogo /ma Fire V <t>;pause 0.5;input //send oeogo /ma Fire IV <t>;pause 0.5;input //send oeogo /ma Fire III <t>;')
- send_command('bind @F3 input //send oeogo /ma Thunder V <t>;pause 0.5;input //send oeogo /ma Thunder IV <t>;pause 0.5;input //send oeogo /ma Thunder III <t>;')
- send_command('bind @F4 input //send oeogo /ma Stone V <t>;pause 0.5;input //send oeogo /ma Stone IV <t>;pause 0.5;input //send oeogo /ma Stone III <t>;')
- send_command('bind @F5 input //send oeogo /ma Water V <t>;pause 0.5;input //send oeogo /ma Water IV <t>;pause 0.5;input //send oeogo /ma Water III <t>;')
- send_command('bind @F6 input //send oeogo /ma Blizzard V <t>;pause 0.5;input //send oeogo /ma Blizzard IV <t>;pause 0.5;input //send oeogo /ma Blizzard III <t>;')
- -- GEO (Mule) Indicolure Spells (Win Key) --
- send_command('bind @1 input //send oeogo /ma Indi-Regen <me>')
- send_command('bind @2 input //send oeogo /ma Indi-Refresh <me>')
- send_command('bind @D input //send oeogo /ma Indi-DEX <me>')
- send_command('bind @A input //send oeogo /ma Indi-Acumen <me>')
- send_command('bind @F input //send oeogo /ma Indi-Fury <me>')
- send_command('bind @H input //send oeogo /ma Indi-Haste <me>')
- send_command('bind @K input //send oeogo /ma Indi-Focus <me>')
- send_command('bind @P input //send oeogo /ma Indi-Precision <me>')
- send_command('bind @Q input //send oeogo /ma Indi-Barrier <me>')
- send_command('bind @S input //send oeogo /ma Indi-STR <me>')
- send_command('bind @V input //send oeogo /ma Indi-Attunement <me>')
- -- GEO (Mule) Geocolure Spells (Alt+Win Keys) --
- send_command('bind !@1 input //send oeogo /ma Geo-Regen <me>')
- send_command('bind !@2 input //send oeogo /ma Geo-Refresh <me>')
- send_command('bind !@A input //send oeogo /ma Geo-Malaise <t>')
- send_command('bind !@D input //send oeogo /ma Geo-DEX <me>')
- send_command('bind !@F input //send oeogo /ma Geo-Frailty <t>')
- send_command('bind !@H input //send oeogo /ma Geo-Haste <me>')
- send_command('bind !@K input //send oeogo /ma Geo-Languor <t>')
- send_command('bind !@P input //send oeogo /ma Geo-Torpor <t>') --
- send_command('bind !@Q input //send oeogo /ma Geo-Wilt <t>') --
- send_command('bind !@S input //send oeogo /ma Geo-STR <me>')
- send_command('bind !@V input //send oeogo /ma Geo-Vex <t>')
- -- GEO (Mule) Entrust Indicolure Spells (Ctrl+Win Keys) --
- send_command('bind ^@1 input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Regen Arnan')
- send_command('bind ^@2 input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Refresh Arnan')
- send_command('bind ^@A input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Acumen Arnan')
- send_command('bind ^@D input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-DEX Arnan')
- send_command('bind ^@F input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Fury Arnan')
- send_command('bind ^@H input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Haste Arnan')
- send_command('bind ^@K input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Focus Arnan')
- send_command('bind ^@P input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Precision Arnan')
- send_command('bind ^@Q input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Barrier Arnan')
- send_command('bind ^@S input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-STR Arnan')
- send_command('bind ^@V input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Attunement Arnan')
- -- Red Mage Job Key Binds (Ctrl & Ctrl+Alt Keys) --
- send_command('bind ^!C input //ja Chainspell <me>')
- send_command('bind ^1 input //ma Regen II')
- send_command('bind ^2 input //ma Refresh III')
- -- Red Mage Nuke Key Binds (Ctrl Key) --
- send_command('bind ^F1 input /ma Aero V <t>;pause 0.5;input /ma Aero IV <t>;pause 0.5;input /ma Aero III <t>;')
- send_command('bind ^F2 input /ma Fire V <t>;pause 0.5;input /ma Fire IV <t>;pause 0.5;input /ma Fire III <t>;')
- send_command('bind ^F3 input /ma Thunder V <t>;pause 0.5;input /ma Thunder IV <t>;pause 0.5;input /ma Thunder III <t>;')
- send_command('bind ^F4 input /ma Stone V <t>;pause 0.5;input /ma Stone IV <t>;pause 0.5;input /ma Stone III <t>;')
- send_command('bind ^F5 input /ma Water V <t>;pause 0.5;input /ma Water IV <t>;pause 0.5;input /ma Water III <t>;')
- send_command('bind ^F6 input /ma Blizzard V <t>;pause 0.5;input /ma Blizzard IV <t>;pause 0.5;input /ma Blizzard III <t>;')
- -- Red Mage Weapon Skill Key Binds --
- send_command('bind F7 input /ws "Sanguine Blade" <t>')
- send_command('bind F9 input /ws "Death Blossom" <t>')
- send_command('bind Insert input /ws "Knights of Round" <t>')
- send_command('bind F10 input /ws "Requiescat" <t>')
- send_command('bind F11 input /ws "Savage Blade" <t>')
- send_command('bind Delete input /ws "Chant du Cygne" <t>')
- -- COR (mule) Weapon Skill Key Binds --
- send_command('bind F12 input //send ojomo /ws "Last Stand" <t>')
- send_command('bind !F12 input //send ojomo "Leaden Salute" <t>')
- send_command('bind !Delete input //send ojomo /ws "Savage Blade" <t>')
- ----------------------
- -- Key Binds Unload --
- ----------------------
- function file_unload()
- -- Unbind Toggles --
- send_command('unbind ^A')
- send_command('unbind ^D')
- send_command('unbind ^H')
- send_command('unbind ^I')
- send_command('unbind ^K')
- -- Unbind Stuff to control both Mules --
- send_command('unbind ^X')
- send_command('unbind ^3')
- send_command('unbind ^4')
- send_command('unbind ^4')
- send_command('unbind ^7')
- send_command('unbind ^8')
- send_command('unbind ^9')
- send_command('unbind ^0')
- send_command('unbind ^-')
- -- Unbind COR JA's --
- send_command('unbind !7')
- send_command('unbind !8')
- send_command('unbind !9')
- send_command('unbind !0')
- -- Unbind COR Rolls --
- send_command('unbind !A')
- send_command('unbind !B')
- send_command('unbind !C')
- send_command('unbind !D')
- send_command('unbind !E')
- send_command('unbind !F')
- send_command('unbind !G')
- send_command('unbind !H')
- send_command('unbind !Q')
- send_command('unbind !R')
- send_command('unbind !S')
- send_command('unbind !T')
- send_command('unbind !W')
- send_command('unbind !X')
- -- Unbind GEO JA's --
- send_command('unbind @3')
- send_command('unbind @5')
- send_command('unbind @7')
- send_command('unbind @8')
- send_command('unbind @9')
- send_command('unbind @0')
- -- Unbind GEO Nukes --
- send_command('unbind @F1')
- send_command('unbind @F2')
- send_command('unbind @F3')
- send_command('unbind @F4')
- send_command('unbind @F5')
- send_command('unbind @F6')
- -- Unbind GEO Indi Spells --
- send_command('unbind @1')
- send_command('unbind @2')
- send_command('unbind @A')
- send_command('unbind @D')
- send_command('unbind @F')
- send_command('unbind @H')
- send_command('unbind @K')
- send_command('unbind @P')
- send_command('unbind @Q')
- send_command('unbind @S')
- send_command('unbind @V')
- -- Unbind GEO Geocolure Spells --
- send_command('unbind !@1')
- send_command('unbind !@2')
- send_command('unbind !@A')
- send_command('unbind !@D')
- send_command('unbind !@F')
- send_command('unbind !@H')
- send_command('unbind !@K')
- send_command('unbind !@P')
- send_command('unbind !@Q')
- send_command('unbind !@S')
- send_command('unbind !@V')
- -- Unbind GEO Entrust Spells --
- send_command('unbind ^@1')
- send_command('unbind ^@2')
- send_command('unbind ^@A')
- send_command('unbind ^@D')
- send_command('unbind ^@F')
- send_command('unbind ^@H')
- send_command('unbind ^@K')
- send_command('unbind ^@P')
- send_command('unbind ^@Q')
- send_command('unbind ^@S')
- send_command('unbind ^@V')
- -- Unbind RDM Job Binds --
- send_command('unbind ^!C')
- send_command('unbind ^1')
- send_command('unbind ^2')
- -- Unbind RDM Nukes --
- send_command('unbind ^F1')
- send_command('unbind ^F2')
- send_command('unbind ^F3')
- send_command('unbind ^F4')
- send_command('unbind ^F5')
- send_command('unbind ^F6')
- -- Unload Weapon Skill Key Binds --
- send_command('unbind F7')
- send_command('unbind F9')
- send_command('unbind F10')
- send_command('unbind F11')
- send_command('unbind F12')
- send_command('unbind !F12')
- send_command('unbind Insert')
- send_command('unbind Delete')
- send_command('unbind !Delete')
- end
- --------------------
- -- Idle/Town Sets --
- --------------------
- sets.Idle = {
- ammo="Homiliary",
- head="Viti. Chapeau +3",
- neck="Bathy Choker +1",
- ear1="Infused Earring",
- ear2="Genmei Earring",
- body="Jhakri Robe +2",
- hands="Merlinic Dastanas",
- ring1="Stikini Ring +1",
- ring2="Stikini Ring +1",
- back="Moonlight Cape",
- waist="Flume Belt +1",
- legs="Carmine Cuisses +1",
- feet="Merlinic Crackows"}
- sets.Idle.Full = set_combine(sets.Idle,{})
- sets.Idle.DT = set_combine(sets.Idle,{
- neck="Loricate Torque +1",
- ear1="Ethereal Earring",
- hands="Aya. Manopolas +2",
- ring1="Defending Ring",
- ring2="Ayanmo Ring",
- feet="Aya. Gambieras +2"})
- sets.Idle.Warp = set_combine(sets.Idle,{
- ring2="Warp Ring"})
- sets.Resting = set_combine(sets.Idle,{})
- -------------
- -- TP Sets --
- -------------
- sets.Melee = {
- ammo="Ginsen",
- head="Aya. Zucchetto +2",
- neck="Combatant's Torque",
- ear1="Suppanomimi",
- ear2="Sherida Earring",
- body="Ayanmo Corazza +2",
- hands={ name="Taeon Gloves", augments={'Accuracy+19 Attack+19','"Triple Atk."+2','STR+4 DEX+4',}},
- ring1="Petrov Ring",
- ring2="Hetairoi Ring",
- back=STPCape,
- waist="Windbuffet Belt +1",
- legs="Carmine Cuisses +1",
- feet="Carmine Greaves +1"}
- sets.Melee.MidACC = set_combine(sets.Melee,{})
- sets.Melee.HighACC = set_combine(sets.Melee.MidACC,{})
- -----------------------
- -- Damage Taken Sets --
- -----------------------
- -- PDT Set --
- sets.PDT = {
- ammo="Staunch Tathlum +1",
- head="Aya. Zucchetto +2",
- neck="Loricate Torque +1",
- ear1="Ethereal Earring",
- ear2="Eabani Earring",
- body="Ayanmo Corazza +2",
- hands="Aya. Manopolas +2",
- ring1="Defending Ring",
- ring2="Ayanmo Ring",
- back="Moonlight Cape",
- waist="Flume Belt +1",
- legs="Aya. Cosciales +2",
- feet="Aya. Gambieras +2"}
- -----------------------
- -- Weapon Skill Sets --
- -----------------------
- -- WS Base Set --
- sets.WS = {
- ammo="Floestone",
- head={ name="Taeon Chapeau", augments={'Accuracy+18 Attack+18','"Triple Atk."+2','DEX+9',}},
- neck="Fotia Gorget",
- ear1="Moonshade Earring",
- ear2="Sherida Earring",
- body="Ayanmo Corazza +2",
- hands={ name="Taeon Gloves", augments={'Accuracy+19 Attack+19','"Triple Atk."+2','STR+4 DEX+4',}},
- ring1="Shukuyu Ring",
- ring2="Ifrit Ring +1",
- back=STPCape,
- waist="Fotia Belt",
- legs={ name="Taeon Tights", augments={'Accuracy+19 Attack+19','"Triple Atk."+2','DEX+10',}},
- feet={ name="Taeon Boots", augments={'Accuracy+18 Attack+18','"Triple Atk."+2','DEX+9',}}}
- -- Chant du Cygne Sets --
- sets.WS["Chant du Cygne"] = {
- ammo="Yetshila +1",
- head={ name="Taeon Chapeau", augments={'Accuracy+18 Attack+18','"Triple Atk."+2','DEX+9',}},
- neck="Fotia Gorget",
- ear1="Moonshade Earring",
- ear2="Sherida Earring",
- body="Ayanmo Corazza +2",
- hands="Aya. Manopolas +2",
- ring1="Begrudging Ring",
- ring2="Ilabrat Ring",
- back=CritCape,
- waist="Fotia Belt",
- legs={ name="Taeon Tights", augments={'Accuracy+19 Attack+19','"Triple Atk."+2','DEX+10',}},
- feet="Thereoid Greaves"}
- sets.WS["Chant du Cygne"].MidACC = set_combine(sets.WS["Chant du Cygne"],{})
- sets.WS["Chant du Cygne"].HighACC = set_combine(sets.WS["Chant du Cygne"].MidACC,{})
- -- Savage Blade Set --
- sets.WS["Savage Blade"] = set_combine(sets.WS,{
- head="Viti. Chapeau +3",
- body="Jhakri Robe +2",
- ear2="Ishvara Earring",
- hands="Jhakri Cuffs +2",
- ring2="Rufescent Ring",
- back=WSDCape,
- waist="Prosilio Belt +1",
- legs="Jhakri Slops +2",
- feet="Jhakri Pigaches +2"})
- sets.WS["Savage Blade"].MidACC = set_combine(sets.WS["Savage Blade"],{})
- sets.WS["Savage Blade"].HighACC = set_combine(sets.WS["Savage Blade"].MidACC,{})
- -- Requiescat Sets --
- sets.WS.Requiescat = set_combine(sets.WS,{
- ammo="Regal Gem",
- head="Jhakri Coronal +2",
- ear2="Regal Earring",
- body="Jhakri Robe +2",
- hands="Jhakri Cuffs +2",
- ring1="Rufescent Ring",
- ring2="Levia. Ring",
- legs="Jhakri Slops +2",
- feet="Jhakri Pigaches +2"})
- sets.WS.Requiescat.MidACC = set_combine(sets.WS.Requiescat,{})
- sets.WS.Requiescat.HighACC = set_combine(sets.WS.Requiescat.MidACC,{})
- -- Knights of Round Set --
- sets.WS["Knights of Round"] = set_combine(sets.WS["Savage Blade"],{})
- sets.WS["Knights of Round"].MidACC = set_combine(sets.WS["Savage Blade"].MidACC,{})
- sets.WS["Knights of Round"].HighACC = set_combine(sets.WS["Savage Blade"].HighACC,{})
- -- Death Blossom Set --
- sets.WS["Death Blossom"] = set_combine(sets.WS["Savage Blade"],{})
- sets.WS["Death Blossom"].MidACC = set_combine(sets.WS["Savage Blade"].MidACC,{})
- sets.WS["Death Blossom"].HighACC = set_combine(sets.WS["Savage Blade"].HighACC,{})
- -- Sanguine Blade Set --
- sets.WS["Sanguine Blade"] = {
- ammo="Pemphredo Tathlum",
- head="Jhakri Coronal +2",
- neck="Sanctity Necklace",
- ear1="Friomisi Earring",
- ear2="Regal Earring",
- body="Amalric Doublet +1",
- hands="Jhakri Cuffs +2",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back=WSDCape,
- waist="Eschan Stone",
- legs="Jhakri Slops +2",
- feet="Amalric nails +1"}
- sets.WS["Sanguine Blade"].MidACC = set_combine(sets.WS["Savage Blade"],{})
- sets.WS["Sanguine Blade"].HighACC = set_combine(sets.WS["Savage Blade"].MidACC,{})
- -- Exenterator Sets --
- sets.WS.Exenterator = {}
- sets.WS.Exenterator.MidACC = set_combine(sets.WS.Exenterator,{})
- sets.WS.Exenterator.HighACC = set_combine(sets.WS.Exenterator.MidACC,{})
- -- Evisceration Sets --
- sets.WS.Evisceration = set_combine(sets.WS["Chant du Cygne"],{})
- sets.WS.Evisceration.MidACC = set_combine(sets.WS["Chant du Cygne"].MidACC,{})
- sets.WS.Evisceration.HighACC = set_combine(sets.WS["Chant du Cygne"].HighACC,{})
- ----------------------
- -- Job Ability Sets --
- ----------------------
- sets.JA = {}
- sets.JA.Chainspell = {body="Viti. Tabard +3"}
- sets.JA.Saboteur = {hands="Leth. Gantherots +1"}
- --------------------
- -- Pre-Cast Sets --
- --------------------
- -- Fastcast Set --
- sets.Precast = {
- ammo="Impatiens",
- head="Atro. Chapeau +1",
- neck="Orunmila's Torque",
- ear1="Loquac. Earring",
- ear2="Etiolation Earring",
- body="Viti. Tabard +3",
- hands="Leyline Gloves",
- ring1="Lebeche Ring",
- ring2="Kishar Ring",
- back="Perimede Cape",
- waist="Witful Belt",
- legs="Aya. Cosciales +2",
- feet="Carmine Greaves +1"}
- sets.Precast.FastCast = set_combine(sets.Precast,{})
- -- Elemental Staves --
- sets.Precast.Lightning = {}
- sets.Precast.Water = {}
- sets.Precast.Fire = {}
- sets.Precast.Ice = {}
- sets.Precast.Wind = {}
- sets.Precast.Earth = {}
- sets.Precast.Light = {}
- sets.Precast.Dark = {}
- -- Precast Enhancing Magic --
- sets.Precast['Enhancing Magic'] = set_combine(sets.Precast.FastCast,{waist="Siegel Sash"})
- -- Precast Enfeebling Magic --
- sets.Precast['Enfeebling Magic'] = set_combine(sets.Precast.FastCast,{})
- -- Precast Cure Set --
- sets.Precast.Cure = {}
- -------------------
- -- Mid-Cast Sets --
- -------------------
- -- Midcast Base Set --
- sets.Midcast = {
- ammo="Staunch Tathlum +1",
- head="Atro. Chapeau +1",
- neck="Loricate Torque +1",
- ear1="Loquac. Earring",
- ear2="Etiolation Earring",
- body="Viti. Tabard +3",
- hands="Leyline Gloves",
- ring1="Defending Ring",
- ring2="Kishar Ring",
- back="Moonlight Cape",
- waist="Flume Belt +1",
- legs="Carmine Cuisses +1",
- feet="Amalric nails +1"}
- -- Haste Set -
- sets.Midcast.Haste = set_combine(sets.Midcast,{})
- -- Cure Set --
- sets.Midcast.Cure = {
- ammo="Regal Gem",
- head="Vanya Hood",
- neck="Phalaina Locket",
- ear1="Lifestorm Earring",
- ear2="Mendi. Earring",
- body="Kaykaus Bliaut",
- hands="Kaykaus Cuffs",
- ring1="Stikini Ring +1",
- ring2="Stikini Ring +1",
- back="Solemnity Cape",
- waist="Bishop's Sash",
- legs="Atrophy Tights +1",
- feet="Vanya Clogs"}
- -- Curaga Set --
- sets.Midcast.Curaga = set_combine(sets.Midcast.Cure,{})
- -- Enhancing Magic --
- sets.Midcast['Enhancing Magic'] = {
- ammo="Staunch Tathlum +1",
- head="Telchine Cap",
- neck="Incanter's Torque",
- ear1="Andoaa Earring",
- ear2="Augment. Earring",
- body="Viti. Tabard +3",
- hands="Atrophy Gloves +3",
- ring1="Stikini Ring +1",
- ring2="Stikini Ring +1",
- back="Sucellos's Cape",
- waist="Olympus Sash",
- legs="Telchine Braconi",
- feet="Leth. Houseaux +1"}
- -- Refresh --
- sets.Midcast.Refresh = set_combine(sets.Midcast,{
- head="Amalric Coif +1",
- body="Atrophy Tabard +3",
- hands="Atrophy Gloves +3",
- waist="Gishdubar Sash",
- legs="Leth. Fuseau +1",
- feet="Leth. Houseaux +1"})
- -- Stoneskin --
- sets.Midcast.Stoneskin = set_combine(sets.Midcast['Enhancing Magic'],{waist="Siegel Sash"})
- -- Phalanx --
- sets.Midcast.Phalanx = set_combine(sets.Midcast['Enhancing Magic'],{
- head={ name="Taeon Chapeau", augments={'Phalanx +2',}},
- body={ name="Taeon Tabard", augments={'Accuracy+18 Attack+18','"Fast Cast"+5','Phalanx +3',}},
- hands={ name="Taeon Gloves", augments={'Phalanx +3',}},
- legs={ name="Taeon Tights", augments={'Phalanx +3',}},
- feet={ name="Taeon Boots", augments={'Phalanx +2',}}})
- -- Temper --
- sets.Midcast.Temper = set_combine(sets.Midcast['Enhancing Magic'],{
- head="Carmine Mask +1",
- body="Viti. Tabard +3",
- hands="Viti. Gloves +2",
- back="Perimede Cape",
- legs="Carmine Cuisses +1"})
- sets.Midcast['Temper II'] = set_combine(sets.Midcast.Temper,{})
- -- Gain Spells --
- sets.Midcast.GainSpell = set_combine(sets.Midcast['Enhancing Magic'],{hands="Viti. Gloves +2"})
- -- Cursna --
- sets.Midcast.Cursna = set_combine(sets.Midcast.Haste,{})
- -- Stun Sets --
- sets.Midcast.Stun = {
- ammo="Regal Gem",
- head="Carmine Mask +1",
- neck="Erra Pendant",
- ear1="Digni. Earring",
- ear2="Gwati Earring",
- body="Amalric Doublet +1",
- hands="Jhakri Cuffs +2",
- ring1="Stikini Ring +1",
- ring2="Stikini Ring +1",
- back=INTCape,
- waist="Eschan Stone",
- legs="Chironic Hose",
- feet="Jhakri Pigaches +2"}
- sets.Midcast.Stun.MidACC = set_combine(sets.Midcast.Stun,{})
- sets.Midcast.Stun.HighACC = set_combine(sets.Midcast.Stun.MidACC,{})
- -- Dark Magic Sets --
- sets.Midcast['Dark Magic'] = {
- ammo="Regal Gem",
- head="Carmine Mask +1",
- neck="Erra Pendant",
- ear1="Digni. Earring",
- ear2="Gwati Earring",
- body="Amalric Doublet +1",
- hands="Jhakri Cuffs +2",
- ring1="Stikini Ring +1",
- ring2="Stikini Ring +1",
- back=INTCape,
- waist="Eschan Stone",
- legs="Chironic Hose",
- feet="Jhakri Pigaches +2"}
- sets.Midcast['Dark Magic'].MidACC = set_combine(sets.Midcast['Dark Magic'],{})
- sets.Midcast['Dark Magic'].HighACC = set_combine(sets.Midcast['Dark Magic'].MidACC,{})
- -- Low Tier Set --
- sets.LowNuke = {
- ammo="Pemphredo Tathlum",
- head="Jhakri Coronal +2",
- neck="Sanctity Necklace",
- ear1="Friomisi Earring",
- ear2="Regal Earring",
- body="Amalric Doublet +1",
- hands="Amalric Gages +1",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back=INTCape,
- waist="Eschan Stone",
- legs="Amalric Slops +1",
- feet="Amalric Nails +1"}
- -- MB Set --
- sets.MB = {
- head="Ea Hat",
- neck="Mizu. Kubikazari",
- hands="Ea Cuffs",
- ring1="Mujin Band",
- legs="Ea Slops",
- feet="Ea Pigaches"}
- -- Elemental Sets --
- sets.Midcast['Elemental Magic'] = {
- ammo="Pemphredo Tathlum",
- head="Jhakri Coronal +2",
- neck="Sanctity Necklace",
- ear1="Friomisi Earring",
- ear2="Regal Earring",
- body="Amalric Doublet +1",
- hands="Amalric Gages +1",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back=INTCape,
- waist="Eschan Stone",
- legs="Amalric Slops +1",
- feet="Amalric Nails +1"}
- sets.Midcast['Elemental Magic'].MidACC = set_combine(sets.Midcast['Elemental Magic'],{})
- sets.Midcast['Elemental Magic'].HighACC = set_combine(sets.Midcast['Elemental Magic'].MidACC,{})
- -- Enfeebling Sets --
- sets.Midcast['Enfeebling Magic'] = {
- ammo="Regal Gem",
- head="Carmine Mask +1",
- neck="Duelist's Torque",
- ear1="Digni. Earring",
- ear2="Gwati Earring",
- body="Lethargy Sayon +1",
- hands="Kaykaus Cuffs",
- ring1="Stikini Ring +1",
- ring2="Kishar Ring",
- back=INTCape,
- waist="Eschan Stone",
- legs="Chironic Hose",
- feet="Vitiation Boots +2"}
- sets.Midcast['Enfeebling Magic'].MidACC = set_combine(sets.Midcast['Enfeebling Magic'],{})
- sets.Midcast['Enfeebling Magic'].HighACC = set_combine(sets.Midcast['Enfeebling Magic'].MidACC,{})
- -- Impact --
- sets.Midcast.Impact = {
- body="Twilight Cloak"}
- -- Elemental Obi/Twilight Cape --
- sets.Obi = {}
- sets.Obi.Lightning = {waist='Hachirin-no-Obi'}
- sets.Obi.Water = {waist='Hachirin-no-Obi'}
- sets.Obi.Fire = {waist='Hachirin-no-Obi'}
- sets.Obi.Ice = {waist='Hachirin-no-Obi'}
- sets.Obi.Wind = {waist='Hachirin-no-Obi'}
- sets.Obi.Earth = {waist='Hachirin-no-Obi'}
- sets.Obi.Light = {waist='Hachirin-no-Obi'}
- sets.Obi.Dark = {waist='Hachirin-no-Obi'}
- -- Reive Set --
- sets.Reive = {neck="Ygnas's Resolve +1"}
- end
- ----------------
- -- Pre-Target --
- ----------------
- 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.type == "WeaponSkill" and spell.target.distance > target_distance and player.status == 'Engaged' then -- Cancel WS If You Are Out Of Range --
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Out of Range]')
- return
- elseif spell.english:startswith("Cure") and player.mp<actualCost(spell.mp_cost) then
- degrade_spell(spell,Cure_Spells)
- elseif spell.english:startswith("Curaga") and player.mp<actualCost(spell.mp_cost) then
- degrade_spell(spell,Curaga_Spells)
- elseif buffactive['Light Arts'] or buffactive['Addendum: White'] then
- if spell.english == "Light Arts" and not buffactive['Addendum: White'] then
- cancel_spell()
- send_command('input /ja Addendum: White <me>')
- elseif spell.english == "Manifestation" then
- cancel_spell()
- send_command('input /ja Accession <me>')
- elseif spell.english == "Alacrity" then
- cancel_spell()
- send_command('input /ja Celerity <me>')
- elseif spell.english == "Parsimony" then
- cancel_spell()
- send_command('input /ja Penury <me>')
- end
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- if spell.english == "Dark Arts" and not buffactive['Addendum: Black'] then
- cancel_spell()
- send_command('input /ja Addendum: Black <me>')
- elseif spell.english == "Accession" then
- cancel_spell()
- send_command('input /ja Manifestation <me>')
- elseif spell.english == "Celerity" then
- cancel_spell()
- send_command('input /ja Alacrity <me>')
- elseif spell.english == "Penury" then
- cancel_spell()
- send_command('input /ja Parsimony <me>')
- end
- end
- end
- --------------
- -- Pre-Cast --
- --------------
- function precast(spell,action)
- if spell.action_type == 'Magic' then
- if buffactive.silence or spell.target.distance > 16+target_distance then -- Cancel Magic or Ninjutsu If You Are Silenced or Out of Range --
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Silenced or Out of Casting Range]')
- return
- else
- if spell.english:startswith('Cur') and spell.english ~= "Cursna" then
- equip(sets.Precast.Cure)
- elseif spell.english == "Stun" then
- if buffactive.Composure then -- Cancel Composure When You Cast Stun --
- cast_delay(0.2)
- send_command('cancel Composure')
- end
- equip(sets.Precast.FastCast)
- elseif spell.english == "Impact" then
- equip(set_combine(sets.Precast.FastCast,{body="Twilight Cloak"}))
- elseif spell.english:startswith("En") and Enspells == 'ON' then
- local list={Dark="blizzard",Water="water",Earth="stone",Ice="blizzard",Fire="fire",Wind="aero",Lightning="thunder",Light="fire"}
- if spell.english ~= 'En'..list[world.day_element]..''..(spell.english:endswith(' II') and ' II' or '') then
- cancel_spell()
- send_command('@input /ma "En'..list[world.day_element]..''..(spell.english:endswith(' II') and ' II' or '')..'" <me>')
- return
- end
- elseif spell.english == 'Utsusemi: Ni' then
- if buffactive['Copy Image (3)'] then
- cancel_spell()
- add_to_chat(123, spell.name .. ' Canceled: [3 Images]')
- return
- else
- equip(sets.Precast.FastCast)
- end
- elseif sets.Precast[spell.skill] then
- equip(sets.Precast[spell.skill])
- else
- equip(sets.Precast.FastCast)
- end
- end
- elseif spell.type == "WeaponSkill" then
- if player.status ~= 'Engaged' then
- 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 player.tp > 2750 or (player.equipment.main == 'Sequence' and player.tp > 2250) then
- equipSet = set_combine(equipSet,{ear1="Cessance Earring"}) -- 3000 TP: Equip Zwazo Earring --
- end
- equip(equipSet)
- end
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- if sets.Precast[spell.element] and Elemental_Staff == 'ON' then
- equip(sets.Precast[spell.element])
- end
- if StunIndex == 1 then
- equip(sets.Midcast.Stun)
- end
- end
- --------------
- -- Mid-Cast --
- --------------
- function midcast(spell,action)
- equipSet = {}
- if spell.type:endswith('Magic') or spell.type == 'Ninjutsu' or spell.type == 'Trust' then
- equipSet = sets.Midcast
- if spell.english:startswith('Cur') and spell.english ~= "Cursna" then
- if spell.english:startswith('Cure') then
- equipSet = equipSet.Cure
- elseif spell.english:startswith('Cura') then
- equipSet = equipSet.Curaga
- end
- if world.day_element == spell.element or world.weather_element == spell.element then
- equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
- end
- elseif spell.english:startswith('Refresh') then
- equipSet = equipSet.Refresh
- elseif spell.english == "Stoneskin" then
- if buffactive.Stoneskin then
- send_command('@wait 2.8;cancel stoneskin')
- end
- equipSet = equipSet.Stoneskin
- elseif spell.english == "Phalanx II" then -- Equip Aug'd Viti. Gloves +2 When You Cast Phalanx II --
- equipSet = set_combine(equipSet,{hands="Viti. Gloves +2"})
- elseif spell.english == "Dia III" or spell.english == "Slow II" then -- Equip Aug'd Viti. Chapeau +3 When You Cast Dia III or Slow II --
- equipSet = set_combine(equipSet,{head="Viti. Chapeau +3"})
- elseif spell.english == "Paralyze II" then -- Equip Aug'd Vitiation Boots +2 When You Cast Paralyze II --
- equipSet = set_combine(equipSet,{feet="Vitiation Boots +2"})
- elseif spell.english == "Blind II" or spell.english == "Bio III" then -- Equip Aug'd Viti. Tights +1 When You Cast Blind II or Bio III --
- equipSet = set_combine(equipSet,{legs="Viti. Tights +1"})
- elseif spell.english == "Sneak" then
- if spell.target.name == player.name and buffactive['Sneak'] then
- send_command('cancel sneak')
- end
- equipSet = equipSet.Haste
- elseif spell.english:startswith('Gain') then
- equipSet = set_combine(equipSet.GainSpell,{})
- elseif spell.english:startswith('Banish') then
- equipSet = set_combine(equipSet.Haste,{})
- elseif Low_Tier_Spells:contains(spell.english) and LowNuke == 'ON' then
- equipSet = set_combine(equipSet,sets.LowNuke)
- if world.day_element == spell.element or world.weather_element == spell.element then
- equipSet = set_combine(equipSet,{waist='Hachirin-no-Obi'})
- end
- elseif spell.skill == 'Elemental Magic' and MB == 'ON' then
- equipSet = set_combine(equipSet,sets.MB)
- if world.day_element == spell.element or world.weather_element == spell.element then
- equipSet = set_combine(equipSet,{waist='Hachirin-no-Obi'})
- end
- elseif spell.english:startswith('Utsusemi') then
- if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)'] or buffactive['Copy Image (3)']) then
- send_command('@wait 1.7; cancel Copy Image*')
- end
- equipSet = equipSet.Haste
- elseif spell.english == 'Monomi: Ichi' then
- if buffactive['Sneak'] then
- send_command('@wait 1.7;cancel sneak')
- end
- equipSet = equipSet.Haste
- else
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[spell.skill] then
- equipSet = equipSet[spell.skill]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if equipSet[spell.type] then
- equipSet = equipSet[spell.type]
- end
- if (spell.skill == 'Elemental Magic' or spell.english:startswith('Cur') or spell.english:startswith('Bio') or spell.english:startswith('Dia') or spell.english == 'Aspir' or spell.english == 'Drain') and not Non_Obi_Spells:contains(spell.english) and (world.day_element == spell.element or world.weather_element == spell.element) and sets.Obi[spell.element] and Obi == 'ON' and spell.english ~= "Cursna" then -- Use Obi Toggle To Equip Normal Waist Gear --
- equipSet = set_combine(equipSet,sets.Obi[spell.element])
- end
- end
- end
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- equip(equipSet)
- if StunIndex == 1 then
- equip(sets.Midcast.Stun)
- end
- end
- ----------------
- -- After-Cast --
- ----------------
- function aftercast(spell,action)
- if not spell.interrupted then
- if spell.english == "Sleep II" then -- Sleep II Countdown --
- send_command('wait 60;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
- elseif spell.english == "Sleep" or spell.english == "Sleepga" then -- Sleep & Sleepga Countdown --
- send_command('wait 30;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
- elseif spell.english == "Banish II" then -- Banish II Countdown --
- send_command('wait 20;input /echo Banish Effect: [WEARING OFF IN 10 SEC.]')
- end
- end
- status_change(player.status)
- end
- -------------------
- -- Status Change --
- -------------------
- function status_change(new,old)
- if Armor == 'PDT' or buffactive.Terror or buffactive.Stun or buffactive.Petrification or buffactive.Sleep then
- equip(sets.PDT)
- elseif new == 'Engaged' then
- equipSet = sets.Melee
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- equip(equipSet)
- elseif new == 'Idle' then
- equipSet = sets.Idle
- if equipSet[IdleArray[IdleIndex]] then
- equipSet = equipSet[IdleArray[IdleIndex]]
- end
- if buffactive['Reive Mark'] then -- Equip Arciela's Grace +1 During Reive --
- equipSet = set_combine(equipSet,sets.Reive)
- end
- equip(equipSet)
- elseif new == 'Resting' then
- equip(sets.Resting)
- end
- if StunIndex == 1 then
- equip(sets.Midcast.Stun)
- end
- end
- -----------------
- -- Buff Change --
- -----------------
- function buff_change(buff,gain,loss)
- buff = string.lower(buff)
- if gain then
- add_to_chat(158,'--- Gained: ['..buff..']')
- elseif loss then
- add_to_chat(123,'--- Lost: ['..buff..']')
- end
- if not midaction() then
- status_change(player.status)
- end
- end
- -------------------------------------------------------------------------------------
- -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
- -------------------------------------------------------------------------------------
- function self_command(command)
- if command == 'acc' then -- Accuracy Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- add_to_chat(155,'Accuracy Level: ' .. AccArray[AccIndex])
- status_change(player.status)
- elseif command == 'update' then -- Auto Update Gear Toggle --
- status_change(player.status)
- add_to_chat(155,'Auto Update Gear')
- elseif command == 'stun' then -- Stun Toggle --
- if StunIndex == 1 then
- StunIndex = 0
- add_to_chat(123,'Stun Set: [Unlocked]')
- else
- StunIndex = 1
- add_to_chat(158,'Stun Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'obi' then -- Obi Toggle --
- if Obi == 'ON' then
- Obi = 'OFF'
- add_to_chat(123,'Obi: [OFF]')
- else
- Obi = 'ON'
- add_to_chat(158,'Obi: [ON]')
- end
- status_change(player.status)
- elseif command == 'pdt' 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 == 'lownuke' then -- LowNuke Toggle --
- if LowNuke == 'ON' then
- LowNuke = 'OFF'
- add_to_chat(123,'Low Nuke: [OFF]')
- else
- LowNuke = 'ON'
- add_to_chat(158,'Low Nuke: [ON]')
- end
- status_change(player.status)
- elseif command == 'mb' then -- MB Toggle --
- if MB == 'ON' then
- MB = 'OFF'
- add_to_chat(123,'MB: [OFF]')
- else
- MB = 'ON'
- add_to_chat(158,'MB: [ON]')
- end
- status_change(player.status)
- elseif command == 'mainlock' then -- Lock Main Weapon Toggle --
- if Lock_Main == 'ON' then
- Lock_Main = 'OFF'
- add_to_chat(123,'Main Weapon: [Unlocked]')
- else
- Lock_Main = 'ON'
- add_to_chat(158,'Main Weapon: [Locked]')
- end
- status_change(player.status)
- elseif command == 'enspell' then -- Enspells Toggle --
- if Enspells == 'ON' then
- Enspells = 'OFF'
- add_to_chat(123,'Enspells: [OFF]')
- else
- Enspells = 'ON'
- add_to_chat(158,'Enspells: [ON]')
- end
- status_change(player.status)
- elseif command == 'distance' then -- Distance Toggle --
- if player.target.distance then
- target_distance = math.floor(player.target.distance*10)/10
- add_to_chat(155,'Distance: '..target_distance)
- else
- add_to_chat(123,'No Target Selected')
- end
- elseif command == 'idle' then -- Idle Toggle --
- IdleIndex = (IdleIndex % #IdleArray) + 1
- add_to_chat(155,'Idle Set: '..IdleArray[IdleIndex])
- status_change(player.status)
- elseif command == 'TP' then
- add_to_chat(155,'TP Return: ['..tostring(player.tp)..']')
- elseif command:match('^SC%d$') then
- send_command('//' .. sc_map[command])
- end
- end
- -----------
- -- Misc. --
- -----------
- function actualCost(originalCost)
- if buffactive["Penury"] then
- return originalCost*.5
- elseif buffactive["Light Arts"] then
- return originalCost*.9
- else
- return originalCost
- end
- end
- function degrade_spell(spell,degrade_array)
- spell_index = table.find(degrade_array,spell.name)
- if spell_index > 1 then
- new_spell = degrade_array[spell_index - 1]
- change_spell(new_spell,spell.target.raw)
- add_to_chat(8,spell.name..' Canceled: [Current MP = ' .. player.mp .. ' | ' .. player.mpp .. '%] Using '..new_spell..' instead.')
- end
- end
- function change_spell(spell_name,target)
- cancel_spell()
- send_command('//'..spell_name..' '..target)
- end
Add Comment
Please, Sign In to add comment