Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------
- -- *** Arnan Paladin Gearswap Lua File *** --
- ----------------------------------------------
- -- Commands --
- -- In Game: //gs c, Macro: /console gs c, Bind: gs c --
- -- gs c shield Toggle Shield
- -- 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 dt Full DT/BDT on/off
- -- gs c kiting Kiting on/off
- -- gs c hybrid Hybrid on/off
- -- gs c twilight Twilight on/off
- ----------
- -- Sets --
- ----------
- function get_sets()
- AccIndex = 1
- AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For TP/WS/Hybrid. First Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
- ShieldIndex = 1
- ShieldArray = {"Aegis","Ochain"} -- Default Shield Type Is Aegis. Set Default Shield Type Here. --
- IdleIndex = 1
- IdleArray = {"Full","DT","Warp"} -- Default Idle Set Is Movement --
- TypeIndex = 1
- Armor = 'None'
- canceled = false
- Twilight = 'None'
- Cover = 'ON' -- Set Default Cover ON or OFF Here --
- target_distance = 6 -- Set Default Distance Here --
- send_command('input /macro book 2;wait .1;input /macro set 1') -- Change Default Macro Book Here --
- add_to_chat(158,'-[Paladin Lua Loaded]-')
- add_to_chat(155,'Shield Type: '..ShieldArray[ShieldIndex])
- add_to_chat(155,'Accuracy Level: '..AccArray[AccIndex])
- -- Key Binds --
- send_command('bind Delete input /ws "Chant du Cygne" <t>')
- send_command('bind F11 input /ws "Savage Blade" <t>')
- send_command('bind F12 input //send ojomo /ws "Last Stand" <t>')
- function file_unload()
- send_command('unbind Delete')
- send_command('unbind F11')
- send_command('unbind F12')
- end
- -- Gavialis Helm --
- elements = {}
- elements.equip = {head="Gavialis Helm"}
- elements["Chant du Cygne"] = S{"Light","Ice","Water","Wind","Fire","Lightning"}
- elements.Requiescat = S{"Dark","Earth"}
- elements.Resolution = S{"Lightning","Wind","Earth"}
- elements.Scourge = S {"Light","Fire"}
- elements.Torcleaver = S {"Light","Water","Ice"}
- Cure_Spells = {"Cure","Cure II","Cure III","Cure IV"} -- Cure Degradation --
- Curaga_Spells = {"Curaga","Curaga II"} -- Curaga Degradation --
- Enmity_BlueMagic = S{"Jettatura","Sheep Song","Soporific","Blank Gaze","Geist Wall"} -- Add or Remove Enmity BlueMagic Here --
- -- Augments --
- OHead={}
- OHead.WSD={ name="Odyssean Helm", augments={'Accuracy+11 Attack+11','Weapon skill damage +4%','VIT+3','Accuracy+9',}}
- OHands={}
- OHands.WSD={ name="Odyssean Gauntlets", augments={'Accuracy+15 Attack+15','Weapon skill damage +4%','STR+1','Accuracy+15',}}
- OLegs={}
- OLegs.STP={ name="Odyssean Cuisses", augments={'Accuracy+30','"Store TP"+7','Attack+15',}}
- OLegs.WSD={ name="Odyssean Cuisses", augments={'Accuracy+27','Weapon skill damage +4%','AGI+10','Attack+12',}}
- VFeet={}
- VFeet.STP={ name="Valorous Greaves", augments={'Accuracy+25','"Store TP"+7',}}
- -- Rudianos Mantle Augments --
- FCMantle={ name="Rudianos's Mantle", augments={'HP+60','Accuracy+20 Attack+20','"Fast Cast"+10',}}
- DEXDAMantle={ name="Rudianos's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}
- WSDMantle={ name="Rudianos's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}
- --------------------
- -- Idle/Town Sets --
- --------------------
- sets.Idle = {
- ammo="Staunch Tathlum",
- head="Valorous Mask",
- neck="Coatl Gorget +1",
- ear1="Etiolation Earring",
- ear2="Odnowa Earring +1",
- body="Jumalik Mail",
- hands="Souv. Handsch. +1",
- ring1="Moonbeam Ring",
- ring2="Moonbeam Ring",
- back="Moonbeam Cape",
- waist="Flume Belt +1",
- legs="Carmine Cuisses +1",
- feet="Souveran Schuhs +1"}
- -- Full Idle Sets --
- sets.Idle.Full = set_combine(sets.Idle,{})
- sets.Idle.Full.Ochain = set_combine(sets.Idle.Full,{
- sub="Ochain"})
- sets.Idle.Full.Aegis = set_combine(sets.Idle.Full,{
- sub="Aegis"})
- -- Damage Taken Idle Sets --
- sets.Idle.DT = set_combine(sets.Idle,{
- head="Rev. Coronet +1",
- neck="Loricate Torque +1"})
- sets.Idle.DT.Ochain = set_combine(sets.Idle.DT,{
- sub="Ochain"})
- sets.Idle.DT.Aegis = set_combine(sets.Idle.DT,{
- sub="Aegis"})
- -- Warp Ring Idle Sets --
- sets.Idle.Warp = set_combine(sets.Idle,{
- ring2="Warp Ring"})
- sets.Idle.Warp.Ochain = set_combine(sets.Idle.Warp,{
- sub="Ochain"})
- sets.Idle.Warp.Aegis = set_combine(sets.Idle.Warp,{
- sub="Aegis"})
- -- Resting Set --
- sets.Resting = set_combine(sets.Idle.Full,{})
- -- Twilight Set --
- sets.Twilight = {head="Twilight Helm",body="Twilight Mail"}
- -------------
- -- TP Sets --
- -------------
- sets.TP = {
- ammo="Ginsen",
- head="Flam. Zucchetto +1",
- neck="Combatant's Torque",
- ear1="Cessance Earring",
- ear2="Brutal Earring",
- body="Emicho Haubert +1",
- hands="Emi. Gauntlets +1",
- ring1="Petrov Ring",
- ring2="Hetairoi Ring",
- back=DEXDAMantle,
- waist="Sailfi Belt +1",
- legs=OLegs.STP,
- feet="Flam. Gambieras +1"}
- sets.TP.MidACC = set_combine(sets.TP,{
- head="Carmine Mask +1",
- ring1="Chirich Ring",
- ring2="Chirich Ring",
- legs="Carmine Cuisses +1"})
- sets.TP.HighACC = set_combine(sets.TP.MidACC,{
- ear1="Digni. Earring",
- ear2="Zennaroi Earring",
- ring1="Ramuh Ring +1",
- ring2="Ramuh Ring +1",
- feet="Emi. Gambieras +1"})
- -- Ochain TP Sets --
- sets.TP.Ochain = set_combine(sets.TP,{
- sub="Ochain"})
- sets.TP.Ochain.MidACC = set_combine(sets.TP.MidACC,{
- sub="Ochain"})
- sets.TP.Ochain.HighACC = set_combine(sets.TP.HighACC,{
- sub="Ochain"})
- -- Aegis TP Sets --
- sets.TP.Aegis = set_combine(sets.TP,{
- sub="Aegis"})
- sets.TP.Aegis.MidACC = set_combine(sets.TP.MidACC,{
- sub="Aegis"})
- sets.TP.Aegis.HighACC = set_combine(sets.TP.HighACC,{
- sub="Aegis"})
- -- Ragnarok TP Sets --
- sets.TP.Ragnarok = set_combine(sets.TP,{})
- sets.TP.Ragnarok.MidACC = set_combine(sets.TP.MidACC,{})
- sets.TP.Ragnarok.HighACC = set_combine(sets.TP.HighACC,{})
- -----------------------
- -- Damage Taken Sets --
- -----------------------
- -- PDT Sets --
- sets.PDT = {
- ammo="Staunch Tathlum",
- head="Chevalier's Armet +1",
- neck="Loricate Torque +1",
- ear1="Ethereal Earring",
- ear2="Odnowa Earring +1",
- body="Rev. Surcoat +2",
- hands="Souv. Handsch. +1",
- ring1="Moonbeam Ring",
- ring2="Moonbeam Ring",
- back="Moonbeam Cape",
- waist="Flume Belt +1",
- legs="Souv. Diechlings +1",
- feet="Souveran Schuhs +1"}
- sets.PDT.Ochain = set_combine(sets.PDT,{
- sub="Ochain"})
- sets.PDT.Aegis = set_combine(sets.PDT,{
- sub="Aegis"})
- -- MDT Sets --
- sets.MDT = {
- ammo="Staunch Tathlum",
- head="Chevalier's Armet +1",
- neck="Loricate Torque +1",
- ear1="Ethereal Earring",
- ear2="Odnowa Earring +1",
- body="Rev. Surcoat +2",
- hands="Souv. Handsch. +1",
- ring1="Moonbeam Ring",
- ring2="Shadow Ring",
- back="Moonbeam Cape",
- waist="Asklepian Belt",
- legs="Souv. Diechlings +1",
- feet="Souveran Schuhs +1"}
- sets.MDT.Ochain = set_combine(sets.MDT,{
- sub="Ochain"})
- sets.MDT.Aegis = set_combine(sets.MDT,{
- sub="Aegis"})
- -- DT Sets --
- sets.DT = set_combine(sets.PDT,{})
- sets.DT.Ochain = set_combine(sets.PDT.Ochain,{})
- sets.DT.Aegis = set_combine(sets.PDT.Aegis,{})
- -- Kiting Sets --
- sets.Kiting = set_combine(sets.PDT,{
- head="Rev. Coronet +1",
- ear2="Genmei Earring",
- legs="Carmine Cuisses +1",
- feet="Hippo. Socks +1"})
- sets.Kiting.Ochain = set_combine(sets.Kiting,{sub="Ochain"})
- sets.Kiting.Aegis = set_combine(sets.Kiting,{sub="Aegis"})
- -- Hybrid Sets --
- sets.TP.Hybrid = {
- ammo="Staunch Tathlum",
- head="Arke Zuchetto",
- neck="Combatant's Torque",
- ear1="Ethereal Earring",
- ear2="Zennaroi Earring",
- body="Arke Corazza",
- hands="Arke Manopolas",
- ring1="Moonbeam Ring",
- ring2="Moonbeam Ring",
- back="Moonbeam Cape",
- waist="Sailfi Belt +1",
- legs="Arke Cosciales",
- feet="Arke Gambieras"}
- sets.TP.Hybrid.MidACC = set_combine(sets.TP.Hybrid,{})
- sets.TP.Hybrid.HighACC = set_combine(sets.TP.Hybrid.MidACC,{})
- --------------------
- -- Weapon Skill Sets
- --------------------
- -- WS Base Set -----
- sets.WS = {
- ammo="Floestone",
- head="Flam. Zucchetto +1",
- neck="Fotia Gorget",
- lear="Moonshade Earring",
- rear="Brutal Earring",
- body="Emicho Haubert +1",
- hands="Emi. Gauntlets +1",
- ring1="Shukuyu Ring",
- ring2="Regal Ring",
- back=DEXDAMantle,
- waist="Fotia Belt",
- legs="Sulev. Cuisses +2",
- feet="Flam. Gambieras +1"}
- sets.WS.MidACC = set_combine(sets.WS,{
- ear2="Zennaroi Earring",
- feet="Emi. Gambieras +1"})
- sets.WS.HighACC = set_combine(sets.WS.MidACC,{
- head="Carmine Mask +1",
- ring1="Ramuh Ring +1",
- ring2="Ramuh Ring +1",
- legs="Carmine Cuisses +1"})
- -- Magic WS base set --
- sets.WS.MABWS = {
- ammo="Pemphredo Tathlum",
- head="Jumalik Helm",
- neck="Sanctity Necklace",
- ear1="Friomisi Earring",
- ear2="Crematio Earring",
- body="Found. Breastplate",
- hands="Founder's Gauntlets",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back="Argochampsa Mantle",
- waist="Eschan Stone",
- legs="Eschite Cuisses",
- feet="Founder's Greaves"}
- -- Chant du Cygne Sets --
- sets.WS["Chant du Cygne"] = set_combine(sets.WS,{
- ammo="Jukukik Feather",
- hands="Flam. Manopolas +1",
- ring1="Begrudging Ring",
- legs="Lustr. Subligar +1",
- feet="Emi. Gambieras +1"})
- sets.WS["Chant du Cygne"].MidACC = set_combine(sets.WS.MidACC,{
- hands="Flam. Manopolas +1",
- ring1="Begrudging Ring",
- legs="Lustr. Subligar +1",
- feet="Emi. Gambieras +1"})
- sets.WS["Chant du Cygne"].HighACC = set_combine(sets.WS.HighACC,{})
- -- Requiescat Sets --
- sets.WS.Requiescat = set_combine(sets.WS,{
- ammo="Quartz Tathlum +1",
- ring1="Rufescent Ring",
- ring2="Levia. Ring"})
- sets.WS.Requiescat.MidACC = set_combine(sets.WS.MidACC,{
- ring1="Rufescent Ring",
- ring2="Levia. Ring"})
- sets.WS.Requiescat.HighACC = set_combine(sets.WS.HighACC,{})
- --- Savage Blade Sets --
- sets.WS["Savage Blade"] = set_combine(sets.WS,{
- head=OHead.WSD,
- ear2="Ishvara Earring",
- body="Sulevia's Plate. +1",
- hands=OHands.WSD,
- back=WSDMantle,
- legs=OLegs.WSD,
- feet="Sulev. Leggings +2"})
- sets.WS["Savage Blade"].MidACC = set_combine(sets.WS.MidACC,{
- head=OHead.WSD,
- ear2="Ishvara Earring",
- body="Sulevia's Plate. +1",
- hands=OHands.WSD,
- back=WSDMantle,
- legs=OLegs.WSD,
- feet="Sulev. Leggings +2"})
- sets.WS["Savage Blade"].HighACC = set_combine(sets.WS.HighACC,{
- hands=OHands.WSD,
- back=WSDMantle,
- feet="Sulev. Leggings +2"})
- -- Resolution Sets --
- sets.WS.Resolution = set_combine(sets.WS,{})
- sets.WS.Resolution.MidACC = set_combine(sets.WS.MidACC,{})
- sets.WS.Resolution.HighACC = set_combine(sets.WS.HighACC,{})
- -- Torcleaver Sets --
- sets.WS.Torcleaver = set_combine(sets.WS,{
- head=OHead.WSD,
- ear2="Ishvara Earring",
- body="Sulevia's Plate. +1",
- hands=OHands.WSD,
- ring1="Titan Ring +1",
- back=WSDMantle,
- legs=OLegs.WSD,
- feet="Sulev. Leggings +2"})
- sets.WS.Torcleaver.MidACC = set_combine(sets.WS.MidACC,{
- head=OHead.WSD,
- ear2="Ishvara Earring",
- body="Sulevia's Plate. +1",
- hands=OHands.WSD,
- ring1="Titan Ring +1",
- back=WSDMantle,
- legs=OLegs.WSD,
- feet="Sulev. Leggings +2"})
- sets.WS.Torcleaver.HighACC = set_combine(sets.WS.HighACC,{
- hands=OHands.WSD,
- back=WSDMantle,
- feet="Sulev. Leggings +2"})
- -- Scourge Sets --
- sets.WS.Scourge = set_combine(sets.WS,{
- head=OHead.WSD,
- ear2="Ishvara Earring",
- body="Sulevia's Plate. +1",
- hands=OHands.WSD,
- ring1="Titan Ring +1",
- back=WSDMantle,
- legs=OLegs.WSD,
- feet="Sulev. Leggings +2"})
- sets.WS.Scourge.MidACC = set_combine(sets.WS.MidACC,{
- head=OHead.WSD,
- ear2="Ishvara Earring",
- body="Sulevia's Plate. +1",
- hands=OHands.WSD,
- ring1="Titan Ring +1",
- back=WSDMantle,
- legs=OLegs.WSD,
- feet="Sulev. Leggings +2"})
- sets.WS.Scourge.HighACC = set_combine(sets.WS.HighACC,{
- hands=OHands.WSD,
- back=WSDMantle,
- feet="Sulev. Leggings +2"})
- -- Atonement Set --
- sets.WS.Atonement = {
- head=OHead.WSD,
- ear2="Ishvara Earring",
- hands=OHands.WSD,
- back=WSDMantle,
- legs=OLegs.WSD,
- feet="Sulev. Leggings +2"}
- -- Sanguine Blade Set --
- sets.WS["Sanguine Blade"] = set_combine(sets.WS.MABWS,{
- head="Pixie Hairpin +1",
- ring1="Archon Ring",
- back=WSDMantle})
- sets.WS["Sanguine Blade"].MidACC = set_combine(sets.WS.MABWS,{
- head="Pixie Hairpin +1",
- ring1="Archon Ring",
- back=WSDMantle})
- sets.WS["Sanguine Blade"].HighACC = set_combine(sets.WS.MABWS,{
- head="Pixie Hairpin +1",
- ring1="Archon Ring",
- back=WSDMantle})
- -- Aeolian Edge Set --
- sets.WS["Aeolian Edge"] = set_combine(sets.WS.MABWS,{})
- sets.WS["Aeolian Edge"].MidACC = set_combine(sets.WS.MABWS,{})
- sets.WS["Aeolian Edge"].HighACC = set_combine(sets.WS.MABWS,{})
- ----------------------
- -- Job Ability Sets --
- ----------------------
- -- Enmity Set --
- sets.Enmity = {
- ammo="Egoist's Tathlum",
- head="Souveran Schaller",
- neck="Unmoving Collar +1",
- ear1="Odnowa Earring",
- ear2="Cryptic Earring",
- body="Rev. Surcoat +2",
- hands="Macabre Gaunt. +1",
- ring1="Eihwaz Ring",
- ring2="Apeile Ring +1",
- back="Fierabras's Mantle",
- waist="Creed Baudrier",
- legs="Souv. Diechlings +1",
- feet="Souveran Schuhs +1"}
- -- PLD JA Sets --
- sets.JA = {}
- sets.JA["Shield Bash"] = set_combine(sets.Enmity,{hands="Cab. Gauntlets +1"})
- sets.JA.Sentinel = set_combine(sets.Enmity,{feet="Cab. Leggings +1"})
- sets.JA["Holy Circle"] = set_combine(sets.Enmity,{feet="Rev. Leggings +1"})
- sets.JA["Divine Emblem"] = set_combine(sets.Enmity,{feet="Chev. Sabatons"})
- sets.JA.Fealty = set_combine(sets.Enmity,{body="Cab. Surcoat +1"})
- sets.JA.Invincible = set_combine(sets.Enmity,{legs="Cab. Breeches +1"})
- sets.JA.Palisade = set_combine(sets.Enmity)
- sets.JA.Chivalry = {hands="Cab. Gauntlets +1"}
- sets.JA.Rampart = {head="Cab. Coronet +1"}
- sets.JA.Cover = {head="Rev. Coronet +1"}
- -- Gear Worn During Cover --
- sets.Cover = {
- head="Rev. Coronet +1",
- body="Cab. Surcoat +1"}
- -- /WAR JA Sets --
- sets.JA.Provoke = set_combine(sets.Enmity)
- sets.JA.Warcry = set_combine(sets.Enmity)
- -- /DRK JA Sets --
- sets.JA.Souleater = set_combine(sets.Enmity)
- sets.JA["Last Resort"] = set_combine(sets.Enmity)
- -- /DNC JA Sets --
- sets.Flourish = set_combine(sets.Enmity)
- sets.Step = {}
- sets.Waltz = {}
- -- /RUN JA Sets --
- sets.JA.Vallation = set_combine(sets.Enmity)
- sets.JA.Swordplay = set_combine(sets.Enmity)
- sets.JA.Pflug = set_combine(sets.Enmity)
- -------------------
- -- Pre-Cast Sets --
- -------------------
- -- Pre-cast Base Set --
- sets.Precast = {
- ammo="Impatiens",
- head="Chev. Armet +1",
- neck="Orunmila's Torque",
- ear1="Etiolation Earring",
- ear2="Odnowa Earring +1",
- body="Rev. Surcoat +2",
- hands="Souv. Handsch. +1",
- ring1="Moonbeam Ring",
- ring2="Moonbeam Ring",
- back=FCMantle,
- waist="Creed Baudrier",
- legs="Souv. Diechlings +1",
- feet="Carmine Greaves +1"}
- --Fastcast Set --
- sets.Precast.FastCast = set_combine(sets.Precast,{})
- -- Precast Enhancing Magic --
- sets.Precast['Enhancing Magic'] = set_combine(sets.Precast.FastCast,{waist="Siegel Sash"})
- -- Precast Cure Set --
- sets.Precast.Cure = set_combine(sets.Precast,{
- ear1="Nourish. Earring +1",
- ear2="Mendi. Earring",
- body="Jumalik Mail",
- waist="Acerbic Sash +1"})
- -- Precast Self Cure Set: Use -HP Gear For Cure Cheat --
- sets.Precast.SelfCure = set_combine(sets.Precast,{
- ear1="Nourish. Earring +1",
- ear2="Mendi. Earring",
- body="Jumalik Mail",
- ring1="Lebeche Ring",
- ring2="Kishar Ring",
- waist="Acerbic Sash +1"})
- ------------------
- -- Midcast Sets --
- ------------------
- -- Midcast Base Set --
- sets.Midcast = {
- ammo="Staunch Tathlum",
- head="Chev. Armet +1",
- neck="Orunmila's Torque",
- ear1="Etiolation Earring",
- ear2="Odnowa Earring +1",
- body="Rev. Surcoat +2",
- hands="Souv. Handsch. +1",
- ring1="Moonbeam Ring",
- ring2="Moonbeam Ring",
- back=FCMantle,
- waist="Creed Baudrier",
- legs="Souv. Diechlings +1",
- feet="Carmine Greaves +1"}
- -- Spells Recast --
- sets.Midcast.Recast = set_combine(sets.Midcast,{})
- --------------------
- -- Paladin Spells --
- --------------------
- -- Divine Magic --
- sets.Midcast['Divine Magic'] = set_combine(sets.Midcast,{
- head="Jumalik Helm",
- neck="Incanter's Torque",
- body="Rev. Surcoat +2",
- hands="Eschite Gauntlets",
- ring1="Stikini Ring",
- ring2="Stikini Ring",
- waist="Asklepian Belt"})
- -- Enlight Set --
- sets.Midcast.Enlight = set_combine(sets.Midcast['Divine Magic'],{})
- -- Banish Set --
- sets.Midcast.Banish = set_combine(sets.Midcast.MACC,{})
- -- Holy Set --
- sets.Midcast.Holy = set_combine(sets.Midcast.MAB,{})
- -- Cure Set --
- sets.Midcast.Cure = {
- ammo="Egoist's Tathlum",
- head="Souveran Schaller",
- neck="Phalaina Locket",
- ear1="Nourish. Earring +1",
- ear2="Mendi. Earring",
- body="Souveran Cuirass",
- hands="Macabre Gaunt. +1",
- ring1="Eihwaz Ring",
- ring2="Moonbeam Ring",
- back="Fierabras's Mantle",
- waist="Creed Baudrier",
- legs="Souv. Diechlings +1",
- feet="Souveran Schuhs +1"}
- -- Self Cure Set: Use +HP Gear For Cure Cheat ---
- sets.Midcast.SelfCure = set_combine(sets.Midcast.Cure,{
- ear1="Odnowa Earring",
- ear2="Odnowa Earring +1",
- bacl="Moonbeam Cape"})
- -- Flash Set --
- sets.Midcast.Flash = {
- ammo="Egoist's Tathlum",
- head="Souveran Schaller",
- neck="Unmoving Collar +1",
- ear1="Trux Earring",
- ear2="Cryptic Earring",
- body="Rev. Surcoat +2",
- hands="Souv. Handsch. +1",
- ring1="Eihwaz Ring",
- ring2="Moonbeam Ring",
- back=FCMantle,
- waist="Goading Belt",
- legs="Souv. Diechlings +1",
- feet="Souveran Schuhs +1"}
- -- Enhancing Magic --
- sets.Midcast['Enhancing Magic'] = {
- head="Carmine Mask +1",
- neck="Incanter's Torque",
- ear1="Andoaa Earring",
- ear2="Augment. Earring",
- body="Shabti Cuirass",
- ring1="Stikini Ring",
- ring2="Stikini Ring",
- back="Merciful Cape",
- waist="Olympus Sash",
- legs="Carmine Cuisses +1"}
- -- Phalanx --
- sets.Midcast.Phalanx = set_combine(sets.Midcast['Enhancing Magic'],{
- hands="Souv. Handsch. +1",
- back="Weard Mantle",
- feet="Souveran Schuhs +1"})
- -- Reprisal --
- sets.Midcast.Reprisal = {}
- ------------------------
- -- Non-Paladin Spells --
- ------------------------
- -- Stoneskin --
- sets.Midcast.Stoneskin = set_combine(sets.Midcast['Enhancing Magic'],{
- waist="Siegel Sash"})
- -- Magic Attack Bonus Set --
- sets.Midcast.MAB = {
- ammo="Pemphredo Tathlum",
- head="Jumalik Helm",
- neck="Sanctity Necklace",
- ear1="Friomisi Earring",
- ear2="Crematio Earring",
- body="Found. Breastplate",
- hands="Founder's Gauntlets",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back="Argochampsa Mantle",
- waist="Eschan Stone",
- legs="Eschite Cuisses",
- feet="Founder's Greaves"}
- -- Magic Accuracy Set --
- sets.Midcast.MACC = {
- ammo="Pemphredo Tathlum",
- head="Carmine Mask +1",
- neck="Erra Pendant",
- ear1="Digni. Earring",
- ear2="Gwati Earring",
- body="Rev. Surcoat +2",
- hands="Flam. Manopolas +1",
- ring1="Stikini Ring",
- ring2="Stikini Ring",
- waist="Eschan Stone",
- legs="Flamma Dirs +1",
- feet="Flam. Gambieras +1"}
- -- Elemental Magic Set --
- sets.Midcast['Elemental Magic'] = set_combine(sets.Midcast.MAB,{})
- -- Enfeebling Magic Set --
- sets.Midcast['Enfeebling Magic'] = set_combine(sets.Midcast.MACC,{})
- -- Dark Magic Set --
- sets.Midcast['Dark Magic'] = set_combine(sets.Midcast.MACC,{})
- -- -- Repose Set --
- sets.Midcast.Repose = set_combine(sets.Midcast.MACC,{})
- -- Enfeebling Ninjutsu Set --
- sets.Midcast.Enfeebling_Ninjutsu = set_combine(sets.Midcast.MACC,{})
- -- Elemental Ninjutsu Set --
- sets.Midcast.Elemental_Ninjutsu = set_combine(sets.Midcast.MAB,{})
- end
- ---------------
- -- Functions --
- ---------------
- ----------------
- -- Pre-Target --
- ----------------
- 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:ifind("Cure") and player.mp<actualCost(spell.mp_cost) then -- Cure Degradation --
- degrade_spell(spell,Cure_Spells)
- elseif spell.english:ifind("Curaga") and player.mp<actualCost(spell.mp_cost) then -- Curaga Degradation --
- degrade_spell(spell,Curaga_Spells)
- return
- end
- end
- --------------
- -- Pre-Cast --
- --------------
- function precast(spell,action)
- if canceled then
- return
- 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 elements[spell.name] and elements[spell.name]:contains(world.day_element) then
- equipSet = set_combine(equipSet,elements.equip)
- end
- if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
- equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
- end
- if player.tp > 2750 then
- equipSet = set_combine(equipSet,{ear1="Zwazo Earring"}) -- 3000 TP: Equip Zwazo Earring --
- end
- if world.time <= (7*60) or world.time >= (17*60) then
- equipSet = set_combine(equipSet,{ear2="Lugra Earring +1"}) -- Dusk til Dawn: Equip Lugra Earring +1 --
- end
- equip(equipSet)
- end
- elseif spell.type == "JobAbility" or spell.type == "Ward" or spell.type == "Effusion" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- elseif spell.type == "Rune" then
- equip(sets.Enmity)
- elseif 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') or spell.english == "Wild Carrot" or spell.english == "Healing Breeze") and spell.english ~= "Cursna" then
- if spell.target.name == player.name then
- equip(sets.Precast.SelfCure)
- else
- equip(sets.Precast.Cure)
- end
- elseif spell.english == "Reprisal" then
- if buffactive['Blaze Spikes'] or buffactive['Ice Spikes'] or buffactive['Shock Spikes'] then -- Cancel Blaze Spikes, Ice Spikes or Shock Spikes When You Cast Reprisal --
- cast_delay(0.2)
- send_command('cancel Blaze Spikes,Ice Spikes,Shock Spikes')
- end
- equip(sets.Precast.FastCast)
- 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:endswith('Flourish') then
- if spell.english == "Animated Flourish" then
- equip(sets.Enmity)
- else
- equip(sets.Flourish)
- end
- elseif spell.type == "Step" then
- equip(sets.Step)
- elseif 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
- --------------
- -- Mid-Cast --
- --------------
- function midcast(spell,action)
- equipSet = {}
- if spell.action_type == 'Magic' then
- equipSet = sets.Midcast
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- elseif (spell.english:startswith('Cur') or spell.english == "Wild Carrot" or spell.english == "Healing Breeze") and spell.english ~= "Cursna" then
- if spell.target.name == player.name then
- equipSet = equipSet.SelfCure
- else
- equipSet = equipSet.Cure
- 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('Protect') or spell.english:startswith('Shell') then
- if spell.target.name == player.name then
- equipSet = set_combine(equipSet,{ring2="Sheltered Ring"})
- end
- elseif spell.english:startswith('Refresh') or spell.english:startswith('Haste') or spell.english:startswith('Flurry') or spell.english:startswith('Blink') or spell.english:startswith('Regen') or spell.english:endswith('Spikes') then
- equipSet = sets.Haste
- elseif spell.english == "Stoneskin" then
- if buffactive.Stoneskin then
- send_command('@wait 2.8;cancel stoneskin')
- end
- equipSet = equipSet.Stoneskin
- elseif spell.english:startswith('Enlight') then
- equipSet = equipSet.Enlight
- elseif spell.english:startswith('Banish') then
- equipSet = equipSet.Banish
- 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('Holy') then
- equipSet = equipSet.Holy
- if world.day_element == spell.element or world.weather_element == spell.element then
- equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
- end
- elseif Enmity_BlueMagic:contains(spell.english) or spell.english == "Stun" or spell.english:startswith('Absorb') or spell.english == 'Aspir' or spell.english == 'Drain' then
- if buffactive.Sentinel then
- equipSet = equipSet.Recast
- else
- equipSet = equipSet.Flash
- end
- elseif spell.english:endswith('Spikes') then
- equipSet = equipSet.Recast
- elseif 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
- equipSet = equipSet.Haste
- elseif spell.english == 'Monomi: Ichi' then
- if buffactive['Sneak'] then
- send_command('@wait 1.7;cancel sneak')
- end
- equipSet = equipSet.Haste
- elseif spell.english:startswith('Tonko') then
- equipSet = equipSet.Haste
- elseif spell.english:startswith('Jabaku') or spell.english:startswith('Hojo') or spell.english:startswith('Kurayami') or spell.english:startswith('Dokumori') then
- equipSet = equipSet.Enfeebling_Ninjutsu
- elseif spell.english:startswith('Katon') or spell.english:startswith('Suiton') or spell.english:startswith('Doton') or spell.english:startswith('Hyoton') or spell.english:startswith('Huton') or spell.english:startswith('Raiton') then
- equipSet = equipSet.Elemental_Ninjutsu
- if (world.day_element == spell.element or world.weather_element == spell.element) then
- equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
- end
- elseif equipSet[spell.skill] then
- equipSet = equipSet[spell.skill]
- end
- if spell.skill == 'Elemental Magic' or spell.english:startswith('Cur') or spell.english:startswith('Aspir') or spell.english:startswith('Drain') or spell.english:startswith('White Wind') then
- if (world.day_element == spell.element or world.weather_element == spell.element) then
- equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
- end
- if MB == 'ON' then
- equipSet = set_combine(equipSet,sets.Midcast.MB)
- end
- end
- elseif equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- equip(equipSet)
- end
- ----------------
- -- After-Cast --
- ----------------
- function aftercast(spell,action)
- if canceled then
- canceled = false
- return
- else
- if not spell.interrupted then
- if spell.type == "WeaponSkill" then
- send_command('wait 0.2;gs c TP')
- elseif spell.english == "Banish II" then -- Banish II Countdown --
- send_command('@wait 20;input /echo Banish Effect: [WEARING OFF IN 10 SEC.]')
- elseif spell.english == "Holy Circle" then -- Holy 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
- end
- -------------------
- -- Status Change --
- -------------------
- function status_change(new,old)
- if Armor == 'PDT' then
- equip(sets.PDT[ShieldArray[ShieldIndex]])
- elseif Armor == 'MDT' then
- equip(sets.MDT[ShieldArray[ShieldIndex]])
- elseif Armor == 'Kiting' then
- equip(sets.Kiting[ShieldArray[ShieldIndex]])
- elseif Armor == 'Weakness' then
- equip(sets.Weakness[ShieldArray[ShieldIndex]])
- elseif Armor == 'DT' then
- equip(sets.DT[ShieldArray[ShieldIndex]])
- elseif buffactive.Cover and Cover == 'ON' then
- equip(sets.Cover)
- 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[ShieldArray[ShieldIndex]] then
- equipSet = equipSet[ShieldArray[ShieldIndex]]
- end
- 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 equipSet[ShieldArray[ShieldIndex]] then
- equipSet = equipSet[ShieldArray[ShieldIndex]]
- end
- if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
- equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
- end
- equip(equipSet)
- elseif new == 'Resting' then
- equip(sets.Resting)
- end
- if Twilight == 'Twilight' then
- equip(sets.Twilight)
- end
- end
- -----------------
- -- Buff Change --
- -----------------
- function buff_change(buff,gain,buff_table)
- buff = string.lower(buff)
- if buff_table['id'] == 273 and player.equipment.main == 'Excalibur' then -- Excalibur AM3 Timer/Countdown --
- if gain then
- add_to_chat(158,'Excalibur Aftermath: [ON]')
- else
- add_to_chat(123,'Relic Aftermath: [OFF]')
- end
- elseif buff_table['id'] == 273 and player.equipment.main == 'Ragnarok' then -- Ragnarok AM3 Timer/Countdown --
- if gain then
- add_to_chat(158,'Ragnarok Aftermath: [ON]')
- else
- add_to_chat(123,'Relic Aftermath: [OFF]')
- end
- elseif buff_table['id'] == 272 and player.equipment.main == 'Burtgang' then -- Burtgang AM3 Timer/Countdown --
- if gain then
- send_command('timers create "Mythic Aftermath: Lv.3" 180 down')
- add_to_chat(158,'Burtgang AM3: [ON]')
- else
- send_command('timers delete "Mythic Aftermath: Lv.3"')
- add_to_chat(123,'Burtgang AM3: [OFF]')
- end
- elseif buff_table['id'] == 271 and player.equipment.main == 'Burtgang' then -- Burtgang AM2 Timer/Countdown --
- if gain then
- send_command('timers create "Mythic Aftermath: Lv.2" 270 down')
- add_to_chat(158,'Burtgang AM2: [ON]')
- else
- send_command('timers delete "Mythic Aftermath: Lv.2"')
- add_to_chat(123,'Burtgang AM2: [OFF]')
- end
- elseif buff_table['id'] == 270 and player.equipment.main == 'Burtgang' then -- Burtgang AM1 Timer/Countdown --
- if gain then
- add_to_chat(158,'Burtgang AM1: [ON]')
- else
- add_to_chat(123,'Burtgang AM1: [OFF]')
- end
- elseif buff_table['id'] == 272 and player.equipment.main == 'Almace' then -- Almace AM3 Timer/Countdown --
- if gain then
- send_command('timers create "Empy Aftermath: Lv.3" 180 down')
- add_to_chat(158,'Almace AM3: [ON]')
- else
- send_command('timers delete "Empy Aftermath: Lv.3"')
- add_to_chat(123,'Almace AM3: [OFF]')
- end
- elseif buff_table['id'] == 271 and player.equipment.main == 'Almace' then -- Almace AM2 Timer/Countdown --
- if gain then
- send_command('timers create "Empy Aftermath: Lv.2" 120 down')
- add_to_chat(158,'Almace AM2: [ON]')
- else
- send_command('timers delete "Empy Aftermath: Lv.2"')
- add_to_chat(123,'Almace AM2: [OFF]')
- end
- elseif buff_table['id'] == 270 and player.equipment.main == 'Almace' then -- Almace AM1 Timer/Countdown --
- if gain then
- add_to_chat(158,'Almace AM1: [ON]')
- else
- add_to_chat(123,'Almace AM1: [OFF]')
- end
- elseif buff_table['id'] == 272 and player.equipment.main == 'Caladbolg' then -- Caladbolg AM3 Timer/Countdown --
- if gain then
- send_command('timers create "Empy Aftermath: Lv.3" 180 down')
- add_to_chat(158,'Caladbolg AM3: [ON]')
- else
- send_command('timers delete "Empy Aftermath: Lv.3"')
- add_to_chat(123,'Caladbolg AM3: [OFF]')
- end
- elseif buff_table['id'] == 271 and player.equipment.main == 'Caladbolg' then -- Caladbolg AM2 Timer/Countdown --
- if gain then
- send_command('timers create "Empy Aftermath: Lv.2" 120 down')
- add_to_chat(158,'Caladbolg AM2: [ON]')
- else
- send_command('timers delete "Empy Aftermath: Lv.2"')
- add_to_chat(123,'Caladbolg AM2: [OFF]')
- end
- elseif buff_table['id'] == 270 and player.equipment.main == 'Caladbolg' then -- Caladbolg AM1 Timer/Countdown --
- if gain then
- add_to_chat(158,'Caladbolg AM1: [ON]')
- else
- send_command('timers delete "Empy Aftermath: Lv.2"')
- add_to_chat(123,'Caladbolg AM1: [OFF]')
- end
- elseif buff_table['id'] == 272 and player.equipment.main == 'Sequence' then -- Sequence AM3 Timer/Countdown --
- if gain then
- send_command('timers create "Aeonic Aftermath: Lv.3" 180 down')
- add_to_chat(158,'Sequence AM3: [ON]')
- else
- send_command('timers delete "Aeonic Aftermath: Lv.3"')
- add_to_chat(123,'Sequence AM3: [OFF]')
- end
- elseif buff_table['id'] == 271 and player.equipment.main == 'Sequence' then -- Sequence AM2 Timer/Countdown --
- if gain then
- send_command('timers create "Aeonic Aftermath: Lv.2" 180 down')
- add_to_chat(158,'Sequence AM2: [ON]')
- else
- send_command('timers delete "Aeonic Aftermath: Lv.2"')
- add_to_chat(123,'Sequence AM2: [OFF]')
- end
- elseif buff_table['id'] == 270 and player.equipment.main == 'Sequence' then -- Sequence AM1 Timer/Countdown --
- if gain then
- add_to_chat(158,'Sequence AM1: [ON]')
- else
- add_to_chat(123,'Sequence AM1: [OFF]')
- end
- elseif buff_table['id'] == 434 then -- Brew Timer --
- if gain then
- send_command('timers create "Transcendency" 180 down')
- else
- send_command('timers delete "Transcendency"')
- add_to_chat(123,'Transcendency: [OFF]')
- end
- elseif buff_table['id'] == 1 then -- Weakness Timer --
- if gain then
- send_command('timers create "Weakness" 300 up')
- else
- send_command('timers delete "Weakness"')
- add_to_chat(158,'Weakness: [OFF]')
- end
- elseif buff_table['id'] == 15 then -- Doom Party Chat --
- if gain then
- send_command('input /party Doom')
- else
- send_command('input /party Doom off')
- add_to_chat(158,'Doom: [OFF]')
- end
- elseif buff_table['id'] == 9 then -- Curse Party Chat --
- if gain then
- send_command('input /party Curse')
- else
- add_to_chat(158,'Curse: [OFF]')
- end
- elseif buff_table['id'] == 14 or buff_table['id'] == 17 then -- Charm Party Chat --
- if gain then
- send_command('input /party Charmed')
- else
- send_command('input /party Charm off')
- add_to_chat(158,'Charm: [OFF]')
- end
- elseif buff_table['id'] == 4 then -- Paralysis --
- if gain then
- add_to_chat(123,'Paralyzed!')
- else
- add_to_chat(158,'Paralysis: [OFF]')
- end
- elseif buff_table['id'] == 50 then -- Invincible --
- if not gain then
- add_to_chat(123,'Invincible: [OFF]')
- end
- elseif buff_table['id'] == 57 then -- Defender --
- if not gain then
- add_to_chat(123,'Defender: [OFF]')
- end
- elseif buff_table['id'] == 62 then -- Sentinel --
- if not gain then
- add_to_chat(123,'Sentinel: [OFF]')
- end
- elseif buff_table['id'] == 114 then -- Cover --
- if not gain then
- add_to_chat(123,'Cover: [OFF]')
- end
- elseif buff_table['id'] == 344 then -- Fealty --
- if not gain then
- add_to_chat(123,'Fealty: [OFF]')
- end
- elseif buff_table['id'] == 478 then -- Palisade --
- if not gain then
- add_to_chat(123,'Palisade: [OFF]')
- end
- elseif buff_table['id'] == 93 then -- Cocoon Notification --
- if not gain then
- add_to_chat(123,'Cocoon: [OFF]')
- end
- elseif buff_table['id'] == 33 then -- Haste --
- if not gain then
- add_to_chat(123,'Haste: [OFF]')
- end
- elseif buff_table['id'] == 149 then -- Defense Down --
- if not gain then
- add_to_chat(158,'Defense Down: [OFF]')
- end
- elseif buff_table['id'] == 13 then -- Slow --
- if gain then
- add_to_chat(123,'Slowed!')
- else
- add_to_chat(158,'Slow: [OFF]')
- end
- elseif buff_table['id'] == 40 then -- Protect --
- if not gain then
- add_to_chat(123,'Protect: [OFF]')
- end
- elseif buff_table['id'] == 41 then -- Shell --
- if not gain then
- add_to_chat(123,'Shell: [OFF]')
- end
- elseif buff_table['id'] == 43 then -- Refresh --
- if not gain then
- add_to_chat(123,'Refresh: [OFF]')
- end
- elseif buff_table['id'] == 116 then -- Phalanx --
- if not gain then
- add_to_chat(123,'Phalanx: [OFF]')
- end
- elseif buff_table['id'] == 274 then -- EnLight --
- if not gain then
- add_to_chat(123,'EnLight: [OFF]')
- end
- elseif buff_table['id'] == 289 then -- Crusade --
- if not gain then
- add_to_chat(123,'Crusade: [OFF]')
- end
- elseif buff_table['id'] == 403 then -- Reprisal --
- if not gain then
- add_to_chat(123,'Reprisal: [OFF]')
- end
- elseif buff_table['id'] == 251 then -- Food --
- if not gain then
- add_to_chat(123,'Food: [OFF]')
- end
- elseif buff_table['id'] == 28 then -- Terror --
- if not gain then
- add_to_chat(158,'Terror: [OFF]')
- end
- elseif buff_table['id'] == 10 then -- Stun --
- if not gain then
- add_to_chat(158,'Stun: [OFF]')
- end
- elseif buff_table['id'] == 16 then -- Amnesia --
- if not gain then
- add_to_chat(158,'Amnesia: [OFF]')
- end
- elseif buff_table['id'] == 2 or buff_table['id'] == 19 then -- Sleep --
- if gain then
- send_command('input /party ZZZ')
- else
- add_to_chat(158,'Sleep: [OFF]')
- end
- end
- if buffactive.Terror or buffactive.Stun or buffactive.Petrification or buffactive.Sleep and gain then -- Lock PDT When You Are Terrorised/Stunned/Petrified/Slept --
- equip({
- ammo="Staunch Tathlum",
- head="Chevalier's Armet +1",
- neck="Loricate Torque +1",
- ear1="Ethereal Earring",
- ear2="Odnowa Earring +1",
- body="Rev. Surcoat +2",
- hands="Souv. Handsch. +1",
- ring1="Moonbeam Ring",
- ring2="Moonbeam Ring",
- back="Moonbeam Cape",
- waist="Flume Belt +1",
- legs="Souv. Diechlings +1",
- feet="Souveran Schuhs +1"})
- 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 == 'acc' then -- Accuracy Level Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- status_change(player.status)
- add_to_chat(155,'Accuracy Level: '..AccArray[AccIndex])
- elseif command == 'update' then -- Auto Update Gear Toggle --
- status_change(player.status)
- add_to_chat(155,'-[Gear Update]-')
- add_to_chat(155,'Shield Type: '..ShieldArray[ShieldIndex])
- add_to_chat(155,'Accuracy Level: '..AccArray[AccIndex])
- elseif command == 'shield' then -- Shield Type Toggle --
- ShieldIndex = (ShieldIndex % #ShieldArray) + 1
- status_change(player.status)
- add_to_chat(158,'Shield Type: '..ShieldArray[ShieldIndex])
- elseif command == 'hybrid' 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 == '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 == 'mdt' 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 == 'kiting' then -- Kiting Toggle --
- if Armor == 'Kiting' then
- Armor = 'None'
- add_to_chat(123,'Kiting Set: [Unlocked]')
- else
- Armor = 'Kiting'
- add_to_chat(158,'Kiting Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'dt' then -- DT Toggle --
- if Armor == 'DT' then
- Armor = 'None'
- add_to_chat(123,'DT Set: [Unlocked]')
- else
- Armor = 'DT'
- add_to_chat(158,'DT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'twilight' 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 == 'idle' then -- Idle Toggle --
- IdleIndex = (IdleIndex % #IdleArray) + 1
- status_change(player.status)
- add_to_chat(155,'Idle Set: '..IdleArray[IdleIndex])
- 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"] or buffactive["Addendum: White"] then
- return originalCost*.9
- elseif buffactive["Dark Arts"] or buffactive["Addendum: Black"] then
- return originalCost*1.1
- 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: ['..player.mp..'/'..player.max_mp..'MP::'..player.mpp..'%] Casting '..new_spell..' instead.')
- end
- end
- function change_spell(spell_name,target)
- cancel_spell()
- send_command('//'..spell_name..' '..target)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement