|
Lua help!
Server: Asura
Game: FFXI
Posts: 6
By Asura.Yinwizard 2018-04-30 10:53:14
Hello, first time trying out Gearswap, i'm trying to make this BLU lua work, i've put all my sets but it seems that FC and BLU FC are not working properly, it doesn't seem to be swaping to the Blue Magic FC set before blu spells, for spells like Erratic Flutter it doesn't work but it works for Cocoon for example. And other problem is that if i cast refresh (RDM spell) it doesn't change to the mid cast set for refresh, but if i cast battery charge it does change >.> help please!
Here it is:
Code function get_sets()
send_command('bind f9 gs c toggle TP set')
send_command('bind f10 gs c toggle Idle set')
send_command('bind f11 gs c toggle CDC set')
send_command('bind f12 gs c toggle Req set')
send_command('bind !f12 gs c toggle Rea set')
send_command('bind ^` gs c toggle MB set')
function file_unload()
send_command('unbind ^f9')
send_command('unbind ^f10')
send_command('unbind ^f11')
send_command('unbind ^f12')
send_command('unbind ^`')
send_command('unbind !f9')
send_command('unbind !f10')
send_command('unbind !f11')
send_command('unbind !f12')
send_command('unbind f9')
send_command('unbind f10')
send_command('unbind f11')
send_command('unbind f12')
end
--Idle Sets--
sets.Idle = {}
sets.Idle.index = {'Refresh','DT'}
--1=Refresh, 2=DT--
Idle_ind = 2
sets.Idle.Refresh = {
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Jhakri Robe +2",
hands="Serpentes Cuffs",
legs={ name="Carmine Cuisses +1", augments={'Accuracy+20','Attack+12','"Dual Wield"+6',}},
feet="Serpentes Sabots",
neck="Sanctity Necklace",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Ethereal Earring",
left_ring="Stikini Ring +1",
right_ring="Paguroidea Ring",
back="Moonlight Cape",
}
sets.Idle.DT = {
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Jhakri Robe +2",
hands="Assim. Bazu. +3",
legs={ name="Carmine Cuisses +1", augments={'Accuracy+20','Attack+12','"Dual Wield"+6',}},
feet="Aya. Gambieras +1",
neck="Loricate Torque +1",
waist="Flume Belt +1",
left_ear="Odnowa Earring +1",
right_ear="Etiolation Earring",
left_ring="Stikini Ring +1",
right_ring="Defending Ring",
back="Moonlight Cape",
}
--TP Sets--
sets.TP = {}
sets.TP.index = {'Standard', 'Accuracy', 'Hybrid', 'DT'}
--1=Standard, 2=Accuracy, 3=Hybrid, 4=DT--
TP_ind = 1
sets.TP.Standard ={
ammo="Ginsen",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Lissome Necklace",
waist="Windbuffet Belt +1",
left_ear="Telos Earring",
right_ear="Brutal Earring",
left_ring="Petrov Ring",
right_ring="Epona's Ring",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Store TP"+10',}},
}
sets.TP.Accuracy ={
ammo="Falcon Eye",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Carmine Cuisses +1", augments={'Accuracy+20','Attack+12','"Dual Wield"+6',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Lissome Necklace",
waist="Eschan Stone",
left_ear="Telos Earring",
right_ear="Mache Earring +1",
left_ring="Ilabrat Ring",
right_ring="Chirich Ring",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Store TP"+10',}},
}
sets.TP.Hybrid ={
ammo="Ginsen",
head="Aya. Zucchetto +2",
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Herculean Trousers", augments={'Accuracy+13','"Triple Atk."+4','AGI+5','Attack+3',}},
feet="Aya. Gambieras +1",
neck="Loricate Torque +1",
waist="Flume Belt +1",
left_ear="Telos Earring",
right_ear="Odnowa Earring +1",
left_ring="Defending Ring",
right_ring="Ilabrat Ring",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Store TP"+10',}},
}
sets.TP.DT ={
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Ayanmo Corazza +1",
hands="Assim. Bazu. +3",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +1",
neck="Loricate Torque +1",
waist="Flume Belt +1",
left_ear="Telos Earring",
right_ear="Etiolation Earring",
left_ring="Ilabrat Ring",
right_ring="Defending Ring",
back="Moonlight Cape",
}
--Weaponskill Sets--
sets.WS = {}
sets.Requiescat = {}
sets.Requiescat.index = {'Attack','Accuracy'}
Requiescat_ind = 1
sets.Requiescat.Attack ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Assim. Jubbah +2",
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs="Aya. Cosciales +2",
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Brutal Earring",
left_ring="Levia. Ring +1",
right_ring="Levia. Ring +1",
back="Aurist's Cape +1",
}
sets.Requiescat.Accuracy ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Assim. Jubbah +2",
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs="Aya. Cosciales +2",
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Brutal Earring",
left_ring="Levia. Ring +1",
right_ring="Levia. Ring +1",
back="Aurist's Cape +1",
}
sets.ChantDuCygne = {}
sets.ChantDuCygne.index = {'Attack','Accuracy','HighAcc'}
ChantDuCygne_ind = 1
sets.ChantDuCygne.Attack ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Sayadio's Kaftan",
hands={ name="Herculean Gloves", augments={'Accuracy+20','Crit. hit damage +4%','DEX+5','Attack+14',}},
legs={ name="Herculean Trousers", augments={'Accuracy+24 Attack+24','Crit.hit rate+5','Accuracy+14','Attack+8',}},
feet="Thereoid Greaves",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Mache Earring +1",
right_ear="Brutal Earring",
left_ring="Ilabrat Ring",
right_ring="Ramuh Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.ChantDuCygne.Accuracy ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Sayadio's Kaftan",
hands={ name="Herculean Gloves", augments={'Accuracy+20','Crit. hit damage +4%','DEX+5','Attack+14',}},
legs={ name="Herculean Trousers", augments={'Accuracy+24 Attack+24','Crit.hit rate+5','Accuracy+14','Attack+8',}},
feet="Thereoid Greaves",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Mache Earring +1",
right_ear="Brutal Earring",
left_ring="Ilabrat Ring",
right_ring="Ramuh Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.ChantDuCygne.HighAcc ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Sayadio's Kaftan",
hands={ name="Herculean Gloves", augments={'Accuracy+20','Crit. hit damage +4%','DEX+5','Attack+14',}},
legs={ name="Herculean Trousers", augments={'Accuracy+24 Attack+24','Crit.hit rate+5','Accuracy+14','Attack+8',}},
feet="Thereoid Greaves",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Mache Earring +1",
right_ear="Brutal Earring",
left_ring="Ilabrat Ring",
right_ring="Ramuh Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.WS.SanguineBlade = {}
sets.WS.SanguineBlade ={
ammo="Pemphredo Tathlum",
head="Jhakri Coronal +1",
body="Jhakri Robe +2",
hands="Jhakri Cuffs +1",
legs="Jhakri Slops +1",
feet="Jhakri Pigaches +1",
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Regal Earring",
right_ear="Friomisi Earring",
left_ring="Fenrir Ring +1",
right_ring="Fenrir Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.WS.CircleBlade = {}
sets.WS.CircleBlade ={
ammo="Ginsen",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Fotia Gorget",
waist="Prosilio Belt +1",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Ifrit Ring +1",
right_ring="Ifrit Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.WS.Expiacion = {}
sets.WS.Expiacion ={
ammo="Ginsen",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Fotia Gorget",
waist="Prosilio Belt +1",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Ifrit Ring +1",
right_ring="Ifrit Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.WS.VorpalBlade = {}
sets.WS.VorpalBlade ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Mache Earring +1",
left_ring="Ifrit Ring +1",
right_ring="Ifrit Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.Realmrazer = {}
sets.Realmrazer.index = {'Attack','Accuracy'}
Realmrazer_ind = 1
sets.Realmrazer.Attack = {ammo="Hydrocera",
head="Dampening Tam",neck="Fotia gorget",ear1="Bladeborn earring",ear2="Steelflash Earring",
body="Adhemar Jacket",hands="Adhemar Wristbands",ring1="Rajas ring",ring2="Rufescent ring",
back="Buquwik Cape",waist="Fotia belt",legs="Telchine Braconi",feet={ name="Herculean Boots", augments={'Accuracy+29','"Triple Atk."+4','STR+10',}},}
sets.Realmrazer.Accuracy = {ammo="Falcon Eye",
head="Whirlpool mask",neck="Fotia gorget",ear1="Bladeborn earring",ear2="Steelflash earring",
body="Luhlaza jubbah +1",hands="Luh. Bazubands +1",ring1="Levia. ring",ring2="Aquasoul ring",
back="Letalis mantle",waist="Fotia belt",legs="Quiahuiz trousers",feet="Assim. charuqs +1"}
sets.WS.FlashNova = {}
sets.WS.FlashNova = {ammo="Ghastly Tathlum",
head={ name="Herculean Helm", augments={'Mag. Acc.+12 "Mag.Atk.Bns."+12','Mag. Acc.+13','"Mag.Atk.Bns."+12',}},
body="Amalric Doublet",
hands="Amalric Gages",
legs="Amalric Slops",
feet="Hashishin Basmak +1",
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Crematio Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring="Shiva Ring +1",
back="Cornflower cape",
}
--Magic Burst Sets--
sets.Burst = {}
sets.Burst.index = {'BA', 'MB'}
Burst_ind = 1
--Blue Magic Sets--
sets.BlueMagic = {}
sets.BlueMagic.STR ={
ammo="Ginsen",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Odnowa Earring +1",
right_ear="Odnowa Earring",
left_ring="Ilabrat Ring",
right_ring="Ifrit Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.STRDEX ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Mache Earring +1",
right_ear="Telos Earring",
left_ring="Ilabrat Ring",
right_ring="Ramuh Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.STRVIT ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Mache Earring +1",
right_ear="Telos Earring",
left_ring="Ilabrat Ring",
right_ring="Titan Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.STRMND ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Mache Earring +1",
right_ear="Telos Earring",
left_ring="Ilabrat Ring",
right_ring="Levia. Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.AGI ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Herculean Trousers", augments={'Accuracy+13','"Triple Atk."+4','AGI+5','Attack+3',}},
feet="Aya. Gambieras +1",
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Mache Earring +1",
right_ear="Telos Earring",
left_ring="Ilabrat Ring",
right_ring="Garuda Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.INT ={
ammo="Pemphredo Tathlum",
head="Jhakri Coronal +1",
body="Jhakri Robe +2",
hands={ name="Amalric Gages", augments={'INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
legs={ name="Amalric Slops +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
feet={ name="Amalric Nails +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Regal Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring="Shiva Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.Dark ={
ammo="Pemphredo Tathlum",
head="Pixie Hairpin +1",
body="Jhakri Robe +2",
hands={ name="Amalric Gages", augments={'INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
legs={ name="Amalric Slops +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
feet={ name="Amalric Nails +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Regal Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring="Shiva Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.Cures ={
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Jhakri Robe +2",
hands="Serpentes Cuffs",
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet="Serpentes Sabots",
neck="Incanter's Torque",
waist="Austerity Belt +1",
left_ear="Regal Earring",
right_ear="Ethereal Earring",
left_ring="Stikini Ring +1",
right_ring="Levia. Ring +1",
back="Solemnity Cape",
}
sets.BlueMagic.SelfCures ={
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Jhakri Robe +2",
hands="Serpentes Cuffs",
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet="Serpentes Sabots",
neck="Incanter's Torque",
waist="Austerity Belt +1",
left_ear="Regal Earring",
right_ear="Ethereal Earring",
left_ring="Stikini Ring +1",
right_ring="Levia. Ring +1",
back="Solemnity Cape",
}
sets.BlueMagic.Stun ={
ammo="Pemphredo Tathlum",
head={ name="Amalric Coif", augments={'INT+10','Mag. Acc.+20','Enmity-5',}},
body="Jhakri Robe +2",
hands="Jhakri Cuffs +1",
legs="Aya. Cosciales +2",
feet="Jhakri Pigaches +1",
neck="Incanter's Torque",
waist="Eschan Stone",
left_ear="Regal Earring",
right_ear="Gwati Earring",
left_ring="Stikini Ring +1",
right_ring="Vertigo Ring",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.HeavyStrike ={
ammo="Falcon Eye",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body="Assim. Jubbah +2",
hands="Assim. Bazu. +3",
legs={ name="Carmine Cuisses +1", augments={'Accuracy+20','Attack+12','"Dual Wield"+6',}},
feet="Aya. Gambieras +1",
neck="Sanctity Necklace",
waist="Eschan Stone",
left_ear="Telos Earring",
right_ear="Mache Earring +1",
left_ring="Ilabrat Ring",
right_ring="Chirich Ring",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.ChargedWhisker ={
ammo="Pemphredo Tathlum",
head="Jhakri Coronal +1",
body="Jhakri Robe +2",
hands={ name="Amalric Gages", augments={'INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
legs={ name="Amalric Slops +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
feet={ name="Amalric Nails +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Regal Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring="Shiva Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.WhiteWind = {ammo="Egoist's Tathlum",
head="Telchine Cap",
body="Vrikodara Jupon",
hands="Telchine Gloves",
legs="Gyve Trousers",
feet="Medium's Sabots",
neck="Dualism Collar +1",
waist="Gishdubar Sash",
left_ear="Mendi. Earring",
right_ear="Etiolation Earring",
left_ring="Lebeche Ring",
right_ring="Kunaji Ring",
back="Aenotherus Mantle +1",
}
sets.BlueMagic.MagicAccuracy = {ammo="Mavi Tathlum",
head="Dampening Tam",
body="Samnuha coat",
hands={ name="Hagondes Cuffs", augments={'Phys. dmg. taken -3%','Mag. Acc.+23',}},
legs="Psycloth Lappas",
feet="Hashishin Basmak +1",
neck="Sanctity Necklace",
waist="Eschan Stone",
left_ear="Enchntr. Earring +1",
right_ear="Gwati Earring",
left_ring="Vertigo Ring",
right_ring="Sangoma Ring",
back="Cornflower cape",
}
sets.BlueMagic.Enmity = {ammo="Sapience Orb",
head="Rabid Visor",
body="Emet Harness +1",
hands="Leyline Gloves",
legs="Obatala Subligar",
feet="Dux Greaves",
neck="Warder's Charm",
waist="Goading Belt",
left_ear="Friomisi Earring",
right_ear="Cryptic Earring",
left_ring="Vexer Ring +1",
right_ring="Petrov Ring",
back="Mubvumbamiri Mantle",
}
sets.BlueMagic.ConserveMP ={
ammo="Staunch Tathlum +1",
head={ name="Amalric Coif", augments={'INT+10','Mag. Acc.+20','Enmity-5',}},
body={ name="Amalric Doublet", augments={'MP+60','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
hands="Serpentes Cuffs",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +1",
neck="Incanter's Torque",
waist="Flume Belt +1",
left_ear="Ethereal Earring",
right_ear="Etiolation Earring",
left_ring="Stikini Ring +1",
right_ring="Defending Ring",
back="Grapevine Cape",
}
sets.BlueMagic.Refresh ={
ammo="Staunch Tathlum +1",
head={ name="Amalric Coif", augments={'INT+10','Mag. Acc.+20','Enmity-5',}},
body={ name="Amalric Doublet", augments={'MP+60','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
hands="Serpentes Cuffs",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +1",
neck="Incanter's Torque",
waist="Flume Belt +1",
left_ear="Ethereal Earring",
right_ear="Etiolation Earring",
left_ring="Stikini Ring +1",
right_ring="Defending Ring",
back="Grapevine Cape",
}
sets.BlueMagic.Skill ={
ammo="Pemphredo Tathlum",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body="Assim. Jubbah +2",
hands={ name="Leyline Gloves", augments={'Accuracy+14','Mag. Acc.+13','"Mag.Atk.Bns."+13','"Fast Cast"+2',}},
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet={ name="Luhlaza Charuqs +1", augments={'Enhances "Diffusion" effect',}},
neck="Incanter's Torque",
waist="Witful Belt",
left_ear="Enchntr. Earring +1",
right_ear="Loquac. Earring",
left_ring="Stikini Ring +1",
right_ring="Prolix Ring",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.SkillRecast ={
ammo="Pemphredo Tathlum",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body="Assim. Jubbah +2",
hands={ name="Leyline Gloves", augments={'Accuracy+14','Mag. Acc.+13','"Mag.Atk.Bns."+13','"Fast Cast"+2',}},
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet={ name="Luhlaza Charuqs +1", augments={'Enhances "Diffusion" effect',}},
neck="Incanter's Torque",
waist="Witful Belt",
left_ear="Enchntr. Earring +1",
right_ear="Loquac. Earring",
left_ring="Stikini Ring +1",
right_ring="Prolix Ring",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
--Utility Sets--
sets.Utility = {}
sets.Utility.Weather = {waist="Hachirin-no-obi",back="Twilight Cape"}
sets.Utility.MB = {head="Helios Band",body="Samnuha Coat",ear1="Static Earring",ring1="Locus Ring",ring2="Mujin Band"}
sets.Utility.Stoneskin = {head="Haruspex hat",neck="Stone Gorget",ear1="Loquac. earring",ear2="Earthcry earring",
body="Assim. jubbah +1",hands="Stone Mufflers",ring1="Prolix ring",
back="Swith cape",waist="Siegel sash",legs="Haven hose",feet="Iuitl gaiters"}
sets.Utility.Phalanx = {head="Haruspex hat",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
body="Assim. jubbah +1",hands="Ayao's gages",ring1="Prolix ring",
back="Swith cape",waist="Pythia sash +1",legs="Portent pants",feet="Iuitl gaiters"}
sets.Utility.Steps = {ammo="Falcon Eye",
head="Dampening Tam",
body="Adhemar Jacket",
hands="Rawhide Gloves",
legs={ name="Taeon Tights", augments={'Accuracy+18 Attack+18','"Triple Atk."+2','STR+7 DEX+7',}},
feet={ name="Taeon Boots", augments={'Accuracy+18 Attack+18','"Triple Atk."+2','DEX+10',}},
neck="Subtlety Spec.",
waist="Chaac Belt",
left_ear="Heartseeker Earring",
right_ear="Steelflash Earring",
left_ring="Yacuruna Ring",
right_ring="Rajas Ring",
back="Grounded Mantle",
}
sets.Utility.PDT = {head="Whirlpool mask",neck="Twilight torque",ear1="Ethereal earring",
body="Iuitl vest",hands="Umuthi gloves",ring1="Dark ring",ring2="Dark ring",
back="Mollusca mantle",waist="Flume belt",legs="Iuitl Tights +1",feet="Iuitl gaiters"}
sets.Utility.MDT = {head="Whirlpool mask",neck="Twilight torque",
body="Assim. jubbah +1",hands="Umuthi gloves",ring1="Dark ring",ring2="Dark ring",
back="Mollusca mantle",legs="Quiahuiz trousers",feet="Luhlaza charuqs"}
--Job Ability Sets--
sets.JA = {}
sets.JA.ChainAffinity = {feet="Assim. charuqs +1"}
sets.JA.BurstAffinity = {feet="Hashishin Basmak +1"}
sets.JA.Efflux = {legs="Hashishin tayt +1"}
sets.JA.AzureLore = {hands="Luh. bazubands +1"}
sets.JA.Diffusion = {feet="Luhlaza Charuqs +1"}
--Precast Sets--
sets.precast = {}
sets.precast.FC = {}
sets.precast.FC.Standard ={
ammo="Impatiens",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body={ name="Adhemar Jacket", augments={'HP+80','"Fast Cast"+7','Magic dmg. taken -3',}},
hands={ name="Leyline Gloves", augments={'Accuracy+14','Mag. Acc.+13','"Mag.Atk.Bns."+13','"Fast Cast"+2',}},
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Loricate Torque +1",
waist="Witful Belt",
left_ear="Enchntr. Earring +1",
right_ear="Loquac. Earring",
left_ring="Stikini Ring +1",
right_ring="Prolix Ring",
back="Swith Cape +1",
}
sets.precast.FC.Blue ={
ammo="Impatiens",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body="Mavi Mintan +2",
hands="Mv. Bazubands +2",
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Loricate Torque +1",
waist="Witful Belt",
left_ear="Enchntr. Earring +1",
right_ear="Loquac. Earring",
left_ring="Stikini Ring +1",
right_ring="Prolix Ring",
back="Swith Cape +1",
}
end
function precast(spell)
if spell.action_type == 'Magic' then
equip(sets.precast.FC.Standard)
if spell.skill == 'Blue Magic' then
equip(sets.precast.FC.Blue)
end
end
if spell.english == 'Azure Lore' then
equip(sets.JA.AzureLore)
end
if spell.english == 'Requiescat' then
equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
end
if spell.english == 'Chant du Cygne' then
equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_ind]])
end
if spell.english == 'Circle Blade' or spell.english == 'Savage Blade' then
equip(sets.WS.CircleBlade)
end
if spell.english == 'Expiacion' then
equip(sets.WS.Expiacion)
end
if spell.english == 'Vorpal Blade' then
equip(sets.WS.VorpalBlade)
end
if spell.english == 'Sanguine Blade' then
equip(sets.WS.SanguineBlade)
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.Utility.Weather)
end
end
if spell.english == 'Box Step' then
equip(sets.Utility.Steps)
end
if spell.english == 'Realmrazer' then
equip(sets.Realmrazer[sets.Realmrazer.index[Realmrazer_ind]])
end
if spell.english == 'Flash Nova' then
equip(sets.WS.FlashNova)
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.Utility.Weather)
end
end
end
function midcast(spell,act)
if spell.english == 'Vertical Cleave' or spell.english == 'Death Scissors' or spell.english == 'Empty Thrash' or spell.english == 'Dimensional Death' or spell.english == 'Quadrastrike' or spell.english == 'Bloodrake' then
equip(sets.BlueMagic.STR)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Disseverment' or spell.english == 'Hysteric Barrage' or spell.english == 'Frenetic Rip' or spell.english == 'Seedspray' or spell.english == 'Vanity Dive' or spell.english == 'Goblin Rush' or spell.english == 'Paralyzing Triad' or spell.english == 'Thrashing Assault' then
equip(sets.BlueMagic.STRDEX)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Quad. Continuum' or spell.english == 'Delta Thrust' or spell.english == 'Cannonball' or spell.english == 'Glutinous Dart' then
equip(sets.BlueMagic.STRVIT)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Whirl of Rage' then
equip(sets.BlueMagic.STRMND)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Benthic Typhoon' or spell.english == 'Final Sting' or spell.english == 'Spiral Spin' then
equip(sets.BlueMagic.AGI)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Gates of Hades' or spell.english == 'Lunge' or spell.english == 'Swipe' or spell.english == 'Leafstorm' or spell.english == 'Firespit' or spell.english == 'Acrid Stream' or spell.english == 'Regurgitation' or spell.english == 'Corrosive Ooze' or spell.english == 'Thermal Pulse' or spell.english == 'Magic Hammer'
or spell.english == 'Evryone. Grudge' or spell.english == 'Water Bomb' or spell.english == 'Dark Orb' or spell.english == 'Thunderbolt' or spell.english == 'Tem. Upheaval' or spell.english == 'Embalming Earth' or spell.english == 'Foul Waters' or spell.english == 'Rending Deluge'
or spell.english == 'Droning Whirlwind' or spell.english == 'Subduction' or spell.english == 'Anvil Lightning' or spell.english == 'Blinding Fulgor' or spell.english == 'Entomb' or spell.english == 'Palling Salvo' or spell.english == 'Scouring Spate'
or spell.english == 'Searing Tempest' or spell.english == 'Silent Storm' or spell.english == 'Diffusion Ray' or spell.english == 'Spectral Floe' then
equip(sets.BlueMagic.INT)
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.Utility.Weather)
end
if buffactive['Burst Affinity'] then
if Burst_ind == 1 then
equip(sets.JA.BurstAffinity)
elseif Burst_ind == 2 then
equip(sets.Utility.MB)
end
end
end
if spell.english == 'Tenebral Crush' or spell.english == 'Palling Salvo' then
equip(sets.BlueMagic.Dark)
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.Utility.Weather)
end
if buffactive['Burst Affinity'] then
if Burst_ind == 1 then
equip(sets.JA.BurstAffinity)
elseif Burst_ind == 2 then
equip(sets.Utility.MB)
end
end
end
if spell.english == 'Magic Fruit' or spell.english == 'Plenilune Embrace' or spell.english == 'Wild Carrot' or spell.english == 'Pollen' or spell.english == 'Cure III' or spell.english == 'Cure IV' then
equip(sets.BlueMagic.Cures)
if spell.target.name == player.name and string.find(spell.english, 'Magic Fruit') or string.find(spell.english, 'Plenilune Embrace') or string.find(spell.english, 'Wild Carrot') or string.find(spell.english, 'Cure III') or string.find(spell.english, 'Cure IV') then
equip(sets.BlueMagic.SelfCures)
end
end
if spell.english == 'White Wind' then
equip(sets.BlueMagic.WhiteWind)
end
if spell.english == 'Head Butt' or spell.english == 'Sudden Lunge' or spell.english == 'Tourbillion' or spell.english == 'Saurian Slide' or spell.english == 'Sweeping Gouge' or spell.english == 'Frypan' then
equip(sets.BlueMagic.Stun)
end
if spell.english == 'Heavy Strike' then
equip(sets.BlueMagic.HeavyStrike)
end
if spell.english == 'Charged Whisker' then
equip(sets.BlueMagic.ChargedWhisker)
if buffactive['Burst Affinity'] then
equip(sets.JA.BurstAffinity)
end
end
if spell.english == 'Frightful Roar' or spell.english == 'Infrasonics' or spell.english == 'Chaotic Eye' or spell.english == 'Auroral Drape' or spell.english == 'Sheep Song' or spell.english == 'Barbed Crescent'
or spell.english == 'Tourbillion' or spell.english == 'Cimicine Discharge' or spell.english == 'Sub-zero smash' or spell.english == 'Filamented Hold' or spell.english == 'Mind Blast' or spell.english == 'Sandspin'
or spell.english == 'Hecatomb Wave' or spell.english == 'Blank Gaze' or spell.english == 'Cold Wave' or spell.english == 'Terror Touch' or spell.english == 'Retinal Glare' or spell.english == 'Dream Flower'
or spell.english == 'Geist Wall' or spell.english == 'Absolute Terror' or spell.english == 'Blistering Roar' then
equip(sets.BlueMagic.MagicAccuracy)
end
if spell.english == 'MP Drainkiss' or spell.english == 'Mighty Guard' or spell.english == 'Digest' or spell.english == 'Blood Saber' or spell.english == 'Blood Drain' or spell.english == 'Osmosis' or spell.english == 'Occultation' or spell.english == 'Magic Barrier' or spell.english == 'Diamondhide' or spell.english == 'Metallic Body' then
equip(sets.BlueMagic.SkillRecast)
if buffactive['Diffusion'] then
equip(sets.JA.Diffusion)
end
end
if spell.english == 'Fantod' or spell.english =='Jettatura' or spell.english =='Wind Breath' or spell.english =='Exuviation' then
equip(sets.BlueMagic.Enmity)
end
if spell.english == 'Mighty Guard' or spell.english == 'Erratic Flutter' or spell.english == 'Nat. Meditation' or spell.english == 'Uproot' or spell.english == 'Saline Coat' or spell.english == 'Barrier Tusk' then
equip(sets.BlueMagic.ConserveMP)
end
if spell.english == 'Battery Charge' or spell.engligh == 'Refresh' then
equip(sets.BlueMagic.Refresh)
end
if spell.english == 'Cocoon' or spell.english == 'Mighty Guard' or spell.english == 'Harden Shell' or spell.english == 'Animating Wail' or spell.english == 'Battery Charge' or spell.english == 'Nat. Meditation' or spell.english == 'Carcharian Verve' or spell.english == 'O. Counterstance' or spell.english == 'Barrier Tusk' or spell.english == 'Saline Coat' or spell.english == 'Regeneration' or spell.english == 'Erratic Flutter' then
if buffactive['Diffusion'] then
equip(sets.JA.Diffusion)
end
end
end
function aftercast(spell)
if player.status == 'Engaged' then
equip(sets.TP[sets.TP.index[TP_ind]])
else
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
if spell.action_type == 'Weaponskill' then
add_to_chat(158,'TP Return: ['..tostring(player.tp)..']')
end
end
function status_change(new,old)
if new == 'Engaged' then
equip(sets.TP[sets.TP.index[TP_ind]])
else
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end
function self_command(command)
if command == 'toggle TP set' then
TP_ind = TP_ind +1
if TP_ind > #sets.TP.index then TP_ind = 1 end
send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
equip(sets.TP[sets.TP.index[TP_ind]])
elseif command == 'toggle Idle set' then
Idle_ind = Idle_ind +1
if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
equip(sets.Idle[sets.Idle.index[Idle_ind]])
elseif command == 'toggle Req set' then
Requiescat_ind = Requiescat_ind +1
if Requiescat_ind > #sets.Requiescat.index then Requiescat_ind = 1 end
send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_ind]..' ----->')
elseif command == 'toggle CDC set' then
ChantDuCygne_ind = ChantDuCygne_ind +1
if ChantDuCygne_ind > #sets.ChantDuCygne.index then ChantDuCygne_ind = 1 end
send_command('@input /echo <----- Chant du Cygne Set changed to '..sets.ChantDuCygne.index[ChantDuCygne_ind]..' ----->')
elseif command == 'toggle Rea set' then
Realmrazer_ind = Realmrazer_ind +1
if Realmrazer_ind > #sets.Realmrazer.index then Realmrazer_ind = 1 end
send_command('@input /echo <----- Realmrazer Set changed to '..sets.Realmrazer.index[Realmrazer_ind]..' ----->')
elseif command == 'toggle MB set' then
Burst_ind = Burst_ind +1
if Burst_ind > #sets.Burst.index then Burst_ind = 1 end
send_command('@input /echo [MB Set changed to '..sets.Burst.index[Burst_ind]..']')
elseif command == 'equip TP set' then
equip(sets.TP[sets.TP.index[TP_ind]])
elseif command == 'equip Idle set' then
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end
Server: Shiva
Game: FFXI
Posts: 357
By Shiva.Berzerk 2018-04-30 11:03:48
Are you sure it's not equipping them? it can happen very quickly, sometimes not even showing up in game. Try //gs showswaps and doing the same thing and check the precast and midcast sets that appear to make sure the right gear is equipping at the right times. Line 947 in your lua looks like it should be equipping you're sets.BlueMagic.Refresh when either Battery Charge or Refresh is being cast.
[+]
By Nyarlko 2018-04-30 11:11:31
Code function precast(spell)
if spell.action_type == 'Magic' then
equip(sets.precast.FC.Standard)
if spell.skill == 'Blue Magic' then
equip(sets.precast.FC.Blue)
end
end
...
change to: Code function precast (spell)
if spell.action_type == "Magic" then
if spell.skill == "Blue Magic" then
equip(sets.precast.FC.Blue)
else equip(sets.precast.FC.Standard)
end
end
...
------------- Code if spell.english == 'Battery Charge' or spell.engligh == 'Refresh' then
equip(sets.BlueMagic.Refresh)
end
Typo. Needs to be:
if spell.english == 'Battery Charge' or spell. english == 'Refresh' then
equip(sets.BlueMagic.Refresh)
end
[+]
Server: Asura
Game: FFXI
Posts: 6
By Asura.Yinwizard 2018-04-30 11:24:10
This is a really cool feature, //gs showswaps, thank you! And yes, it's not changing to the midcast set for refresh, but it's working well with battery charge.
Refresh:
Battery Charge:
Server: Asura
Game: FFXI
Posts: 6
By Asura.Yinwizard 2018-04-30 11:28:59
Code function precast(spell)
if spell.action_type == 'Magic' then
equip(sets.precast.FC.Standard)
if spell.skill == 'Blue Magic' then
equip(sets.precast.FC.Blue)
end
end
...
change to: Code function precast (spell)
if spell.action_type == "Magic" then
if spell.skill == "Blue Magic" then
equip(sets.precast.FC.Blue)
else equip(sets.precast.FC.Standard)
end
end
...
------------- Code if spell.english == 'Battery Charge' or spell.engligh == 'Refresh' then
equip(sets.BlueMagic.Refresh)
end
Typo. Needs to be:
if spell.english == 'Battery Charge' or spell. english == 'Refresh' then
equip(sets.BlueMagic.Refresh)
end
Thank you!!! it works now!! awesome :)
By Nyarlko 2018-04-30 11:37:46
NP. ^^ One of the extremely old tricks you can try using when debugging something simple like lua is to read the the relevant sections out loud to yourself while actually reading each letter rather than allowing mental shortcuts. Works great to catch typos. ;)
[+]
Server: Shiva
Game: FFXI
Posts: 357
By Shiva.Berzerk 2018-04-30 11:49:30
NP. ^^ One of the extremely old tricks you can try using when debugging something simple like lua is to read the the relevant sections out loud to yourself while actually reading each letter rather than allowing mental shortcuts. Works great to catch typos. ;)
Noted, didn't catch those, heh
[+]
Necro Bump Detected!
[136 days between previous and next post]
By lhova 2018-09-13 18:35:12
Does anyone have a good Blu Lua I can copy as a blueprint? I suck at writing Lua lol.
By lhova 2018-09-16 19:18:22
Guess not lol
Bismarck.Xurion
Server: Bismarck
Game: FFXI
Posts: 694
By Bismarck.Xurion 2018-09-17 01:22:26
Does anyone have a good Blu Lua I can copy as a blueprint? I suck at writing Lua lol. https://github.com/Kinematics/GearSwap-Jobs/blob/master/BLU.lua
Hello, first time trying out Gearswap, i'm trying to make this BLU lua work, i've put all my sets but it seems that FC and BLU FC are not working properly, it doesn't seem to be swaping to the Blue Magic FC set before blu spells, for spells like Erratic Flutter it doesn't work but it works for Cocoon for example. And other problem is that if i cast refresh (RDM spell) it doesn't change to the mid cast set for refresh, but if i cast battery charge it does change >.> help please!
Here it is:
Code function get_sets()
send_command('bind f9 gs c toggle TP set')
send_command('bind f10 gs c toggle Idle set')
send_command('bind f11 gs c toggle CDC set')
send_command('bind f12 gs c toggle Req set')
send_command('bind !f12 gs c toggle Rea set')
send_command('bind ^` gs c toggle MB set')
function file_unload()
send_command('unbind ^f9')
send_command('unbind ^f10')
send_command('unbind ^f11')
send_command('unbind ^f12')
send_command('unbind ^`')
send_command('unbind !f9')
send_command('unbind !f10')
send_command('unbind !f11')
send_command('unbind !f12')
send_command('unbind f9')
send_command('unbind f10')
send_command('unbind f11')
send_command('unbind f12')
end
--Idle Sets--
sets.Idle = {}
sets.Idle.index = {'Refresh','DT'}
--1=Refresh, 2=DT--
Idle_ind = 2
sets.Idle.Refresh = {
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Jhakri Robe +2",
hands="Serpentes Cuffs",
legs={ name="Carmine Cuisses +1", augments={'Accuracy+20','Attack+12','"Dual Wield"+6',}},
feet="Serpentes Sabots",
neck="Sanctity Necklace",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Ethereal Earring",
left_ring="Stikini Ring +1",
right_ring="Paguroidea Ring",
back="Moonlight Cape",
}
sets.Idle.DT = {
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Jhakri Robe +2",
hands="Assim. Bazu. +3",
legs={ name="Carmine Cuisses +1", augments={'Accuracy+20','Attack+12','"Dual Wield"+6',}},
feet="Aya. Gambieras +1",
neck="Loricate Torque +1",
waist="Flume Belt +1",
left_ear="Odnowa Earring +1",
right_ear="Etiolation Earring",
left_ring="Stikini Ring +1",
right_ring="Defending Ring",
back="Moonlight Cape",
}
--TP Sets--
sets.TP = {}
sets.TP.index = {'Standard', 'Accuracy', 'Hybrid', 'DT'}
--1=Standard, 2=Accuracy, 3=Hybrid, 4=DT--
TP_ind = 1
sets.TP.Standard ={
ammo="Ginsen",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Lissome Necklace",
waist="Windbuffet Belt +1",
left_ear="Telos Earring",
right_ear="Brutal Earring",
left_ring="Petrov Ring",
right_ring="Epona's Ring",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Store TP"+10',}},
}
sets.TP.Accuracy ={
ammo="Falcon Eye",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Carmine Cuisses +1", augments={'Accuracy+20','Attack+12','"Dual Wield"+6',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Lissome Necklace",
waist="Eschan Stone",
left_ear="Telos Earring",
right_ear="Mache Earring +1",
left_ring="Ilabrat Ring",
right_ring="Chirich Ring",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Store TP"+10',}},
}
sets.TP.Hybrid ={
ammo="Ginsen",
head="Aya. Zucchetto +2",
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Herculean Trousers", augments={'Accuracy+13','"Triple Atk."+4','AGI+5','Attack+3',}},
feet="Aya. Gambieras +1",
neck="Loricate Torque +1",
waist="Flume Belt +1",
left_ear="Telos Earring",
right_ear="Odnowa Earring +1",
left_ring="Defending Ring",
right_ring="Ilabrat Ring",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Store TP"+10',}},
}
sets.TP.DT ={
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Ayanmo Corazza +1",
hands="Assim. Bazu. +3",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +1",
neck="Loricate Torque +1",
waist="Flume Belt +1",
left_ear="Telos Earring",
right_ear="Etiolation Earring",
left_ring="Ilabrat Ring",
right_ring="Defending Ring",
back="Moonlight Cape",
}
--Weaponskill Sets--
sets.WS = {}
sets.Requiescat = {}
sets.Requiescat.index = {'Attack','Accuracy'}
Requiescat_ind = 1
sets.Requiescat.Attack ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Assim. Jubbah +2",
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs="Aya. Cosciales +2",
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Brutal Earring",
left_ring="Levia. Ring +1",
right_ring="Levia. Ring +1",
back="Aurist's Cape +1",
}
sets.Requiescat.Accuracy ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Assim. Jubbah +2",
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs="Aya. Cosciales +2",
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Brutal Earring",
left_ring="Levia. Ring +1",
right_ring="Levia. Ring +1",
back="Aurist's Cape +1",
}
sets.ChantDuCygne = {}
sets.ChantDuCygne.index = {'Attack','Accuracy','HighAcc'}
ChantDuCygne_ind = 1
sets.ChantDuCygne.Attack ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Sayadio's Kaftan",
hands={ name="Herculean Gloves", augments={'Accuracy+20','Crit. hit damage +4%','DEX+5','Attack+14',}},
legs={ name="Herculean Trousers", augments={'Accuracy+24 Attack+24','Crit.hit rate+5','Accuracy+14','Attack+8',}},
feet="Thereoid Greaves",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Mache Earring +1",
right_ear="Brutal Earring",
left_ring="Ilabrat Ring",
right_ring="Ramuh Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.ChantDuCygne.Accuracy ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Sayadio's Kaftan",
hands={ name="Herculean Gloves", augments={'Accuracy+20','Crit. hit damage +4%','DEX+5','Attack+14',}},
legs={ name="Herculean Trousers", augments={'Accuracy+24 Attack+24','Crit.hit rate+5','Accuracy+14','Attack+8',}},
feet="Thereoid Greaves",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Mache Earring +1",
right_ear="Brutal Earring",
left_ring="Ilabrat Ring",
right_ring="Ramuh Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.ChantDuCygne.HighAcc ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Sayadio's Kaftan",
hands={ name="Herculean Gloves", augments={'Accuracy+20','Crit. hit damage +4%','DEX+5','Attack+14',}},
legs={ name="Herculean Trousers", augments={'Accuracy+24 Attack+24','Crit.hit rate+5','Accuracy+14','Attack+8',}},
feet="Thereoid Greaves",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Mache Earring +1",
right_ear="Brutal Earring",
left_ring="Ilabrat Ring",
right_ring="Ramuh Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.WS.SanguineBlade = {}
sets.WS.SanguineBlade ={
ammo="Pemphredo Tathlum",
head="Jhakri Coronal +1",
body="Jhakri Robe +2",
hands="Jhakri Cuffs +1",
legs="Jhakri Slops +1",
feet="Jhakri Pigaches +1",
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Regal Earring",
right_ear="Friomisi Earring",
left_ring="Fenrir Ring +1",
right_ring="Fenrir Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.WS.CircleBlade = {}
sets.WS.CircleBlade ={
ammo="Ginsen",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Fotia Gorget",
waist="Prosilio Belt +1",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Ifrit Ring +1",
right_ring="Ifrit Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.WS.Expiacion = {}
sets.WS.Expiacion ={
ammo="Ginsen",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Fotia Gorget",
waist="Prosilio Belt +1",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Ifrit Ring +1",
right_ring="Ifrit Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.WS.VorpalBlade = {}
sets.WS.VorpalBlade ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Mache Earring +1",
left_ring="Ifrit Ring +1",
right_ring="Ifrit Ring +1",
back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
}
sets.Realmrazer = {}
sets.Realmrazer.index = {'Attack','Accuracy'}
Realmrazer_ind = 1
sets.Realmrazer.Attack = {ammo="Hydrocera",
head="Dampening Tam",neck="Fotia gorget",ear1="Bladeborn earring",ear2="Steelflash Earring",
body="Adhemar Jacket",hands="Adhemar Wristbands",ring1="Rajas ring",ring2="Rufescent ring",
back="Buquwik Cape",waist="Fotia belt",legs="Telchine Braconi",feet={ name="Herculean Boots", augments={'Accuracy+29','"Triple Atk."+4','STR+10',}},}
sets.Realmrazer.Accuracy = {ammo="Falcon Eye",
head="Whirlpool mask",neck="Fotia gorget",ear1="Bladeborn earring",ear2="Steelflash earring",
body="Luhlaza jubbah +1",hands="Luh. Bazubands +1",ring1="Levia. ring",ring2="Aquasoul ring",
back="Letalis mantle",waist="Fotia belt",legs="Quiahuiz trousers",feet="Assim. charuqs +1"}
sets.WS.FlashNova = {}
sets.WS.FlashNova = {ammo="Ghastly Tathlum",
head={ name="Herculean Helm", augments={'Mag. Acc.+12 "Mag.Atk.Bns."+12','Mag. Acc.+13','"Mag.Atk.Bns."+12',}},
body="Amalric Doublet",
hands="Amalric Gages",
legs="Amalric Slops",
feet="Hashishin Basmak +1",
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Crematio Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring="Shiva Ring +1",
back="Cornflower cape",
}
--Magic Burst Sets--
sets.Burst = {}
sets.Burst.index = {'BA', 'MB'}
Burst_ind = 1
--Blue Magic Sets--
sets.BlueMagic = {}
sets.BlueMagic.STR ={
ammo="Ginsen",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Odnowa Earring +1",
right_ear="Odnowa Earring",
left_ring="Ilabrat Ring",
right_ring="Ifrit Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.STRDEX ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Mache Earring +1",
right_ear="Telos Earring",
left_ring="Ilabrat Ring",
right_ring="Ramuh Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.STRVIT ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Herculean Boots", augments={'Accuracy+15 Attack+15','"Triple Atk."+4','Accuracy+5',}},
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Mache Earring +1",
right_ear="Telos Earring",
left_ring="Ilabrat Ring",
right_ring="Titan Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.STRMND ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Mache Earring +1",
right_ear="Telos Earring",
left_ring="Ilabrat Ring",
right_ring="Levia. Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.AGI ={
ammo="Falcon Eye",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Herculean Trousers", augments={'Accuracy+13','"Triple Atk."+4','AGI+5','Attack+3',}},
feet="Aya. Gambieras +1",
neck="Sanctity Necklace",
waist="Prosilio Belt +1",
left_ear="Mache Earring +1",
right_ear="Telos Earring",
left_ring="Ilabrat Ring",
right_ring="Garuda Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.INT ={
ammo="Pemphredo Tathlum",
head="Jhakri Coronal +1",
body="Jhakri Robe +2",
hands={ name="Amalric Gages", augments={'INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
legs={ name="Amalric Slops +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
feet={ name="Amalric Nails +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Regal Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring="Shiva Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.Dark ={
ammo="Pemphredo Tathlum",
head="Pixie Hairpin +1",
body="Jhakri Robe +2",
hands={ name="Amalric Gages", augments={'INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
legs={ name="Amalric Slops +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
feet={ name="Amalric Nails +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Regal Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring="Shiva Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.Cures ={
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Jhakri Robe +2",
hands="Serpentes Cuffs",
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet="Serpentes Sabots",
neck="Incanter's Torque",
waist="Austerity Belt +1",
left_ear="Regal Earring",
right_ear="Ethereal Earring",
left_ring="Stikini Ring +1",
right_ring="Levia. Ring +1",
back="Solemnity Cape",
}
sets.BlueMagic.SelfCures ={
ammo="Staunch Tathlum +1",
head="Aya. Zucchetto +2",
body="Jhakri Robe +2",
hands="Serpentes Cuffs",
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet="Serpentes Sabots",
neck="Incanter's Torque",
waist="Austerity Belt +1",
left_ear="Regal Earring",
right_ear="Ethereal Earring",
left_ring="Stikini Ring +1",
right_ring="Levia. Ring +1",
back="Solemnity Cape",
}
sets.BlueMagic.Stun ={
ammo="Pemphredo Tathlum",
head={ name="Amalric Coif", augments={'INT+10','Mag. Acc.+20','Enmity-5',}},
body="Jhakri Robe +2",
hands="Jhakri Cuffs +1",
legs="Aya. Cosciales +2",
feet="Jhakri Pigaches +1",
neck="Incanter's Torque",
waist="Eschan Stone",
left_ear="Regal Earring",
right_ear="Gwati Earring",
left_ring="Stikini Ring +1",
right_ring="Vertigo Ring",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.HeavyStrike ={
ammo="Falcon Eye",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body="Assim. Jubbah +2",
hands="Assim. Bazu. +3",
legs={ name="Carmine Cuisses +1", augments={'Accuracy+20','Attack+12','"Dual Wield"+6',}},
feet="Aya. Gambieras +1",
neck="Sanctity Necklace",
waist="Eschan Stone",
left_ear="Telos Earring",
right_ear="Mache Earring +1",
left_ring="Ilabrat Ring",
right_ring="Chirich Ring",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.ChargedWhisker ={
ammo="Pemphredo Tathlum",
head="Jhakri Coronal +1",
body="Jhakri Robe +2",
hands={ name="Amalric Gages", augments={'INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
legs={ name="Amalric Slops +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
feet={ name="Amalric Nails +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
neck="Sanctity Necklace",
waist="Yamabuki-no-Obi",
left_ear="Regal Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring="Shiva Ring +1",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.WhiteWind = {ammo="Egoist's Tathlum",
head="Telchine Cap",
body="Vrikodara Jupon",
hands="Telchine Gloves",
legs="Gyve Trousers",
feet="Medium's Sabots",
neck="Dualism Collar +1",
waist="Gishdubar Sash",
left_ear="Mendi. Earring",
right_ear="Etiolation Earring",
left_ring="Lebeche Ring",
right_ring="Kunaji Ring",
back="Aenotherus Mantle +1",
}
sets.BlueMagic.MagicAccuracy = {ammo="Mavi Tathlum",
head="Dampening Tam",
body="Samnuha coat",
hands={ name="Hagondes Cuffs", augments={'Phys. dmg. taken -3%','Mag. Acc.+23',}},
legs="Psycloth Lappas",
feet="Hashishin Basmak +1",
neck="Sanctity Necklace",
waist="Eschan Stone",
left_ear="Enchntr. Earring +1",
right_ear="Gwati Earring",
left_ring="Vertigo Ring",
right_ring="Sangoma Ring",
back="Cornflower cape",
}
sets.BlueMagic.Enmity = {ammo="Sapience Orb",
head="Rabid Visor",
body="Emet Harness +1",
hands="Leyline Gloves",
legs="Obatala Subligar",
feet="Dux Greaves",
neck="Warder's Charm",
waist="Goading Belt",
left_ear="Friomisi Earring",
right_ear="Cryptic Earring",
left_ring="Vexer Ring +1",
right_ring="Petrov Ring",
back="Mubvumbamiri Mantle",
}
sets.BlueMagic.ConserveMP ={
ammo="Staunch Tathlum +1",
head={ name="Amalric Coif", augments={'INT+10','Mag. Acc.+20','Enmity-5',}},
body={ name="Amalric Doublet", augments={'MP+60','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
hands="Serpentes Cuffs",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +1",
neck="Incanter's Torque",
waist="Flume Belt +1",
left_ear="Ethereal Earring",
right_ear="Etiolation Earring",
left_ring="Stikini Ring +1",
right_ring="Defending Ring",
back="Grapevine Cape",
}
sets.BlueMagic.Refresh ={
ammo="Staunch Tathlum +1",
head={ name="Amalric Coif", augments={'INT+10','Mag. Acc.+20','Enmity-5',}},
body={ name="Amalric Doublet", augments={'MP+60','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
hands="Serpentes Cuffs",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +1",
neck="Incanter's Torque",
waist="Flume Belt +1",
left_ear="Ethereal Earring",
right_ear="Etiolation Earring",
left_ring="Stikini Ring +1",
right_ring="Defending Ring",
back="Grapevine Cape",
}
sets.BlueMagic.Skill ={
ammo="Pemphredo Tathlum",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body="Assim. Jubbah +2",
hands={ name="Leyline Gloves", augments={'Accuracy+14','Mag. Acc.+13','"Mag.Atk.Bns."+13','"Fast Cast"+2',}},
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet={ name="Luhlaza Charuqs +1", augments={'Enhances "Diffusion" effect',}},
neck="Incanter's Torque",
waist="Witful Belt",
left_ear="Enchntr. Earring +1",
right_ear="Loquac. Earring",
left_ring="Stikini Ring +1",
right_ring="Prolix Ring",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
sets.BlueMagic.SkillRecast ={
ammo="Pemphredo Tathlum",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body="Assim. Jubbah +2",
hands={ name="Leyline Gloves", augments={'Accuracy+14','Mag. Acc.+13','"Mag.Atk.Bns."+13','"Fast Cast"+2',}},
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet={ name="Luhlaza Charuqs +1", augments={'Enhances "Diffusion" effect',}},
neck="Incanter's Torque",
waist="Witful Belt",
left_ear="Enchntr. Earring +1",
right_ear="Loquac. Earring",
left_ring="Stikini Ring +1",
right_ring="Prolix Ring",
back={ name="Cornflower Cape", augments={'MP+15','DEX+2','Accuracy+4','Blue Magic skill +8',}},
}
--Utility Sets--
sets.Utility = {}
sets.Utility.Weather = {waist="Hachirin-no-obi",back="Twilight Cape"}
sets.Utility.MB = {head="Helios Band",body="Samnuha Coat",ear1="Static Earring",ring1="Locus Ring",ring2="Mujin Band"}
sets.Utility.Stoneskin = {head="Haruspex hat",neck="Stone Gorget",ear1="Loquac. earring",ear2="Earthcry earring",
body="Assim. jubbah +1",hands="Stone Mufflers",ring1="Prolix ring",
back="Swith cape",waist="Siegel sash",legs="Haven hose",feet="Iuitl gaiters"}
sets.Utility.Phalanx = {head="Haruspex hat",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
body="Assim. jubbah +1",hands="Ayao's gages",ring1="Prolix ring",
back="Swith cape",waist="Pythia sash +1",legs="Portent pants",feet="Iuitl gaiters"}
sets.Utility.Steps = {ammo="Falcon Eye",
head="Dampening Tam",
body="Adhemar Jacket",
hands="Rawhide Gloves",
legs={ name="Taeon Tights", augments={'Accuracy+18 Attack+18','"Triple Atk."+2','STR+7 DEX+7',}},
feet={ name="Taeon Boots", augments={'Accuracy+18 Attack+18','"Triple Atk."+2','DEX+10',}},
neck="Subtlety Spec.",
waist="Chaac Belt",
left_ear="Heartseeker Earring",
right_ear="Steelflash Earring",
left_ring="Yacuruna Ring",
right_ring="Rajas Ring",
back="Grounded Mantle",
}
sets.Utility.PDT = {head="Whirlpool mask",neck="Twilight torque",ear1="Ethereal earring",
body="Iuitl vest",hands="Umuthi gloves",ring1="Dark ring",ring2="Dark ring",
back="Mollusca mantle",waist="Flume belt",legs="Iuitl Tights +1",feet="Iuitl gaiters"}
sets.Utility.MDT = {head="Whirlpool mask",neck="Twilight torque",
body="Assim. jubbah +1",hands="Umuthi gloves",ring1="Dark ring",ring2="Dark ring",
back="Mollusca mantle",legs="Quiahuiz trousers",feet="Luhlaza charuqs"}
--Job Ability Sets--
sets.JA = {}
sets.JA.ChainAffinity = {feet="Assim. charuqs +1"}
sets.JA.BurstAffinity = {feet="Hashishin Basmak +1"}
sets.JA.Efflux = {legs="Hashishin tayt +1"}
sets.JA.AzureLore = {hands="Luh. bazubands +1"}
sets.JA.Diffusion = {feet="Luhlaza Charuqs +1"}
--Precast Sets--
sets.precast = {}
sets.precast.FC = {}
sets.precast.FC.Standard ={
ammo="Impatiens",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body={ name="Adhemar Jacket", augments={'HP+80','"Fast Cast"+7','Magic dmg. taken -3',}},
hands={ name="Leyline Gloves", augments={'Accuracy+14','Mag. Acc.+13','"Mag.Atk.Bns."+13','"Fast Cast"+2',}},
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Loricate Torque +1",
waist="Witful Belt",
left_ear="Enchntr. Earring +1",
right_ear="Loquac. Earring",
left_ring="Stikini Ring +1",
right_ring="Prolix Ring",
back="Swith Cape +1",
}
sets.precast.FC.Blue ={
ammo="Impatiens",
head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
body="Mavi Mintan +2",
hands="Mv. Bazubands +2",
legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',}},
feet={ name="Carmine Greaves +1", augments={'Accuracy+12','DEX+12','MND+20',}},
neck="Loricate Torque +1",
waist="Witful Belt",
left_ear="Enchntr. Earring +1",
right_ear="Loquac. Earring",
left_ring="Stikini Ring +1",
right_ring="Prolix Ring",
back="Swith Cape +1",
}
end
function precast(spell)
if spell.action_type == 'Magic' then
equip(sets.precast.FC.Standard)
if spell.skill == 'Blue Magic' then
equip(sets.precast.FC.Blue)
end
end
if spell.english == 'Azure Lore' then
equip(sets.JA.AzureLore)
end
if spell.english == 'Requiescat' then
equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
end
if spell.english == 'Chant du Cygne' then
equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_ind]])
end
if spell.english == 'Circle Blade' or spell.english == 'Savage Blade' then
equip(sets.WS.CircleBlade)
end
if spell.english == 'Expiacion' then
equip(sets.WS.Expiacion)
end
if spell.english == 'Vorpal Blade' then
equip(sets.WS.VorpalBlade)
end
if spell.english == 'Sanguine Blade' then
equip(sets.WS.SanguineBlade)
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.Utility.Weather)
end
end
if spell.english == 'Box Step' then
equip(sets.Utility.Steps)
end
if spell.english == 'Realmrazer' then
equip(sets.Realmrazer[sets.Realmrazer.index[Realmrazer_ind]])
end
if spell.english == 'Flash Nova' then
equip(sets.WS.FlashNova)
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.Utility.Weather)
end
end
end
function midcast(spell,act)
if spell.english == 'Vertical Cleave' or spell.english == 'Death Scissors' or spell.english == 'Empty Thrash' or spell.english == 'Dimensional Death' or spell.english == 'Quadrastrike' or spell.english == 'Bloodrake' then
equip(sets.BlueMagic.STR)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Disseverment' or spell.english == 'Hysteric Barrage' or spell.english == 'Frenetic Rip' or spell.english == 'Seedspray' or spell.english == 'Vanity Dive' or spell.english == 'Goblin Rush' or spell.english == 'Paralyzing Triad' or spell.english == 'Thrashing Assault' then
equip(sets.BlueMagic.STRDEX)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Quad. Continuum' or spell.english == 'Delta Thrust' or spell.english == 'Cannonball' or spell.english == 'Glutinous Dart' then
equip(sets.BlueMagic.STRVIT)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Whirl of Rage' then
equip(sets.BlueMagic.STRMND)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Benthic Typhoon' or spell.english == 'Final Sting' or spell.english == 'Spiral Spin' then
equip(sets.BlueMagic.AGI)
if buffactive['Chain Affinity'] then
equip(sets.JA.ChainAffinity)
end
if buffactive['Efflux'] then
equip(sets.JA.Efflux)
end
end
if spell.english == 'Gates of Hades' or spell.english == 'Lunge' or spell.english == 'Swipe' or spell.english == 'Leafstorm' or spell.english == 'Firespit' or spell.english == 'Acrid Stream' or spell.english == 'Regurgitation' or spell.english == 'Corrosive Ooze' or spell.english == 'Thermal Pulse' or spell.english == 'Magic Hammer'
or spell.english == 'Evryone. Grudge' or spell.english == 'Water Bomb' or spell.english == 'Dark Orb' or spell.english == 'Thunderbolt' or spell.english == 'Tem. Upheaval' or spell.english == 'Embalming Earth' or spell.english == 'Foul Waters' or spell.english == 'Rending Deluge'
or spell.english == 'Droning Whirlwind' or spell.english == 'Subduction' or spell.english == 'Anvil Lightning' or spell.english == 'Blinding Fulgor' or spell.english == 'Entomb' or spell.english == 'Palling Salvo' or spell.english == 'Scouring Spate'
or spell.english == 'Searing Tempest' or spell.english == 'Silent Storm' or spell.english == 'Diffusion Ray' or spell.english == 'Spectral Floe' then
equip(sets.BlueMagic.INT)
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.Utility.Weather)
end
if buffactive['Burst Affinity'] then
if Burst_ind == 1 then
equip(sets.JA.BurstAffinity)
elseif Burst_ind == 2 then
equip(sets.Utility.MB)
end
end
end
if spell.english == 'Tenebral Crush' or spell.english == 'Palling Salvo' then
equip(sets.BlueMagic.Dark)
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.Utility.Weather)
end
if buffactive['Burst Affinity'] then
if Burst_ind == 1 then
equip(sets.JA.BurstAffinity)
elseif Burst_ind == 2 then
equip(sets.Utility.MB)
end
end
end
if spell.english == 'Magic Fruit' or spell.english == 'Plenilune Embrace' or spell.english == 'Wild Carrot' or spell.english == 'Pollen' or spell.english == 'Cure III' or spell.english == 'Cure IV' then
equip(sets.BlueMagic.Cures)
if spell.target.name == player.name and string.find(spell.english, 'Magic Fruit') or string.find(spell.english, 'Plenilune Embrace') or string.find(spell.english, 'Wild Carrot') or string.find(spell.english, 'Cure III') or string.find(spell.english, 'Cure IV') then
equip(sets.BlueMagic.SelfCures)
end
end
if spell.english == 'White Wind' then
equip(sets.BlueMagic.WhiteWind)
end
if spell.english == 'Head Butt' or spell.english == 'Sudden Lunge' or spell.english == 'Tourbillion' or spell.english == 'Saurian Slide' or spell.english == 'Sweeping Gouge' or spell.english == 'Frypan' then
equip(sets.BlueMagic.Stun)
end
if spell.english == 'Heavy Strike' then
equip(sets.BlueMagic.HeavyStrike)
end
if spell.english == 'Charged Whisker' then
equip(sets.BlueMagic.ChargedWhisker)
if buffactive['Burst Affinity'] then
equip(sets.JA.BurstAffinity)
end
end
if spell.english == 'Frightful Roar' or spell.english == 'Infrasonics' or spell.english == 'Chaotic Eye' or spell.english == 'Auroral Drape' or spell.english == 'Sheep Song' or spell.english == 'Barbed Crescent'
or spell.english == 'Tourbillion' or spell.english == 'Cimicine Discharge' or spell.english == 'Sub-zero smash' or spell.english == 'Filamented Hold' or spell.english == 'Mind Blast' or spell.english == 'Sandspin'
or spell.english == 'Hecatomb Wave' or spell.english == 'Blank Gaze' or spell.english == 'Cold Wave' or spell.english == 'Terror Touch' or spell.english == 'Retinal Glare' or spell.english == 'Dream Flower'
or spell.english == 'Geist Wall' or spell.english == 'Absolute Terror' or spell.english == 'Blistering Roar' then
equip(sets.BlueMagic.MagicAccuracy)
end
if spell.english == 'MP Drainkiss' or spell.english == 'Mighty Guard' or spell.english == 'Digest' or spell.english == 'Blood Saber' or spell.english == 'Blood Drain' or spell.english == 'Osmosis' or spell.english == 'Occultation' or spell.english == 'Magic Barrier' or spell.english == 'Diamondhide' or spell.english == 'Metallic Body' then
equip(sets.BlueMagic.SkillRecast)
if buffactive['Diffusion'] then
equip(sets.JA.Diffusion)
end
end
if spell.english == 'Fantod' or spell.english =='Jettatura' or spell.english =='Wind Breath' or spell.english =='Exuviation' then
equip(sets.BlueMagic.Enmity)
end
if spell.english == 'Mighty Guard' or spell.english == 'Erratic Flutter' or spell.english == 'Nat. Meditation' or spell.english == 'Uproot' or spell.english == 'Saline Coat' or spell.english == 'Barrier Tusk' then
equip(sets.BlueMagic.ConserveMP)
end
if spell.english == 'Battery Charge' or spell.engligh == 'Refresh' then
equip(sets.BlueMagic.Refresh)
end
if spell.english == 'Cocoon' or spell.english == 'Mighty Guard' or spell.english == 'Harden Shell' or spell.english == 'Animating Wail' or spell.english == 'Battery Charge' or spell.english == 'Nat. Meditation' or spell.english == 'Carcharian Verve' or spell.english == 'O. Counterstance' or spell.english == 'Barrier Tusk' or spell.english == 'Saline Coat' or spell.english == 'Regeneration' or spell.english == 'Erratic Flutter' then
if buffactive['Diffusion'] then
equip(sets.JA.Diffusion)
end
end
end
function aftercast(spell)
if player.status == 'Engaged' then
equip(sets.TP[sets.TP.index[TP_ind]])
else
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
if spell.action_type == 'Weaponskill' then
add_to_chat(158,'TP Return: ['..tostring(player.tp)..']')
end
end
function status_change(new,old)
if new == 'Engaged' then
equip(sets.TP[sets.TP.index[TP_ind]])
else
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end
function self_command(command)
if command == 'toggle TP set' then
TP_ind = TP_ind +1
if TP_ind > #sets.TP.index then TP_ind = 1 end
send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
equip(sets.TP[sets.TP.index[TP_ind]])
elseif command == 'toggle Idle set' then
Idle_ind = Idle_ind +1
if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
equip(sets.Idle[sets.Idle.index[Idle_ind]])
elseif command == 'toggle Req set' then
Requiescat_ind = Requiescat_ind +1
if Requiescat_ind > #sets.Requiescat.index then Requiescat_ind = 1 end
send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_ind]..' ----->')
elseif command == 'toggle CDC set' then
ChantDuCygne_ind = ChantDuCygne_ind +1
if ChantDuCygne_ind > #sets.ChantDuCygne.index then ChantDuCygne_ind = 1 end
send_command('@input /echo <----- Chant du Cygne Set changed to '..sets.ChantDuCygne.index[ChantDuCygne_ind]..' ----->')
elseif command == 'toggle Rea set' then
Realmrazer_ind = Realmrazer_ind +1
if Realmrazer_ind > #sets.Realmrazer.index then Realmrazer_ind = 1 end
send_command('@input /echo <----- Realmrazer Set changed to '..sets.Realmrazer.index[Realmrazer_ind]..' ----->')
elseif command == 'toggle MB set' then
Burst_ind = Burst_ind +1
if Burst_ind > #sets.Burst.index then Burst_ind = 1 end
send_command('@input /echo [MB Set changed to '..sets.Burst.index[Burst_ind]..']')
elseif command == 'equip TP set' then
equip(sets.TP[sets.TP.index[TP_ind]])
elseif command == 'equip Idle set' then
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end
|
|