|
Basic War Lua
Phoenix.Bunas
サーバ: Phoenix
Game: FFXI
Posts: 21
By Phoenix.Bunas 2017-04-26 14:41:06
Anyone have a basic war LUA that supports motes? I dont care about sets , I can always add those. I mainly Care about functions.
By Brynach 2017-04-26 15:09:27
This is one I created for just greatsword and sword/shield combo. It hasnt been updated in some time as I have decided to put most of my heavy dd focus in SAM and DRK.
Things of note:
1. It is set up to recognize certain weapons and update to those idlesets and combat forms.
2. It is set up to call moonshade into ws sets when tp is below a certain number (2950 tp) or at night it will pull in Lugra+1/Lugra.
3. I have nothing for GAxe because I dont have any.
4. During MS it will pull in Yetshila and Boii Calligae +1 during WS.
If this is useful, great. Im sure there are things that can be improved.
Code -- Initialization function for this job file.
function get_sets()
mote_include_version = 2
include('Mote-Include.lua')
end
-- //gs debugmode
-- //gs showswaps
function binds_on_load()
-- F9-F12
send_command('bind f9 gs c cycle OffenseMode')
send_command('bind f10 gs c cycle HybridMode')
send_command('bind f11 gs c cycle CastingMode')
send_command('bind f12 gs c update user')
-- CTRL F9-F12
send_command('bind ^f9 gs c cycle WeaponskillMode')
-- ALT F9-12
send_command('bind !f9 gs c cycle IdleMode')
send_command('bind !f10 gs c cycle RangedMode')
send_command('bind !f12 gs c cycle Kiting')
end
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc')
state.WeaponskillMode:options('Normal', 'Acc')
state.HybridMode:options('Normal', 'PDT')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal','PDT')
state.PhysicalDefenseMode:options('PDT', 'MDT')
Rag_weapons = S{'Ragnarok'}
Shield_weapons = S{'Blurred Shield +1'}
update_combat_form()
select_default_macro_book()
end
-- Called when this job file is unloaded (eg: job change)
function file_unload()
if binds_on_unload then
binds_on_unload()
end
end
-- Define sets and vars used by this job file.
function init_gear_sets()
-- Precast sets
sets.precast.JA['Berserk'] = {feet="Agoge Calligae +1",body="Pummeler's Lorica +1",back="Cichol's Mantle"}
sets.precast.JA['Warcry'] = {head="Agoge Mask +1"}
sets.precast.JA['Aggressor'] = {body="Agoge Lorica +1",head="Pummeler's Mask +1"}
sets.precast.JA['Blood Rage'] = {body="Boii Lorica +1"}
sets.precast.JA['Retaliation'] = {feet="Boii Calligae +1",hands="Pummeler's Mufflers +1"}
sets.precast.JA['Restraint'] = {hands="Boii Mufflers +1"}
sets.precast.JA['Mighty Strikes'] = {hands="Agoge Mufflers +1"}
sets.precast.JA["Warrior's Charge"] = {legs="Agoge Cuisses +1"}
sets.precast.JA['Provoke'] = {
head="Pummeler's Mask +1", body="Souveran Cuirass",
back="Reiki Cloak", neck="Unmoving Collar +1",
hands="Pummeler's Mufflers +1", waist="Trance Belt",
legs="Odyssean Cuisses", feet="Souveran Schuhs",
Ring1="Petrov Ring", Ring2="Apeile Ring",
ear1="Enchanter Earring +1", ear2="Gwati Earring"
}
-- Fast cast sets for spells
sets.precast.FC = {
ammo="Sapience Orb",
head="Carmine Mask +1", body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
back=Ank_STP, neck="Orunmila's Torque",
hands={ name="Leyline Gloves", augments={'Accuracy+1','Mag. Acc.+5','"Mag.Atk.Bns."+5','"Fast Cast"+1',}}, waist="Tempus Fugit",
legs="Eschite Cuisses", feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
ring1="Prolix Ring", ring2="Rahab Ring",
ear1="Etiolation Earring", ear2="Loquacious Earring"}
-- Midcast Sets
sets.midcast.FastRecast = {
ammo="Sapience Orb",
head="Carmine Mask +1", body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
back=Ank_STP, neck="Orunmila's Torque",
hands="Leyline Gloves", waist="Tempus Fugit",
legs="Eschite Cuisses", feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
ring1="Prolix Ring", ring2="Rahab Ring",
ear1="Etiolation Earring", ear2="Loquacious Earring"}
sets.midcast.Flash = {
head="Pummeler's Mask +1", body="Souveran Cuirass",
back="Reiki Cloak", neck="Unmoving Collar +1",
hands="Pummeler's Mufflers +1", waist="Trance Belt",
legs="Odyssean Cuisses", feet="Souveran Schuhs",
Ring1="Petrov Ring", Ring2="Apeile Ring",
ear1="Enchanter Earring +1", ear2="Gwati Earring"
}
-- Resting sets
sets.resting = {
ammo="Ginsen",
head="", body="Lugra Cloak +1",
back="Xucau Mantle", neck="Sanctity Necklace",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Carmine Cuisses +1",feet="Amm Greaves",
ring1="Paguroidea Ring", ring2="Chirich Ring +1",
ear1="Infused Earring", ear2="Genmei Earring"}
-- Idle sets
sets.idle = {
ammo="Brigantia Pebble",
head="Sulevia's Mask +1",
body="Sulevia's Plate. +1",
hands="Sulev. Gauntlets +1",
legs="Sulevi. Cuisses +1",
feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
neck="Bathy Choker +1",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Dawn Earring",
left_ring="Paguroidea Ring",
right_ring="Chirich Ring +1",
back="Xucau Mantle",
}
sets.idle.PDT = {
ammo="Brigantia Pebble",
head="Sulevia's Mask +1", body="Sulevia's Platemail +1",
back="Xucau Mantle", neck="Loricate Torque +1",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Sulevia's Cuisses +1", feet="Amm Greaves",
ring1="Defending Ring", ring2={ name="Dark Ring", augments={'Phys. dmg. taken -5%','Magic dmg. taken -5%',}},
ear1="Odnowa Earring +1", ear2="Genmei Earring"}
sets.idle.Town = {
ammo="Brigantia Pebble",
head="Sulevia's Mask +1",
body="Sulevia's Plate. +1",
hands="Sulev. Gauntlets +1",
legs="Sulevi. Cuisses +1",
feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
neck="Bathy Choker +1",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Dawn Earring",
left_ring="Paguroidea Ring",
right_ring="Chirich Ring +1",
back="Xucau Mantle",
}
sets.idle.Weak = {
ammo="Seething Bomblet +1",
head="Twilight Helm", body="Twilight Mail",
back="Xucau Mantle", neck="Loricate Torque +1",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Sulevia's Cuisses +1", feet="Amm Greaves",
ring1="Defending Ring", ring2={ name="Dark Ring", augments={'Phys. dmg. taken -5%','Magic dmg. taken -5%',}},
ear1="Odnowa Earring +1", ear2="Genmei Earring"}
--Engaged Ragnarok
-- 1100ACC 57STP
sets.engaged.Ragnarok = {
ammo="Ginsen",
head="Flamma Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+23','"Dbl.Atk."+5','DEX+8','Attack+13',}},
hands="Emicho Gauntlets",
legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Store TP"+6','DEX+10','Attack+12',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Brutal Earring",
left_ring="Niqmaddu Ring",
right_ring="Petrov Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
}
-- 1086ACC 65STP
sets.engaged.Ragnarok.LowAcc = {
ammo="Ginsen",
head="Boii Mask +1",
body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
hands={ name="Emicho Gauntlets", augments={'HP+50','DEX+10','Accuracy+15',}},
legs={ name="Odyssean Cuisses", augments={'Accuracy+16 Attack+16','"Store TP"+5','STR+10','Accuracy+8',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20','"Dbl.Atk."+5','Attack+2',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- 1208ACC 52STP
sets.engaged.Ragnarok.MidAcc = {
ammo="Seeth. Bomblet +1",
head="Boii Mask +1",
body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
hands="Flam. Manopolas +1",
legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Dbl.Atk."+5',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- 1173ACC 64STP
sets.engaged.Ragnarok.HighAcc = {
ammo="Seething Bomblet +1",
head="Carmine Mask +1", body="Emicho Haubert",
back={ name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}, neck="Combatant's Torque",
hands="Emicho Gauntlets", waist="Kentarch Belt +1",
legs="Carmine Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
ring1="Petrov Ring", ring2="Chirich Ring +1",
ear1="Telos Earring", ear2="Dignitary's Earring"}
-- Sword and Board Sets
sets.engaged.Blurred = {
ammo="Seething Bomblet +1",
head="Argosy Celata +1", body="Emicho Haubert",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}, neck="Combatant's Torque",
hands="Emicho Gauntlets", waist="Kentarch Belt +1",
legs="Boii Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
ring1="Petrov Ring", ring2="Chirich Ring +1",
ear1="Telos Earring", ear2="Dignitary's Earring"}
sets.engaged.Blurred.PDT = {
ammo="Brigantia Pebble",
head="Sulevia's Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Sulev. Gauntlets +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Souveran Schuhs", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
neck="Loricate Torque +1",
waist="Ioskeha Belt +1",
left_ear="Telos Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- Weaponskill sets
sets.precast.WS = {
ammo="Seething Bomblet +1",
head=Val_WSdmg_head, body=Ody_WSdmg_body,
back=Ank_WSdmg, neck="Fotia Gorget",
hands=Ody_WSdmg_hands, waist="Fotia Belt",
legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
ear1="Ishvara Earring", ear2="Moonshade Earring"}
sets.precast.WS.Acc = set_combine(sets.precast.WS, {
head="Argosy Celata", body=Val_DA_body,
legs=Ody_WSacc_legs,
ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
ear1="Telos Earring"})
-- Resolution - FTP .71, 1.5, 2.25, - STR 85%
-- Fragmentation/Scission
sets.precast.WS['Resolution'] = {
ammo="Seething Bomblet +1",
head="Argosy Celata +1", body="Argosy Hauberk +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}, neck="Fotia Gorget",
hands="Argosy Mufflers +1", waist="Fotia Belt",
legs="Argosy Breeches +1", feet="Argosy Sollerets +1",
ring1="Niqmaddu Ring", ring2="Ifrit Ring +1",
ear1="Brutal Earring",ear2="Cessance Earring"
}
sets.precast.WS['Resolution'].Acc = set_combine(sets.precast.WS.Acc, {
head="Argosy Celata", body=Val_DA_body,
legs=Ody_WSacc_legs,
ring1="Ifrit Ring +1", ring2="Shukuyu Ring",
ear1="Telos Earring"})
sets.precast.WS['Savage Blade'] = {
ammo="Seeth. Bomblet +1",
head={ name="Odyssean Helm", augments={'Accuracy+21','Weapon skill damage +5%','STR+9','Attack+14',}},
body={ name="Valorous Mail", augments={'Accuracy+28','Weapon skill damage +5%',}},
hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
legs={ name="Valor. Hose", augments={'Accuracy+28','Weapon skill damage +5%','STR+10','Attack+5',}},
feet="Sulev. Leggings +1",
neck="Caro Necklace",
waist="Prosilio Belt +1",
left_ear="Tati Earring +1",
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Ifrit Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
sets.precast.WS['Savage Blade'].Acc = {ammo="Seeth. Bomblet +1",
head={ name="Argosy Celata +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Argosy Hauberk +1", augments={'STR+12','Attack+20','"Store TP"+6',}},
hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
legs={ name="Argosy Breeches +1", augments={'STR+12','Attack+25','"Store TP"+6',}},
feet={ name="Argosy Sollerets +1", augments={'STR+12','DEX+12','Attack+20',}},
neck="Fotia Gorget",
waist="Prosilio Belt +1",
left_ear="Telos Earring",
right_ear="Mache Earring +1",
left_ring="Rufescent Ring",
right_ring="Ifrit Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
-- Mighty Strikes WS Set --
sets.MS_WS = {ammo="Yetshila", feet="Boii Calligae +1"}
end
-- Job-specific hooks for standard casting events.
function job_midcast(spell, action, spellMap, eventArgs)
end
-- Called when the player's status changes.
function job_state_change(field, new_value, old_value)
end
function update_combat_form()
-- Check Weapontype
if Rag_weapons:contains(player.equipment.main) then
state.CombatForm:set('Ragnarok')
elseif
Shield_weapons:contains(player.equipment.sub) then
state.CombatForm:set('Blurred')
else
state.CombatForm:reset()
end
end
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- Called by the 'update' self-command, for common needs.
-- Set eventArgs.handled to true if we don't want automatic equipping of gear.
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- eventArgs is the same one used in job_precast, in case information needs to be persisted.
moonshade_WS = S{"Resolution", "Torcleaver"}
function job_post_precast(spell, action, spellMap, eventArgs)
if spell.type == 'WeaponSkill' then
if world.time >= (17*60) or world.time <= (7*60) then
equip({ear1="Lugra Earring +1",ear2="Lugra Earring"})
end
if moonshade_WS:contains(spell.english) and player.tp<2950 then
equip({ear2="Moonshade Earring"})
end
if buffactive['Mighty Strikes'] then
if sets.precast.WS[spell] then
equipSet = sets.precast.WS[spell]
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
else
equipSet = sets.precast.WS
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
end
end
end
end
-- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
function job_post_midcast(spell, action, spellMap, eventArgs)
if spellMap == 'Cure' and spell.target.type == 'SELF' then
equip(sets.midcast.CureSelf)
end
end
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
-- Default macro set/book
if player.sub_job == 'SAM' then
set_macro_page(1, 7)
elseif player.sub_job == 'NIN' then
set_macro_page(3, 7)
elseif player.sub_job == 'RDM' then
set_macro_page(4, 7)
elseif player.sub_job == 'THF' then
set_macro_page(2, 7)
else
set_macro_page(1, 7)
end
end
By Brynach 2017-04-26 15:27:21
Also, Ive been meaning to add a toggle to swap weapons. If there's any interest for that, I can provide that as well. All it will do is make something innocuous like ctrl+q swap main weapon and sub as defined by the lua.
Siren.Weav
サーバ: Siren
Game: FFXI
Posts: 23
By Siren.Weav 2017-04-26 18:48:49
I would love a weapon toggle...
サーバ: Fenrir
Game: FFXI
Posts: 3300
By Fenrir.Skarwind 2017-04-26 20:10:38
I would love a weapon toggle...
Would be nice.
To be honest it's the main reason I've been "driving stick" vs using automatic (gs)
Like I have a macro page (well not a page but you know what I mean), tp set, weapon skill set for each weapon type/weaponskill. A DT set for a 2 handed weapon, a DT set for a fencer build, A hybrid set for retaliation, and a hybrid set for high accuracy/dt gear. To some people it's like I'm in the dark ages over living Amish.
The rest of my jobs I use gear swap because they usually excel with 1 weapon type.
Don't get me wrong I do just fine without gear swap on warrior, But it would be nice to have something that is more efficient.
It would clear up a whole bunch of equipsets/macros if I could get gear swap to work with weapon specific gear sets. I know I'm being lazy and should just start lua scripting/looking into things.
By Brynach 2017-04-26 20:22:19
Give me a while to finish up events tonight then ill walk thru the items that need to be added. I have it in my RNG, DRK and SAM luas, but I havent made it around to WAR yet.
By Brynach 2017-04-26 23:02:14
Ok, I updated the WAR lua to include a the weapon swap toggle (ctrl +q).
For those that dont care about the lua and only want the weapon toggle, here are the specific lines:
1.In the function binds_on_load(), the send command for mainweapon (ctrl+q) for this one.
2. Below that, under function job_setup(), the state.mainweapon lists the weapon options
3. Below that is the sets.mainweapon (around line 54) that lists the main and sub attached to the mainweapon options from the binds.
4. Around line 347, the job_self_command enables the swaps and the command to change weapons.
5. At line 391, this function customizes the idle_set. so you can toggle weapons in idle.
6. At line 408, this function customizes the melee_set. This will allow swaps while engaged.
7. A weapon swap while engaged will require hitting f12 to update equipment.
I just took these items from my DRK lua and transplanted them into the WAR lua and changed the weapon names. In theory, this should be a fairly simple way to add the weapon toggle to your lua.
Code -- Initialization function for this job file.
function get_sets()
mote_include_version = 2
include('Mote-Include.lua')
end
-- //gs debugmode
-- //gs showswaps
function binds_on_load()
-- F9-F12
send_command('bind f9 gs c cycle OffenseMode')
send_command('bind f10 gs c cycle HybridMode')
send_command('bind f11 gs c cycle CastingMode')
send_command('bind f12 gs c update user')
-- CTRL F9-F12
send_command('bind ^q gs c mainweapon')
send_command('bind ^f9 gs c cycle WeaponskillMode')
-- ALT F9-12
send_command('bind !f9 gs c cycle IdleMode')
send_command('bind !f10 gs c cycle RangedMode')
send_command('bind !f12 gs c cycle Kiting')
end
function job_setup()
state.mainweapon = M{['description'] = 'Main Weapon'}
--state.mainweapon:options('Ragnarok','Reikiko')
state.mainweapon:options('Ragnarok','Reikiko')
end
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc')
state.WeaponskillMode:options('Normal', 'Acc')
state.HybridMode:options('Normal', 'PDT')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal','PDT')
state.PhysicalDefenseMode:options('PDT', 'MDT')
Rag_weapons = S{'Ragnarok'}
Shield_weapons = S{'Blurred Shield +1'}
update_combat_form()
select_default_macro_book()
end
-- Called when this job file is unloaded (eg: job change)
function file_unload()
if binds_on_unload then
binds_on_unload()
end
end
sets.mainweapon = {}
sets.mainweapon.Ragnarok = {
main="Ragnarok",
sub="Utu Grip"
}
sets.mainweapon.Reikiko = {
main="Reikiko",
sub="Blurred Shield +1"
}
-- Define sets and vars used by this job file.
function init_gear_sets()
-- Precast sets
sets.precast.JA['Berserk'] = {feet="Agoge Calligae +1",body="Pummeler's Lorica +1",back="Cichol's Mantle"}
sets.precast.JA['Warcry'] = {head="Agoge Mask +1"}
sets.precast.JA['Aggressor'] = {body="Agoge Lorica +1",head="Pummeler's Mask +1"}
sets.precast.JA['Blood Rage'] = {body="Boii Lorica +1"}
sets.precast.JA['Retaliation'] = {feet="Boii Calligae +1",hands="Pummeler's Mufflers +1"}
sets.precast.JA['Restraint'] = {hands="Boii Mufflers +1"}
sets.precast.JA['Mighty Strikes'] = {hands="Agoge Mufflers +1"}
sets.precast.JA["Warrior's Charge"] = {legs="Agoge Cuisses +1"}
sets.precast.JA['Provoke'] = {
head="Pummeler's Mask +1", body="Souveran Cuirass",
back="Reiki Cloak", neck="Unmoving Collar +1",
hands="Pummeler's Mufflers +1", waist="Trance Belt",
legs="Odyssean Cuisses", feet="Souveran Schuhs",
Ring1="Petrov Ring", Ring2="Apeile Ring",
ear1="Enchanter Earring +1", ear2="Gwati Earring"
}
-- Fast cast sets for spells
sets.precast.FC = {
ammo="Sapience Orb",
head="Carmine Mask +1", body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
back=Ank_STP, neck="Orunmila's Torque",
hands={ name="Leyline Gloves", augments={'Accuracy+1','Mag. Acc.+5','"Mag.Atk.Bns."+5','"Fast Cast"+1',}}, waist="Tempus Fugit",
legs="Eschite Cuisses", feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
ring1="Prolix Ring", ring2="Rahab Ring",
ear1="Etiolation Earring", ear2="Loquacious Earring"}
-- Midcast Sets
sets.midcast.FastRecast = {
ammo="Sapience Orb",
head="Carmine Mask +1", body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
back=Ank_STP, neck="Orunmila's Torque",
hands="Leyline Gloves", waist="Tempus Fugit",
legs="Eschite Cuisses", feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
ring1="Prolix Ring", ring2="Rahab Ring",
ear1="Etiolation Earring", ear2="Loquacious Earring"}
sets.midcast.Flash = {
head="Pummeler's Mask +1", body="Souveran Cuirass",
back="Reiki Cloak", neck="Unmoving Collar +1",
hands="Pummeler's Mufflers +1", waist="Trance Belt",
legs="Odyssean Cuisses", feet="Souveran Schuhs",
Ring1="Petrov Ring", Ring2="Apeile Ring",
ear1="Enchanter Earring +1", ear2="Gwati Earring"
}
-- Resting sets
sets.resting = {
ammo="Ginsen",
head="", body="Lugra Cloak +1",
back="Xucau Mantle", neck="Sanctity Necklace",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Carmine Cuisses +1",feet="Amm Greaves",
ring1="Paguroidea Ring", ring2="Chirich Ring +1",
ear1="Infused Earring", ear2="Genmei Earring"}
-- Idle sets
sets.idle = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body="Sulevia's Plate. +1",
hands="Sulev. Gauntlets +1",
legs="Sulevi. Cuisses +1",
feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
neck="Bathy Choker +1",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Dawn Earring",
left_ring="Paguroidea Ring",
right_ring="Chirich Ring +1",
back="Xucau Mantle",
}
sets.idle.PDT = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1", body="Sulevia's Platemail +1",
back="Xucau Mantle", neck="Loricate Torque +1",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Sulevia's Cuisses +1", feet="Amm Greaves",
ring1="Defending Ring", ring2={ name="Dark Ring", augments={'Phys. dmg. taken -5%','Magic dmg. taken -5%',}},
ear1="Odnowa Earring +1", ear2="Genmei Earring"}
sets.idle.Town = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body="Sulevia's Plate. +1",
hands="Sulev. Gauntlets +1",
legs="Sulevi. Cuisses +1",
feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
neck="Bathy Choker +1",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Dawn Earring",
left_ring="Paguroidea Ring",
right_ring="Chirich Ring +1",
back="Xucau Mantle",
}
sets.idle.Weak = {
ammo="Seething Bomblet +1",
head="Twilight Helm", body="Twilight Mail",
back="Xucau Mantle", neck="Loricate Torque +1",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Sulevia's Cuisses +1", feet="Amm Greaves",
ring1="Defending Ring", ring2={ name="Dark Ring", augments={'Phys. dmg. taken -5%','Magic dmg. taken -5%',}},
ear1="Odnowa Earring +1", ear2="Genmei Earring"}
--Engaged Ragnarok
-- 1100ACC 57STP
sets.engaged.Ragnarok = {
ammo="Ginsen",
head="Flamma Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+23','"Dbl.Atk."+5','DEX+8','Attack+13',}},
hands="Emicho Gauntlets",
legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Store TP"+6','DEX+10','Attack+12',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Brutal Earring",
left_ring="Niqmaddu Ring",
right_ring="Petrov Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
}
-- 1086ACC 65STP
sets.engaged.Ragnarok.LowAcc = {
ammo="Ginsen",
head="Boii Mask +1",
body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
hands={ name="Emicho Gauntlets", augments={'HP+50','DEX+10','Accuracy+15',}},
legs={ name="Odyssean Cuisses", augments={'Accuracy+16 Attack+16','"Store TP"+5','STR+10','Accuracy+8',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20','"Dbl.Atk."+5','Attack+2',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- 1208ACC 52STP
sets.engaged.Ragnarok.MidAcc = {
ammo="Seeth. Bomblet +1",
head="Boii Mask +1",
body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
hands="Flam. Manopolas +1",
legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Dbl.Atk."+5',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- 1173ACC 64STP
sets.engaged.Ragnarok.HighAcc = {
ammo="Seething Bomblet +1",
head="Carmine Mask +1", body="Emicho Haubert",
back={ name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}, neck="Combatant's Torque",
hands="Emicho Gauntlets", waist="Kentarch Belt +1",
legs="Carmine Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
ring1="Petrov Ring", ring2="Chirich Ring +1",
ear1="Telos Earring", ear2="Dignitary's Earring"}
-- Sword and Board Sets
sets.engaged.Blurred = {
ammo="Seething Bomblet +1",
head="Argosy Celata +1", body="Emicho Haubert",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}, neck="Combatant's Torque",
hands="Emicho Gauntlets", waist="Kentarch Belt +1",
legs="Boii Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
ring1="Petrov Ring", ring2="Chirich Ring +1",
ear1="Telos Earring", ear2="Dignitary's Earring"}
sets.engaged.Blurred.PDT = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Sulev. Gauntlets +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Souveran Schuhs", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
neck="Loricate Torque +1",
waist="Ioskeha Belt +1",
left_ear="Telos Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- Weaponskill sets
sets.precast.WS = {
ammo="Seething Bomblet +1",
head=Val_WSdmg_head, body=Ody_WSdmg_body,
back=Ank_WSdmg, neck="Fotia Gorget",
hands=Ody_WSdmg_hands, waist="Fotia Belt",
legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
ear1="Ishvara Earring", ear2="Moonshade Earring"}
sets.precast.WS.Acc = set_combine(sets.precast.WS, {
head="Argosy Celata", body=Val_DA_body,
legs=Ody_WSacc_legs,
ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
ear1="Telos Earring"})
-- Resolution - FTP .71, 1.5, 2.25, - STR 85%
-- Fragmentation/Scission
sets.precast.WS['Resolution'] = {
ammo="Seething Bomblet +1",
head="Argosy Celata +1", body="Argosy Hauberk +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}, neck="Fotia Gorget",
hands="Argosy Mufflers +1", waist="Fotia Belt",
legs="Argosy Breeches +1", feet="Argosy Sollerets +1",
ring1="Niqmaddu Ring", ring2="Ifrit Ring +1",
ear1="Brutal Earring",ear2="Cessance Earring"
}
sets.precast.WS['Resolution'].Acc = set_combine(sets.precast.WS.Acc, {
head="Argosy Celata", body=Val_DA_body,
legs=Ody_WSacc_legs,
ring1="Ifrit Ring +1", ring2="Shukuyu Ring",
ear1="Telos Earring"})
sets.precast.WS['Savage Blade'] = {
ammo="Seeth. Bomblet +1",
head={ name="Odyssean Helm", augments={'Accuracy+21','Weapon skill damage +5%','STR+9','Attack+14',}},
body={ name="Valorous Mail", augments={'Accuracy+28','Weapon skill damage +5%',}},
hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
legs={ name="Valor. Hose", augments={'Accuracy+28','Weapon skill damage +5%','STR+10','Attack+5',}},
feet="Sulev. Leggings +1",
neck="Caro Necklace",
waist="Prosilio Belt +1",
left_ear="Tati Earring +1",
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Ifrit Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
sets.precast.WS['Savage Blade'].Acc = {ammo="Seeth. Bomblet +1",
head={ name="Argosy Celata +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Argosy Hauberk +1", augments={'STR+12','Attack+20','"Store TP"+6',}},
hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
legs={ name="Argosy Breeches +1", augments={'STR+12','Attack+25','"Store TP"+6',}},
feet={ name="Argosy Sollerets +1", augments={'STR+12','DEX+12','Attack+20',}},
neck="Fotia Gorget",
waist="Prosilio Belt +1",
left_ear="Telos Earring",
right_ear="Mache Earring +1",
left_ring="Rufescent Ring",
right_ring="Ifrit Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
-- Mighty Strikes WS Set --
sets.MS_WS = {ammo="Yetshila", feet="Boii Calligae +1"}
end
-- Job-specific hooks for standard casting events.
function job_midcast(spell, action, spellMap, eventArgs)
end
-- Called when the player's status changes.
function job_state_change(field, new_value, old_value)
end
function update_combat_form()
-- Check Weapontype
if Rag_weapons:contains(player.equipment.main) then
state.CombatForm:set('Ragnarok')
elseif
Shield_weapons:contains(player.equipment.sub) then
state.CombatForm:set('Blurred')
else
state.CombatForm:reset()
end
end
function job_self_command(cmdParams, eventArgs)
command = cmdParams[1]:lower()
if command=='mainweapon' then
enable('main','sub')
mainswap=1
send_command('gs c cycle mainweapon')
end
end
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- Called by the 'update' self-command, for common needs.
-- Set eventArgs.handled to true if we don't want automatic equipping of gear.
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- eventArgs is the same one used in job_precast, in case information needs to be persisted.
moonshade_WS = S{"Resolution", "Torcleaver", "Savage Blade"}
function job_post_precast(spell, action, spellMap, eventArgs)
if spell.type == 'WeaponSkill' then
if world.time >= (17*60) or world.time <= (7*60) then
equip({ear1="Lugra Earring +1",ear2="Lugra Earring"})
end
if moonshade_WS:contains(spell.english) and player.tp<2950 then
equip({ear2="Moonshade Earring"})
end
if buffactive['Mighty Strikes'] then
if sets.precast.WS[spell] then
equipSet = sets.precast.WS[spell]
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
else
equipSet = sets.precast.WS
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
end
end
end
end
function customize_idle_set(idleSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if player.mpp < 51 then
return set_combine(idleSet, sets.latent_refresh)
end
if state.Buff.Doom or state.Buff.Curse then
return set_combine(idleSet, sets.Doom)
else
return idleSet
end
end
function customize_melee_set(meleeSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if state.Buff.Aftermath then
return set_combine(meleeSet, sets.Aftermath)
end
if state.Buff.Doom then
return set_combine(meleeSet, sets.Doom)
end
if state.Buff.Curse then
return set_combine(meleeSet, sets.Curse)
else
return meleeSet
end
end
-- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
function job_post_midcast(spell, action, spellMap, eventArgs)
if spellMap == 'Cure' and spell.target.type == 'SELF' then
equip(sets.midcast.CureSelf)
end
end
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
-- Default macro set/book
if player.sub_job == 'SAM' then
set_macro_page(1, 7)
elseif player.sub_job == 'NIN' then
set_macro_page(3, 7)
elseif player.sub_job == 'RDM' then
set_macro_page(4, 7)
elseif player.sub_job == 'THF' then
set_macro_page(2, 7)
else
set_macro_page(1, 7)
end
end
Siren.Weav
サーバ: Siren
Game: FFXI
Posts: 23
By Siren.Weav 2017-04-27 20:55:17
Awesome!
Trying it out tonight.
Also, thank you for the time and effort you've put in to help us fellow WARs.
Quetzalcoatl.Drkstr
サーバ: Quetzalcoatl
Game: FFXI
Posts: 54
By Quetzalcoatl.Drkstr 2017-04-28 09:28:13
Ok, I updated the WAR lua to include a the weapon swap toggle (ctrl +q).
For those that dont care about the lua and only want the weapon toggle, here are the specific lines:
1.In the function binds_on_load(), the send command for mainweapon (ctrl+q) for this one.
2. Below that, under function job_setup(), the state.mainweapon lists the weapon options
3. Below that is the sets.mainweapon (around line 54) that lists the main and sub attached to the mainweapon options from the binds.
4. Around line 347, the job_self_command enables the swaps and the command to change weapons.
5. At line 391, this function customizes the idle_set. so you can toggle weapons in idle.
6. At line 408, this function customizes the melee_set. This will allow swaps while engaged.
7. A weapon swap while engaged will require hitting f12 to update equipment.
I just took these items from my DRK lua and transplanted them into the WAR lua and changed the weapon names. In theory, this should be a fairly simple way to add the weapon toggle to your lua.
Code -- Initialization function for this job file.
function get_sets()
mote_include_version = 2
include('Mote-Include.lua')
end
-- //gs debugmode
-- //gs showswaps
function binds_on_load()
-- F9-F12
send_command('bind f9 gs c cycle OffenseMode')
send_command('bind f10 gs c cycle HybridMode')
send_command('bind f11 gs c cycle CastingMode')
send_command('bind f12 gs c update user')
-- CTRL F9-F12
send_command('bind ^q gs c mainweapon')
send_command('bind ^f9 gs c cycle WeaponskillMode')
-- ALT F9-12
send_command('bind !f9 gs c cycle IdleMode')
send_command('bind !f10 gs c cycle RangedMode')
send_command('bind !f12 gs c cycle Kiting')
end
function job_setup()
state.mainweapon = M{['description'] = 'Main Weapon'}
--state.mainweapon:options('Ragnarok','Reikiko')
state.mainweapon:options('Ragnarok','Reikiko')
end
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc')
state.WeaponskillMode:options('Normal', 'Acc')
state.HybridMode:options('Normal', 'PDT')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal','PDT')
state.PhysicalDefenseMode:options('PDT', 'MDT')
Rag_weapons = S{'Ragnarok'}
Shield_weapons = S{'Blurred Shield +1'}
update_combat_form()
select_default_macro_book()
end
-- Called when this job file is unloaded (eg: job change)
function file_unload()
if binds_on_unload then
binds_on_unload()
end
end
sets.mainweapon = {}
sets.mainweapon.Ragnarok = {
main="Ragnarok",
sub="Utu Grip"
}
sets.mainweapon.Reikiko = {
main="Reikiko",
sub="Blurred Shield +1"
}
-- Define sets and vars used by this job file.
function init_gear_sets()
-- Precast sets
sets.precast.JA['Berserk'] = {feet="Agoge Calligae +1",body="Pummeler's Lorica +1",back="Cichol's Mantle"}
sets.precast.JA['Warcry'] = {head="Agoge Mask +1"}
sets.precast.JA['Aggressor'] = {body="Agoge Lorica +1",head="Pummeler's Mask +1"}
sets.precast.JA['Blood Rage'] = {body="Boii Lorica +1"}
sets.precast.JA['Retaliation'] = {feet="Boii Calligae +1",hands="Pummeler's Mufflers +1"}
sets.precast.JA['Restraint'] = {hands="Boii Mufflers +1"}
sets.precast.JA['Mighty Strikes'] = {hands="Agoge Mufflers +1"}
sets.precast.JA["Warrior's Charge"] = {legs="Agoge Cuisses +1"}
sets.precast.JA['Provoke'] = {
head="Pummeler's Mask +1", body="Souveran Cuirass",
back="Reiki Cloak", neck="Unmoving Collar +1",
hands="Pummeler's Mufflers +1", waist="Trance Belt",
legs="Odyssean Cuisses", feet="Souveran Schuhs",
Ring1="Petrov Ring", Ring2="Apeile Ring",
ear1="Enchanter Earring +1", ear2="Gwati Earring"
}
-- Fast cast sets for spells
sets.precast.FC = {
ammo="Sapience Orb",
head="Carmine Mask +1", body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
back=Ank_STP, neck="Orunmila's Torque",
hands={ name="Leyline Gloves", augments={'Accuracy+1','Mag. Acc.+5','"Mag.Atk.Bns."+5','"Fast Cast"+1',}}, waist="Tempus Fugit",
legs="Eschite Cuisses", feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
ring1="Prolix Ring", ring2="Rahab Ring",
ear1="Etiolation Earring", ear2="Loquacious Earring"}
-- Midcast Sets
sets.midcast.FastRecast = {
ammo="Sapience Orb",
head="Carmine Mask +1", body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
back=Ank_STP, neck="Orunmila's Torque",
hands="Leyline Gloves", waist="Tempus Fugit",
legs="Eschite Cuisses", feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
ring1="Prolix Ring", ring2="Rahab Ring",
ear1="Etiolation Earring", ear2="Loquacious Earring"}
sets.midcast.Flash = {
head="Pummeler's Mask +1", body="Souveran Cuirass",
back="Reiki Cloak", neck="Unmoving Collar +1",
hands="Pummeler's Mufflers +1", waist="Trance Belt",
legs="Odyssean Cuisses", feet="Souveran Schuhs",
Ring1="Petrov Ring", Ring2="Apeile Ring",
ear1="Enchanter Earring +1", ear2="Gwati Earring"
}
-- Resting sets
sets.resting = {
ammo="Ginsen",
head="", body="Lugra Cloak +1",
back="Xucau Mantle", neck="Sanctity Necklace",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Carmine Cuisses +1",feet="Amm Greaves",
ring1="Paguroidea Ring", ring2="Chirich Ring +1",
ear1="Infused Earring", ear2="Genmei Earring"}
-- Idle sets
sets.idle = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body="Sulevia's Plate. +1",
hands="Sulev. Gauntlets +1",
legs="Sulevi. Cuisses +1",
feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
neck="Bathy Choker +1",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Dawn Earring",
left_ring="Paguroidea Ring",
right_ring="Chirich Ring +1",
back="Xucau Mantle",
}
sets.idle.PDT = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1", body="Sulevia's Platemail +1",
back="Xucau Mantle", neck="Loricate Torque +1",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Sulevia's Cuisses +1", feet="Amm Greaves",
ring1="Defending Ring", ring2={ name="Dark Ring", augments={'Phys. dmg. taken -5%','Magic dmg. taken -5%',}},
ear1="Odnowa Earring +1", ear2="Genmei Earring"}
sets.idle.Town = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body="Sulevia's Plate. +1",
hands="Sulev. Gauntlets +1",
legs="Sulevi. Cuisses +1",
feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
neck="Bathy Choker +1",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Dawn Earring",
left_ring="Paguroidea Ring",
right_ring="Chirich Ring +1",
back="Xucau Mantle",
}
sets.idle.Weak = {
ammo="Seething Bomblet +1",
head="Twilight Helm", body="Twilight Mail",
back="Xucau Mantle", neck="Loricate Torque +1",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Sulevia's Cuisses +1", feet="Amm Greaves",
ring1="Defending Ring", ring2={ name="Dark Ring", augments={'Phys. dmg. taken -5%','Magic dmg. taken -5%',}},
ear1="Odnowa Earring +1", ear2="Genmei Earring"}
--Engaged Ragnarok
-- 1100ACC 57STP
sets.engaged.Ragnarok = {
ammo="Ginsen",
head="Flamma Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+23','"Dbl.Atk."+5','DEX+8','Attack+13',}},
hands="Emicho Gauntlets",
legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Store TP"+6','DEX+10','Attack+12',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Brutal Earring",
left_ring="Niqmaddu Ring",
right_ring="Petrov Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
}
-- 1086ACC 65STP
sets.engaged.Ragnarok.LowAcc = {
ammo="Ginsen",
head="Boii Mask +1",
body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
hands={ name="Emicho Gauntlets", augments={'HP+50','DEX+10','Accuracy+15',}},
legs={ name="Odyssean Cuisses", augments={'Accuracy+16 Attack+16','"Store TP"+5','STR+10','Accuracy+8',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20','"Dbl.Atk."+5','Attack+2',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- 1208ACC 52STP
sets.engaged.Ragnarok.MidAcc = {
ammo="Seeth. Bomblet +1",
head="Boii Mask +1",
body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
hands="Flam. Manopolas +1",
legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Dbl.Atk."+5',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- 1173ACC 64STP
sets.engaged.Ragnarok.HighAcc = {
ammo="Seething Bomblet +1",
head="Carmine Mask +1", body="Emicho Haubert",
back={ name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}, neck="Combatant's Torque",
hands="Emicho Gauntlets", waist="Kentarch Belt +1",
legs="Carmine Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
ring1="Petrov Ring", ring2="Chirich Ring +1",
ear1="Telos Earring", ear2="Dignitary's Earring"}
-- Sword and Board Sets
sets.engaged.Blurred = {
ammo="Seething Bomblet +1",
head="Argosy Celata +1", body="Emicho Haubert",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}, neck="Combatant's Torque",
hands="Emicho Gauntlets", waist="Kentarch Belt +1",
legs="Boii Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
ring1="Petrov Ring", ring2="Chirich Ring +1",
ear1="Telos Earring", ear2="Dignitary's Earring"}
sets.engaged.Blurred.PDT = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Sulev. Gauntlets +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Souveran Schuhs", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
neck="Loricate Torque +1",
waist="Ioskeha Belt +1",
left_ear="Telos Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- Weaponskill sets
sets.precast.WS = {
ammo="Seething Bomblet +1",
head=Val_WSdmg_head, body=Ody_WSdmg_body,
back=Ank_WSdmg, neck="Fotia Gorget",
hands=Ody_WSdmg_hands, waist="Fotia Belt",
legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
ear1="Ishvara Earring", ear2="Moonshade Earring"}
sets.precast.WS.Acc = set_combine(sets.precast.WS, {
head="Argosy Celata", body=Val_DA_body,
legs=Ody_WSacc_legs,
ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
ear1="Telos Earring"})
-- Resolution - FTP .71, 1.5, 2.25, - STR 85%
-- Fragmentation/Scission
sets.precast.WS['Resolution'] = {
ammo="Seething Bomblet +1",
head="Argosy Celata +1", body="Argosy Hauberk +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}, neck="Fotia Gorget",
hands="Argosy Mufflers +1", waist="Fotia Belt",
legs="Argosy Breeches +1", feet="Argosy Sollerets +1",
ring1="Niqmaddu Ring", ring2="Ifrit Ring +1",
ear1="Brutal Earring",ear2="Cessance Earring"
}
sets.precast.WS['Resolution'].Acc = set_combine(sets.precast.WS.Acc, {
head="Argosy Celata", body=Val_DA_body,
legs=Ody_WSacc_legs,
ring1="Ifrit Ring +1", ring2="Shukuyu Ring",
ear1="Telos Earring"})
sets.precast.WS['Savage Blade'] = {
ammo="Seeth. Bomblet +1",
head={ name="Odyssean Helm", augments={'Accuracy+21','Weapon skill damage +5%','STR+9','Attack+14',}},
body={ name="Valorous Mail", augments={'Accuracy+28','Weapon skill damage +5%',}},
hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
legs={ name="Valor. Hose", augments={'Accuracy+28','Weapon skill damage +5%','STR+10','Attack+5',}},
feet="Sulev. Leggings +1",
neck="Caro Necklace",
waist="Prosilio Belt +1",
left_ear="Tati Earring +1",
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Ifrit Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
sets.precast.WS['Savage Blade'].Acc = {ammo="Seeth. Bomblet +1",
head={ name="Argosy Celata +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Argosy Hauberk +1", augments={'STR+12','Attack+20','"Store TP"+6',}},
hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
legs={ name="Argosy Breeches +1", augments={'STR+12','Attack+25','"Store TP"+6',}},
feet={ name="Argosy Sollerets +1", augments={'STR+12','DEX+12','Attack+20',}},
neck="Fotia Gorget",
waist="Prosilio Belt +1",
left_ear="Telos Earring",
right_ear="Mache Earring +1",
left_ring="Rufescent Ring",
right_ring="Ifrit Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
-- Mighty Strikes WS Set --
sets.MS_WS = {ammo="Yetshila", feet="Boii Calligae +1"}
end
-- Job-specific hooks for standard casting events.
function job_midcast(spell, action, spellMap, eventArgs)
end
-- Called when the player's status changes.
function job_state_change(field, new_value, old_value)
end
function update_combat_form()
-- Check Weapontype
if Rag_weapons:contains(player.equipment.main) then
state.CombatForm:set('Ragnarok')
elseif
Shield_weapons:contains(player.equipment.sub) then
state.CombatForm:set('Blurred')
else
state.CombatForm:reset()
end
end
function job_self_command(cmdParams, eventArgs)
command = cmdParams[1]:lower()
if command=='mainweapon' then
enable('main','sub')
mainswap=1
send_command('gs c cycle mainweapon')
end
end
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- Called by the 'update' self-command, for common needs.
-- Set eventArgs.handled to true if we don't want automatic equipping of gear.
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- eventArgs is the same one used in job_precast, in case information needs to be persisted.
moonshade_WS = S{"Resolution", "Torcleaver", "Savage Blade"}
function job_post_precast(spell, action, spellMap, eventArgs)
if spell.type == 'WeaponSkill' then
if world.time >= (17*60) or world.time <= (7*60) then
equip({ear1="Lugra Earring +1",ear2="Lugra Earring"})
end
if moonshade_WS:contains(spell.english) and player.tp<2950 then
equip({ear2="Moonshade Earring"})
end
if buffactive['Mighty Strikes'] then
if sets.precast.WS[spell] then
equipSet = sets.precast.WS[spell]
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
else
equipSet = sets.precast.WS
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
end
end
end
end
function customize_idle_set(idleSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if player.mpp < 51 then
return set_combine(idleSet, sets.latent_refresh)
end
if state.Buff.Doom or state.Buff.Curse then
return set_combine(idleSet, sets.Doom)
else
return idleSet
end
end
function customize_melee_set(meleeSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if state.Buff.Aftermath then
return set_combine(meleeSet, sets.Aftermath)
end
if state.Buff.Doom then
return set_combine(meleeSet, sets.Doom)
end
if state.Buff.Curse then
return set_combine(meleeSet, sets.Curse)
else
return meleeSet
end
end
-- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
function job_post_midcast(spell, action, spellMap, eventArgs)
if spellMap == 'Cure' and spell.target.type == 'SELF' then
equip(sets.midcast.CureSelf)
end
end
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
-- Default macro set/book
if player.sub_job == 'SAM' then
set_macro_page(1, 7)
elseif player.sub_job == 'NIN' then
set_macro_page(3, 7)
elseif player.sub_job == 'RDM' then
set_macro_page(4, 7)
elseif player.sub_job == 'THF' then
set_macro_page(2, 7)
else
set_macro_page(1, 7)
end
end
Slightly off topic, but your earlier post stated you were working more on SAM and DRK. Any chance you have a SAM lua you would be willing to share? Always looking for more options/variations on that.
By stickyd 2017-05-22 08:42:42
how do i get the -pdt set to kick in during engage i tried f10 but nothing happens
By Brynach 2017-05-22 09:26:06
how do i get the -pdt set to kick in during engage i tried f10 but nothing happens
You will have to build a .PDT set for the weapon you are using. I just tested my sets.engaged.Blurred.PDT set and it swapped in pieces when I hit f10.
That option is currently the only set besides idle that has a .PDT set.
By Brynach 2017-05-22 21:10:41
when im engaged and i hit f10 nothing happens no gear changes at all
I dont think you read what I posted earlier. But, I will try to break it down for you a bit. The only set for which there is a hybrid set is my set labeled sets.engaged.Blurred.PDT. IF you arent using that weapon/shield combo, then the hybrid set absolutely wont work.
So, in order to make this work, you will need to either modify or create new a set that is called in under function update_combat_form().
So lets say you are using Ukonvasara. You will need to add a line for it in the update_combat_form and the respective combatform:set. I see you have done something to one of them that completely screws it up, so that is a good place to start (around line 41). You have also, seemingly, erased the function to update idle sets, put in some strange gearset into the combatform:set for the Reikiko/Blurred Shield +1 combo.
Best thing you can do at this point is trash what you have done and start over with the version I posted. If you want me to help you fix it, then PM me and I will tell you how to get what you want.
By Brynach 2017-05-23 08:09:26
Use this new version. If you look in the Ragnarok sets, you will see that I added new PDT sets for Ragnarok for each level of accuracy. All you have to do now is fill in the proper gear for your sets. I tested the new addition, and this swapped gear in correctly for me when I selected f10.
If you find you are still having issues, make sure your ctrl+q is set to Ragnarok.
Code -- Initialization function for this job file.
function get_sets()
mote_include_version = 2
include('Mote-Include.lua')
end
-- //gs debugmode
-- //gs showswaps
function binds_on_load()
-- F9-F12
send_command('bind f9 gs c cycle OffenseMode')
send_command('bind f10 gs c cycle HybridMode')
send_command('bind f11 gs c cycle CastingMode')
send_command('bind f12 gs c update user')
-- CTRL F9-F12
send_command('bind ^q gs c mainweapon')
send_command('bind ^f9 gs c cycle WeaponskillMode')
-- ALT F9-12
send_command('bind !f9 gs c cycle IdleMode')
send_command('bind !f10 gs c cycle RangedMode')
send_command('bind !f12 gs c cycle Kiting')
end
function job_setup()
state.mainweapon = M{['description'] = 'Main Weapon'}
--state.mainweapon:options('Ragnarok','Reikiko')
state.mainweapon:options('Ragnarok','Reikiko')
end
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc')
state.WeaponskillMode:options('Normal', 'Acc')
state.HybridMode:options('Normal', 'PDT')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal','PDT')
state.PhysicalDefenseMode:options('PDT', 'MDT')
Rag_weapons = S{'Ragnarok'}
Shield_weapons = S{'Blurred Shield +1'}
update_combat_form()
select_default_macro_book()
end
-- Called when this job file is unloaded (eg: job change)
function file_unload()
if binds_on_unload then
binds_on_unload()
end
end
sets.mainweapon = {}
sets.mainweapon.Ragnarok = {
main="Ragnarok",
sub="Utu Grip"
}
sets.mainweapon.Reikiko = {
main="Reikiko",
sub="Blurred Shield +1"
}
-- Define sets and vars used by this job file.
function init_gear_sets()
-- Precast sets
sets.precast.JA['Berserk'] = {feet="Agoge Calligae +1",body="Pummeler's Lorica +1",back="Cichol's Mantle"}
sets.precast.JA['Warcry'] = {head="Agoge Mask +1"}
sets.precast.JA['Aggressor'] = {body="Agoge Lorica +1",head="Pummeler's Mask +1"}
sets.precast.JA['Blood Rage'] = {body="Boii Lorica +1"}
sets.precast.JA['Retaliation'] = {feet="Boii Calligae +1",hands="Pummeler's Mufflers +1"}
sets.precast.JA['Restraint'] = {hands="Boii Mufflers +1"}
sets.precast.JA['Mighty Strikes'] = {hands="Agoge Mufflers +1"}
sets.precast.JA["Warrior's Charge"] = {legs="Agoge Cuisses +1"}
sets.precast.JA['Provoke'] = {
head="Pummeler's Mask +1", body="Souveran Cuirass",
back="Reiki Cloak", neck="Unmoving Collar +1",
hands="Pummeler's Mufflers +1", waist="Trance Belt",
legs="Odyssean Cuisses", feet="Souveran Schuhs",
Ring1="Petrov Ring", Ring2="Apeile Ring",
ear1="Enchanter Earring +1", ear2="Gwati Earring"
}
-- Fast cast sets for spells
sets.precast.FC = {
ammo="Sapience Orb",
head="Carmine Mask +1", body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
back=Ank_STP, neck="Orunmila's Torque",
hands={ name="Leyline Gloves", augments={'Accuracy+1','Mag. Acc.+5','"Mag.Atk.Bns."+5','"Fast Cast"+1',}}, waist="Tempus Fugit",
legs="Eschite Cuisses", feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
ring1="Prolix Ring", ring2="Rahab Ring",
ear1="Etiolation Earring", ear2="Loquacious Earring"}
-- Midcast Sets
sets.midcast.FastRecast = {
ammo="Sapience Orb",
head="Carmine Mask +1", body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
back=Ank_STP, neck="Orunmila's Torque",
hands="Leyline Gloves", waist="Tempus Fugit",
legs="Eschite Cuisses", feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
ring1="Prolix Ring", ring2="Rahab Ring",
ear1="Etiolation Earring", ear2="Loquacious Earring"}
sets.midcast.Flash = {
head="Pummeler's Mask +1", body="Souveran Cuirass",
back="Reiki Cloak", neck="Unmoving Collar +1",
hands="Pummeler's Mufflers +1", waist="Trance Belt",
legs="Odyssean Cuisses", feet="Souveran Schuhs",
Ring1="Petrov Ring", Ring2="Apeile Ring",
ear1="Enchanter Earring +1", ear2="Gwati Earring"
}
-- Resting sets
sets.resting = {
ammo="Ginsen",
head="", body="Lugra Cloak +1",
back="Xucau Mantle", neck="Sanctity Necklace",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Carmine Cuisses +1",feet="Amm Greaves",
ring1="Paguroidea Ring", ring2="Chirich Ring +1",
ear1="Infused Earring", ear2="Genmei Earring"}
-- Idle sets
sets.idle = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body="Sulevia's Plate. +1",
hands="Sulev. Gauntlets +1",
legs="Sulevi. Cuisses +1",
feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
neck="Bathy Choker +1",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Dawn Earring",
left_ring="Paguroidea Ring",
right_ring="Chirich Ring +1",
back="Xucau Mantle",
}
sets.idle.PDT = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1", body="Sulevia's Platemail +1",
back="Xucau Mantle", neck="Loricate Torque +1",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Sulevia's Cuisses +1", feet="Amm Greaves",
ring1="Defending Ring", ring2={ name="Dark Ring", augments={'Phys. dmg. taken -5%','Magic dmg. taken -5%',}},
ear1="Odnowa Earring +1", ear2="Genmei Earring"}
sets.idle.Town = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body="Sulevia's Plate. +1",
hands="Sulev. Gauntlets +1",
legs="Sulevi. Cuisses +1",
feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
neck="Bathy Choker +1",
waist="Flume Belt +1",
left_ear="Infused Earring",
right_ear="Dawn Earring",
left_ring="Paguroidea Ring",
right_ring="Chirich Ring +1",
back="Xucau Mantle",
}
sets.idle.Weak = {
ammo="Seething Bomblet +1",
head="Twilight Helm", body="Twilight Mail",
back="Xucau Mantle", neck="Loricate Torque +1",
hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
legs="Sulevia's Cuisses +1", feet="Amm Greaves",
ring1="Defending Ring", ring2={ name="Dark Ring", augments={'Phys. dmg. taken -5%','Magic dmg. taken -5%',}},
ear1="Odnowa Earring +1", ear2="Genmei Earring"}
--Engaged Ragnarok
-- 1100ACC 57STP
sets.engaged.Ragnarok = {
ammo="Ginsen",
head="Flamma Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+23','"Dbl.Atk."+5','DEX+8','Attack+13',}},
hands="Emicho Gauntlets",
legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Store TP"+6','DEX+10','Attack+12',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Brutal Earring",
left_ring="Niqmaddu Ring",
right_ring="Petrov Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
}
sets.engaged.Ragnarok.PDT = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Sulev. Gauntlets +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Souveran Schuhs", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
neck="Loricate Torque +1",
waist="Ioskeha Belt +1",
left_ear="Telos Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- 1086ACC 65STP
sets.engaged.Ragnarok.LowAcc = {
ammo="Ginsen",
head="Flamma Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
hands={ name="Emicho Gauntlets", augments={'HP+50','DEX+10','Accuracy+15',}},
legs={ name="Odyssean Cuisses", augments={'Accuracy+16 Attack+16','"Store TP"+5','STR+10','Accuracy+8',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20','"Dbl.Atk."+5','Attack+2',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
sets.engaged.Ragnarok.LowAcc.PDT = sets.engaged.Ragnarok.PDT
-- 1208ACC 52STP
sets.engaged.Ragnarok.MidAcc = {
ammo="Seeth. Bomblet +1",
head="Flamma Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
hands="Flam. Manopolas +1",
legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Dbl.Atk."+5',}},
feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
neck="Lissome Necklace",
waist="Ioskeha Belt +1",
left_ear="Cessance Earring",
right_ear="Telos Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
sets.engaged.Ragnarok.MidAcc.PDT = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Sulev. Gauntlets +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Souveran Schuhs", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
neck="Loricate Torque +1",
waist="Ioskeha Belt +1",
left_ear="Telos Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- 1173ACC 64STP
sets.engaged.Ragnarok.HighAcc = {
ammo="Seething Bomblet +1",
head="Flamma Zucchetto +1", body="Emicho Haubert",
back={ name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}, neck="Combatant's Torque",
hands="Emicho Gauntlets", waist="Kentarch Belt +1",
legs="Carmine Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
ring1="Petrov Ring", ring2="Chirich Ring +1",
ear1="Telos Earring", ear2="Dignitary's Earring"}
sets.engaged.Ragnarok.HighAcc.PDT = sets.engaged.Ragnarok.MidAcc.PDT
-- Sword and Board Sets
sets.engaged.Blurred = {
ammo="Seething Bomblet +1",
head="Argosy Celata +1", body="Emicho Haubert",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}, neck="Combatant's Torque",
hands="Emicho Gauntlets", waist="Kentarch Belt +1",
legs="Boii Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
ring1="Petrov Ring", ring2="Chirich Ring +1",
ear1="Telos Earring", ear2="Dignitary's Earring"}
sets.engaged.Blurred.PDT = {
ammo="Staunch Tathlum",
head="Sulevia's Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Sulev. Gauntlets +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Souveran Schuhs", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
neck="Loricate Torque +1",
waist="Ioskeha Belt +1",
left_ear="Telos Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Chirich Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}}
-- Weaponskill sets
sets.precast.WS = {
ammo="Seething Bomblet +1",
head=Val_WSdmg_head, body=Ody_WSdmg_body,
back=Ank_WSdmg, neck="Fotia Gorget",
hands=Ody_WSdmg_hands, waist="Fotia Belt",
legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
ear1="Ishvara Earring", ear2="Moonshade Earring"}
sets.precast.WS.Acc = set_combine(sets.precast.WS, {
head="Argosy Celata", body=Val_DA_body,
legs=Ody_WSacc_legs,
ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
ear1="Telos Earring"})
-- Resolution - FTP .71, 1.5, 2.25, - STR 85%
-- Fragmentation/Scission
sets.precast.WS['Resolution'] = {
ammo="Seething Bomblet +1",
head="Argosy Celata +1", body="Argosy Hauberk +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}, neck="Fotia Gorget",
hands="Argosy Mufflers +1", waist="Fotia Belt",
legs="Argosy Breeches +1", feet="Argosy Sollerets +1",
ring1="Niqmaddu Ring", ring2="Ifrit Ring +1",
ear1="Brutal Earring",ear2="Cessance Earring"
}
sets.precast.WS['Resolution'].Acc = set_combine(sets.precast.WS.Acc, {
head="Argosy Celata", body=Val_DA_body,
legs=Ody_WSacc_legs,
ring1="Ifrit Ring +1", ring2="Shukuyu Ring",
ear1="Telos Earring"})
sets.precast.WS['Savage Blade'] = {
ammo="Seeth. Bomblet +1",
head={ name="Odyssean Helm", augments={'Accuracy+21','Weapon skill damage +5%','STR+9','Attack+14',}},
body={ name="Valorous Mail", augments={'Accuracy+28','Weapon skill damage +5%',}},
hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
legs={ name="Valor. Hose", augments={'Accuracy+28','Weapon skill damage +5%','STR+10','Attack+5',}},
feet="Sulev. Leggings +1",
neck="Caro Necklace",
waist="Prosilio Belt +1",
left_ear="Tati Earring +1",
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Ifrit Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
sets.precast.WS['Savage Blade'].Acc = {ammo="Seeth. Bomblet +1",
head={ name="Argosy Celata +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Argosy Hauberk +1", augments={'STR+12','Attack+20','"Store TP"+6',}},
hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
legs={ name="Argosy Breeches +1", augments={'STR+12','Attack+25','"Store TP"+6',}},
feet={ name="Argosy Sollerets +1", augments={'STR+12','DEX+12','Attack+20',}},
neck="Fotia Gorget",
waist="Prosilio Belt +1",
left_ear="Telos Earring",
right_ear="Mache Earring +1",
left_ring="Rufescent Ring",
right_ring="Ifrit Ring +1",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
-- Mighty Strikes WS Set --
sets.MS_WS = {ammo="Yetshila", feet="Boii Calligae +1"}
end
-- Job-specific hooks for standard casting events.
function job_midcast(spell, action, spellMap, eventArgs)
end
-- Called when the player's status changes.
function job_state_change(field, new_value, old_value)
end
function display_current_job_state(eventArgs)
local msg = 'Melee'
if state.HybridMode.value ~= 'Normal' then
msg = msg .. '/' .. state.HybridMode.value
end
end
function update_combat_form()
-- Check Weapontype
if Rag_weapons:contains(player.equipment.main) then
state.CombatForm:set('Ragnarok')
elseif
Shield_weapons:contains(player.equipment.sub) then
state.CombatForm:set('Blurred')
else
state.CombatForm:reset()
end
end
function job_self_command(cmdParams, eventArgs)
command = cmdParams[1]:lower()
if command=='mainweapon' then
enable('main','sub')
mainswap=1
send_command('gs c cycle mainweapon')
end
end
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- Called by the 'update' self-command, for common needs.
-- Set eventArgs.handled to true if we don't want automatic equipping of gear.
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- eventArgs is the same one used in job_precast, in case information needs to be persisted.
moonshade_WS = S{"Resolution", "Torcleaver", "Savage Blade"}
function job_post_precast(spell, action, spellMap, eventArgs)
if spell.type == 'WeaponSkill' then
if world.time >= (17*60) or world.time <= (7*60) then
equip({ear1="Lugra Earring +1",ear2="Lugra Earring"})
end
if moonshade_WS:contains(spell.english) and player.tp<2950 then
equip({ear2="Moonshade Earring"})
end
if buffactive['Mighty Strikes'] then
if sets.precast.WS[spell] then
equipSet = sets.precast.WS[spell]
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
else
equipSet = sets.precast.WS
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
end
end
end
end
function customize_idle_set(idleSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if player.mpp < 51 then
return set_combine(idleSet, sets.latent_refresh)
end
if state.Buff.Doom or state.Buff.Curse then
return set_combine(idleSet, sets.Doom)
else
return idleSet
end
end
function customize_melee_set(meleeSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if state.Buff.Aftermath then
return set_combine(meleeSet, sets.Aftermath)
end
if state.Buff.Doom then
return set_combine(meleeSet, sets.Doom)
end
if state.Buff.Curse then
return set_combine(meleeSet, sets.Curse)
else
return meleeSet
end
end
-- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
-- Default macro set/book
if player.sub_job == 'SAM' then
set_macro_page(1, 7)
elseif player.sub_job == 'NIN' then
set_macro_page(3, 7)
elseif player.sub_job == 'RDM' then
set_macro_page(4, 7)
elseif player.sub_job == 'THF' then
set_macro_page(2, 7)
else
set_macro_page(1, 7)
end
end
By stickyd 2017-05-23 19:51:40
awesome thanks ill let me know what happens ur a big help friend
By stickyd 2017-05-23 20:11:56
it works perfect thanks now im making a savage blade set up for war ur the best!
Necro Bump Detected!
[94 days between previous and next post]
By stickyd420 2017-08-25 17:05:26
hey brynach u here can u add chango to the lua i cant seem to get it to switch to chango engaged
heres my lua after i messed with it trying to get chango
-- Initialization function for this job file.
function get_sets()
mote_include_version = 2
include('Mote-Include.lua')
end
-- //gs debugmode
-- //gs showswaps
function binds_on_load()
-- F9-F12
send_command('bind f9 gs c cycle OffenseMode')
send_command('bind f10 gs c cycle HybridMode')
send_command('bind f11 gs c cycle CastingMode')
send_command('bind f12 gs c update user')
-- CTRL F9-F12
send_command('bind ^q gs c mainweapon')
send_command('bind ^f9 gs c cycle WeaponskillMode')
-- ALT F9-12
send_command('bind !f9 gs c cycle IdleMode')
send_command('bind !f10 gs c cycle RangedMode')
send_command('bind !f12 gs c cycle Kiting')
end
function job_setup()
state.mainweapon = M{['description'] = 'Main Weapon'}
--state.mainweapon:options('Chango','Ragnarok','Reikiko')
state.mainweapon:options('Chango','Ragnarok','Reikiko')
end
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc')
state.WeaponskillMode:options('Normal', 'Acc')
state.HybridMode:options('Normal', 'PDT')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal','PDT')
state.PhysicalDefenseMode:options('PDT', 'MDT')
Chango_weapons = S{'Chango'}
Shield_weapons = S{'Blurred Shield'}
update_combat_form()
select_default_macro_book()
end
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc')
state.WeaponskillMode:options('Normal', 'Acc')
state.HybridMode:options('Normal', 'PDT')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal','PDT')
state.PhysicalDefenseMode:options('PDT', 'MDT')
Chango_weapons = S{'Chango'}
Rag_weapons = S{'Ragnarok'}
Shield_weapons = S{'Blurred Shield'}
update_combat_form()
select_default_macro_book()
end
-- Called when this job file is unloaded (eg: job change)
function file_unload()
if binds_on_unload then
binds_on_unload()
end
end
sets.mainweapon = {}
sets.mainweapon.Chango = {
main="Chango",
sub="Utu Grip",
}
sets.mainweapon.Reikiko = {
main="Reikiko",
sub="Blurred Shield",
}
sets.mainweapon = {}
sets.mainweapon.Ragnarok = {
main="Ragnarok",
sub="Utu Grip",
}
sets.mainweapon.Reikiko = {
main="Reikiko",
sub="Blurred Shield",
}
-- Define sets and vars used by this job file.
function init_gear_sets()
-- Precast sets
sets.precast.JA['Berserk'] = {
body="Pumm. Lorica +3",
feet={ name="Agoge Calligae +1", augments={'Enhances "Tomahawk" effect',}},
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.precast.JA['Warcry'] = {
head={ name="Agoge Mask +1", augments={'Enhances "Savagery" effect',}},}
sets.precast.JA['Aggressor'] = {
head="Pumm. Mask +1",
body={ name="Agoge Lorica +1", augments={'Enhances "Aggressive Aim" effect',}},}
sets.precast.JA['Blood Rage'] = {
body="Boii Lorica +1",}
sets.precast.JA['Retaliation'] = {
feet="Boii Calligae +1",
hands="Pummeler's Mufflers +1"}
sets.precast.JA['Restraint'] = {
hands="Boii Mufflers",}
sets.precast.JA['Mighty Strikes'] = {
hands="Agoge Mufflers +1"}
sets.precast.JA["Warrior's Charge"] = {
legs={ name="Agoge Cuisses +1", augments={'Enhances "Warrior\'s Charge" effect',}},}
sets.precast.JA['Provoke'] = {
ammo="Staunch Tathlum",
head="Pumm. Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Macabre Gaunt. +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Eschite Greaves", augments={'HP+80','Enmity+7','Phys. dmg. taken -4',}},
neck="Diemer Gorget",
waist="Nierenschutz",
left_ear="Friomisi Earring",
right_ear="Thureous Earring",
left_ring="Apeile Ring",
right_ring="Apeile Ring +1",
back="Philidor Mantle",}
-- Fast cast sets for spells
sets.precast.FC = {
head={ name="Carmine Mask", augments={'Accuracy+15','Mag. Acc.+10','"Fast Cast"+3',}},
body={ name="Odyss. Chestplate", augments={'Accuracy+7','"Fast Cast"+5',}},
legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
feet={ name="Odyssean Greaves", augments={'Accuracy+7 Attack+7','"Fast Cast"+3','Accuracy+12','Attack+11',}},
neck="Baetyl Pendant",
right_ear="Loquac. Earring",}
-- Midcast Sets
sets.midcast.FastRecast = {
body={ name="Odyss. Chestplate", augments={'Accuracy+7','"Fast Cast"+5',}},
legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
feet={ name="Odyssean Greaves", augments={'Accuracy+7 Attack+7','"Fast Cast"+3','Accuracy+12','Attack+11',}},
right_ear="Loquac. Earring",}
sets.midcast.Flash = {
ammo="Staunch Tathlum",
head="Pumm. Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Macabre Gaunt. +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Eschite Greaves", augments={'HP+80','Enmity+7','Phys. dmg. taken -4',}},
neck="Diemer Gorget",
waist="Nierenschutz",
left_ear="Friomisi Earring",
right_ear="Loquacious Earring",
left_ring="Apeile Ring",
right_ring="Apeile Ring +1",
back="Philidor Mantle",}
-- Resting sets
sets.resting = {}
-- Idle sets
sets.idle = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Sanctity Necklace",
waist="Asklepian Belt",
left_ear="Infused Earring",
right_ear="Thureous Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back="Moonbeam Cape",}
sets.idle.PDT = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Sanctity Necklace",
waist="Asklepian Belt",
left_ear="Infused Earring",
right_ear="Thureous Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back="Moonbeam Cape",}
sets.idle.Town = {
ammo="Ginsen",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Brutal Earring",
right_ear="Cessance Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.idle.Weak = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Sanctity Necklace",
waist="Asklepian Belt",
left_ear="Infused Earring",
right_ear="Thureous Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back="Moonbeam Cape",}
--Engaged Chango
sets.engaged.Chango = {
ammo="Ginsen",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Brutal Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Chango.PDT = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Brutal Earring",
right_ear="Cessance Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Chango.LowAcc = {}
sets.engaged.Chango.LowAcc.PDT = sets.engaged.Chango.PDT
sets.engaged.Chango.MidAcc = {}
sets.engaged.Chango.MidAcc.PDT = {}
sets.engaged.Chango.HighAcc = {}
sets.engaged.Chango.HighAcc.PDT = sets.engaged.Chango.MidAcc.PDT
--Engaged Ragnarok
sets.engaged.Ragnarok = {
ammo="Ginsen",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands={ name="Emicho Gauntlets", augments={'Accuracy+20','"Dual Wield"+5','Pet: Accuracy+20',}},
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Dedition Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Ragnarok.PDT = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Brutal Earring",
right_ear="Cessance Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Ragnarok.LowAcc = {}
sets.engaged.Ragnarok.LowAcc.PDT = sets.engaged.Ragnarok.PDT
sets.engaged.Ragnarok.MidAcc = {}
sets.engaged.Ragnarok.MidAcc.PDT = {}
sets.engaged.Ragnarok.HighAcc = {}
sets.engaged.Ragnarok.HighAcc.PDT = sets.engaged.Ragnarok.MidAcc.PDT
-- Sword and Board Sets
sets.engaged.Blurred = {
ammo="Ginsen",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands={ name="Emicho Gauntlets", augments={'Accuracy+20','"Dual Wield"+5','Pet: Accuracy+20',}},
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Dedition Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Blurred.PDT = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Dedition Earring",
right_ear="Cessance Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
-- Weaponskill sets
sets.precast.WS = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body="Pumm. Lorica +3",
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS.Acc = set_combine(sets.precast.WS, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body="Pumm. Lorica +3",
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Fell Cleave'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Fell Cleave'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Ukkos Fury'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Ukkos Fury'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Upheaval'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Upheaval'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Kings Justice'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Kings Justice'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Shockwave'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Shockwave'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Scourge'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Scourge'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Resolution'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Resolution'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Savage Blade'] = {
ammo="Knobkierrie",
head="Sulevia's Mask +1",
body="Pumm. Lorica +3",
hands={ name="Odyssean Gauntlets", augments={'Accuracy+27','Weapon skill damage +4%','AGI+4',}},
legs="Sulevi. Cuisses +1",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Savage Blade'].Acc = {
ammo="Knobkierrie",
head="Sulevia's Mask +1",
body="Pumm. Lorica +3",
hands={ name="Odyssean Gauntlets", augments={'Accuracy+25 Attack+25','"Dbl.Atk."+5','Attack+5',}},
legs="Sulevi. Cuisses +1",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
-- Mighty Strikes WS Set --
sets.MS_WS = {ammo="Yetshila", feet="Boii Calligae +1"}
end
-- Job-specific hooks for standard casting events.
function job_midcast(spell, action, spellMap, eventArgs)
end
-- Called when the player's status changes.
function job_state_change(field, new_value, old_value)
end
function display_current_job_state(eventArgs)
local msg = 'Melee'
if state.HybridMode.value ~= 'Normal' then
msg = msg .. '/' .. state.HybridMode.value
end
end
function update_combat_form()
-- Check Weapontype
if Chango_weapons:contains(player.equipment.main) then
state.CombatForm:set('Chango')
elseif
Shield_weapons:contains(player.equipment.sub) then
state.CombatForm:set('Blurred')
else
state.CombatForm:reset()
end
end
function update_combat_form()
-- Check Weapontype
if Rag_weapons:contains(player.equipment.main) then
state.CombatForm:set('Ragnarok')
elseif
Shield_weapons:contains(player.equipment.sub) then
state.CombatForm:set('Blurred')
else
state.CombatForm:reset()
end
end
function job_self_command(cmdParams, eventArgs)
command = cmdParams[1]:lower()
if command=='mainweapon' then
enable('main','sub')
mainswap=1
send_command('gs c cycle mainweapon')
end
end
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- Called by the 'update' self-command, for common needs.
-- Set eventArgs.handled to true if we don't want automatic equipping of gear.
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- eventArgs is the same one used in job_precast, in case information needs to be persisted.
moonshade_WS = S{"Resolution", "Torcleaver", "Savage Blade"}
function job_post_precast(spell, action, spellMap, eventArgs)
if spell.type == 'WeaponSkill' then
if world.time >= (17*60) or world.time <= (7*60) then
equip({ear1="Lugra Earring +1",ear2="Lugra Earring"})
end
if moonshade_WS:contains(spell.english) and player.tp<2950 then
equip({ear1="Moonshade Earring"})
end
if buffactive['Mighty Strikes'] then
if sets.precast.WS[spell] then
equipSet = sets.precast.WS[spell]
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
else
equipSet = sets.precast.WS
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
end
end
end
end
function customize_idle_set(idleSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if player.mpp < 51 then
return set_combine(idleSet, sets.latent_refresh)
end
if state.Buff.Doom or state.Buff.Curse then
return set_combine(idleSet, sets.Doom)
else
return idleSet
end
end
function customize_melee_set(meleeSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if state.Buff.Aftermath then
return set_combine(meleeSet, sets.Aftermath)
end
if state.Buff.Doom then
return set_combine(meleeSet, sets.Doom)
end
if state.Buff.Curse then
return set_combine(meleeSet, sets.Curse)
else
return meleeSet
end
end
-- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
-- Default macro set/book
if player.sub_job == 'SAM' then
set_macro_page(1, 7)
elseif player.sub_job == 'NIN' then
set_macro_page(3, 7)
elseif player.sub_job == 'RDM' then
set_macro_page(4, 7)
elseif player.sub_job == 'THF' then
set_macro_page(2, 7)
else
set_macro_page(1, 7)
end
end
By Sylph.Atigevomega 2017-09-13 23:18:35
Here is mine, will be updating for Bravura soon Gear isnt updated in this one, will post it for gearswap and what i did for ashita:
GearSwap:
https://pastebin.com/ahztGkt4 - Updated to current sets 9/14/17 also if you need to edit a weapon, Simply change the name, example: Change ALL occurances of Ukonvasara to Chango or whatever you want. Can also add another set if needed easily by adding it at he top with the other weapons format: ("Ragnarok","Ukonvasara","Bravura","Chango") then follow the formatting in Sets.
AshitaCast:
https://pastebin.com/P39qAvee
By Brynach 2017-09-14 07:58:19
Too many characters.
By Brynach 2017-09-14 07:59:16
So it looks to me like you have duplicated some areas of the lua that shouldn't have been duplicated. You only need 1 S{'Chango'} but you have created 2. You have two function user_setup and two functions for update_combat_form. Instead of duplicating those, you should remove one and combine the information.
Here is what it should look like:
Code -- Initialization function for this job file.
function get_sets()
mote_include_version = 2
include('Mote-Include.lua')
end
-- //gs debugmode
-- //gs showswaps
function binds_on_load()
-- F9-F12
send_command('bind f9 gs c cycle OffenseMode')
send_command('bind f10 gs c cycle HybridMode')
send_command('bind f11 gs c cycle CastingMode')
send_command('bind f12 gs c update user')
-- CTRL F9-F12
send_command('bind ^q gs c mainweapon')
send_command('bind ^f9 gs c cycle WeaponskillMode')
-- ALT F9-12
send_command('bind !f9 gs c cycle IdleMode')
send_command('bind !f10 gs c cycle RangedMode')
send_command('bind !f12 gs c cycle Kiting')
end
function job_setup()
state.mainweapon = M{['description'] = 'Main Weapon'}
--state.mainweapon:options('Chango','Ragnarok','Reikiko')
state.mainweapon:options('Chango','Ragnarok','Reikiko')
end
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc')
state.WeaponskillMode:options('Normal', 'Acc')
state.HybridMode:options('Normal', 'PDT')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal','PDT')
state.PhysicalDefenseMode:options('PDT', 'MDT')
Chango_weapons = S{'Chango'}
Rag_weapons = S{'Ragnarok'}
Shield_weapons = S{'Blurred Shield'}
update_combat_form()
select_default_macro_book()
end
-- Called when this job file is unloaded (eg: job change)
function file_unload()
if binds_on_unload then
binds_on_unload()
end
end
sets.mainweapon = {}
sets.mainweapon.Chango = {
main="Chango",
sub="Utu Grip",
}
sets.mainweapon.Reikiko = {
main="Reikiko",
sub="Blurred Shield",
}
sets.mainweapon = {}
sets.mainweapon.Ragnarok = {
main="Ragnarok",
sub="Utu Grip",
}
-- Define sets and vars used by this job file.
function init_gear_sets()
-- Precast sets
sets.precast.JA['Berserk'] = {
body="Pumm. Lorica +3",
feet={ name="Agoge Calligae +1", augments={'Enhances "Tomahawk" effect',}},
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.precast.JA['Warcry'] = {
head={ name="Agoge Mask +1", augments={'Enhances "Savagery" effect',}},}
sets.precast.JA['Aggressor'] = {
head="Pumm. Mask +1",
body={ name="Agoge Lorica +1", augments={'Enhances "Aggressive Aim" effect',}},}
sets.precast.JA['Blood Rage'] = {
body="Boii Lorica +1",}
sets.precast.JA['Retaliation'] = {
feet="Boii Calligae +1",
hands="Pummeler's Mufflers +1"}
sets.precast.JA['Restraint'] = {
hands="Boii Mufflers",}
sets.precast.JA['Mighty Strikes'] = {
hands="Agoge Mufflers +1"}
sets.precast.JA["Warrior's Charge"] = {
legs={ name="Agoge Cuisses +1", augments={'Enhances "Warrior\'s Charge" effect',}},}
sets.precast.JA['Provoke'] = {
ammo="Staunch Tathlum",
head="Pumm. Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Macabre Gaunt. +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Eschite Greaves", augments={'HP+80','Enmity+7','Phys. dmg. taken -4',}},
neck="Diemer Gorget",
waist="Nierenschutz",
left_ear="Friomisi Earring",
right_ear="Thureous Earring",
left_ring="Apeile Ring",
right_ring="Apeile Ring +1",
back="Philidor Mantle",}
-- Fast cast sets for spells
sets.precast.FC = {
head={ name="Carmine Mask", augments={'Accuracy+15','Mag. Acc.+10','"Fast Cast"+3',}},
body={ name="Odyss. Chestplate", augments={'Accuracy+7','"Fast Cast"+5',}},
legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
feet={ name="Odyssean Greaves", augments={'Accuracy+7 Attack+7','"Fast Cast"+3','Accuracy+12','Attack+11',}},
neck="Baetyl Pendant",
right_ear="Loquac. Earring",}
-- Midcast Sets
sets.midcast.FastRecast = {
body={ name="Odyss. Chestplate", augments={'Accuracy+7','"Fast Cast"+5',}},
legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
feet={ name="Odyssean Greaves", augments={'Accuracy+7 Attack+7','"Fast Cast"+3','Accuracy+12','Attack+11',}},
right_ear="Loquac. Earring",}
sets.midcast.Flash = {
ammo="Staunch Tathlum",
head="Pumm. Mask +1",
body={ name="Souveran Cuirass", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
hands="Macabre Gaunt. +1",
legs={ name="Souveran Diechlings", augments={'HP+80','Enmity+7','Potency of "Cure" effect received +10%',}},
feet={ name="Eschite Greaves", augments={'HP+80','Enmity+7','Phys. dmg. taken -4',}},
neck="Diemer Gorget",
waist="Nierenschutz",
left_ear="Friomisi Earring",
right_ear="Loquacious Earring",
left_ring="Apeile Ring",
right_ring="Apeile Ring +1",
back="Philidor Mantle",}
-- Resting sets
sets.resting = {}
-- Idle sets
sets.idle = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Sanctity Necklace",
waist="Asklepian Belt",
left_ear="Infused Earring",
right_ear="Thureous Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back="Moonbeam Cape",}
sets.idle.PDT = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Sanctity Necklace",
waist="Asklepian Belt",
left_ear="Infused Earring",
right_ear="Thureous Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back="Moonbeam Cape",}
sets.idle.Town = {
ammo="Ginsen",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Brutal Earring",
right_ear="Cessance Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.idle.Weak = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Sanctity Necklace",
waist="Asklepian Belt",
left_ear="Infused Earring",
right_ear="Thureous Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back="Moonbeam Cape",}
--Engaged Chango
sets.engaged.Chango = {
ammo="Ginsen",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Brutal Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Chango.PDT = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Brutal Earring",
right_ear="Cessance Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Chango.LowAcc = {}
sets.engaged.Chango.LowAcc.PDT = sets.engaged.Chango.PDT
sets.engaged.Chango.MidAcc = {}
sets.engaged.Chango.MidAcc.PDT = {}
sets.engaged.Chango.HighAcc = {}
sets.engaged.Chango.HighAcc.PDT = sets.engaged.Chango.MidAcc.PDT
--Engaged Ragnarok
sets.engaged.Ragnarok = {
ammo="Ginsen",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands={ name="Emicho Gauntlets", augments={'Accuracy+20','"Dual Wield"+5','Pet: Accuracy+20',}},
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Dedition Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Ragnarok.PDT = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Brutal Earring",
right_ear="Cessance Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Ragnarok.LowAcc = {}
sets.engaged.Ragnarok.LowAcc.PDT = sets.engaged.Ragnarok.PDT
sets.engaged.Ragnarok.MidAcc = {}
sets.engaged.Ragnarok.MidAcc.PDT = {}
sets.engaged.Ragnarok.HighAcc = {}
sets.engaged.Ragnarok.HighAcc.PDT = sets.engaged.Ragnarok.MidAcc.PDT
-- Sword and Board Sets
sets.engaged.Blurred = {
ammo="Ginsen",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands={ name="Emicho Gauntlets", augments={'Accuracy+20','"Dual Wield"+5','Pet: Accuracy+20',}},
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Dedition Earring",
right_ear="Cessance Earring",
left_ring="Petrov Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
sets.engaged.Blurred.PDT = {
ammo="Staunch Tathlum",
head="Arke Zuchetto",
body="Arke Corazza",
hands="Arke Manopolas",
legs="Arke Cosciales",
feet="Arke Gambieras",
neck="Lissome Necklace",
waist="Ioskeha Belt",
left_ear="Dedition Earring",
right_ear="Cessance Earring",
left_ring="Moonbeam Ring",
right_ring="Moonbeam Ring",
back={ name="Cichol's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
-- Weaponskill sets
sets.precast.WS = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body="Pumm. Lorica +3",
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS.Acc = set_combine(sets.precast.WS, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body="Pumm. Lorica +3",
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Fell Cleave'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Fell Cleave'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Ukkos Fury'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Ukkos Fury'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Upheaval'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Upheaval'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Kings Justice'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Kings Justice'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Shockwave'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Shockwave'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Scourge'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Scourge'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Resolution'] = {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Resolution'].Acc = set_combine(sets.precast.WS.Acc, {
ammo="Knobkierrie",
head="Flam. Zucchetto +1",
body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4','Attack+11',}},
hands="Sulev. Gauntlets +2",
legs="Pumm. Cuisses +3",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Cessance Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},})
sets.precast.WS['Savage Blade'] = {
ammo="Knobkierrie",
head="Sulevia's Mask +1",
body="Pumm. Lorica +3",
hands={ name="Odyssean Gauntlets", augments={'Accuracy+27','Weapon skill damage +4%','AGI+4',}},
legs="Sulevi. Cuisses +1",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
sets.precast.WS['Savage Blade'].Acc = {
ammo="Knobkierrie",
head="Sulevia's Mask +1",
body="Pumm. Lorica +3",
hands={ name="Odyssean Gauntlets", augments={'Accuracy+25 Attack+25','"Dbl.Atk."+5','Attack+5',}},
legs="Sulevi. Cuisses +1",
feet="Pumm. Calligae +3",
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
right_ear="Ishvara Earring",
left_ring="Shukuyu Ring",
right_ring="Rufescent Ring",
back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
-- Mighty Strikes WS Set --
sets.MS_WS = {ammo="Yetshila", feet="Boii Calligae +1"}
end
-- Job-specific hooks for standard casting events.
function job_midcast(spell, action, spellMap, eventArgs)
end
-- Called when the player's status changes.
function job_state_change(field, new_value, old_value)
end
function display_current_job_state(eventArgs)
local msg = 'Melee'
if state.HybridMode.value ~= 'Normal' then
msg = msg .. '/' .. state.HybridMode.value
end
end
function update_combat_form()
-- Check Weapontype
if Chango_weapons:contains(player.equipment.main) then
state.CombatForm:set('Chango')
elseif
Rag_weapons:contains(player.equipment.main) then
state.CombatForm:set('Ragnarok')
elseif
Shield_weapons:contains(player.equipment.sub) then
state.CombatForm:set('Blurred')
else
state.CombatForm:reset()
end
end
function job_self_command(cmdParams, eventArgs)
command = cmdParams[1]:lower()
if command=='mainweapon' then
enable('main','sub')
mainswap=1
send_command('gs c cycle mainweapon')
end
end
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- Called by the 'update' self-command, for common needs.
-- Set eventArgs.handled to true if we don't want automatic equipping of gear.
function job_update(cmdParams, eventArgs)
update_combat_form()
end
-- eventArgs is the same one used in job_precast, in case information needs to be persisted.
moonshade_WS = S{"Resolution", "Torcleaver", "Savage Blade"}
function job_post_precast(spell, action, spellMap, eventArgs)
if spell.type == 'WeaponSkill' then
if world.time >= (17*60) or world.time <= (7*60) then
equip({ear1="Lugra Earring +1",ear2="Lugra Earring"})
end
if moonshade_WS:contains(spell.english) and player.tp<2950 then
equip({ear1="Moonshade Earring"})
end
if buffactive['Mighty Strikes'] then
if sets.precast.WS[spell] then
equipSet = sets.precast.WS[spell]
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
else
equipSet = sets.precast.WS
equipSet = set_combine(equipSet,sets.MS_WS)
equip(equipSet)
end
end
end
end
function customize_idle_set(idleSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if player.mpp < 51 then
return set_combine(idleSet, sets.latent_refresh)
end
if state.Buff.Doom or state.Buff.Curse then
return set_combine(idleSet, sets.Doom)
else
return idleSet
end
end
function customize_melee_set(meleeSet)
if mainswap then
mainswap=0
enable('main','sub')
equip(sets.mainweapon[state.mainweapon.value])
disable('main','sub')
end
if state.Buff.Aftermath then
return set_combine(meleeSet, sets.Aftermath)
end
if state.Buff.Doom then
return set_combine(meleeSet, sets.Doom)
end
if state.Buff.Curse then
return set_combine(meleeSet, sets.Curse)
else
return meleeSet
end
end
-- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
-- Default macro set/book
if player.sub_job == 'SAM' then
set_macro_page(1, 7)
elseif player.sub_job == 'NIN' then
set_macro_page(3, 7)
elseif player.sub_job == 'RDM' then
set_macro_page(4, 7)
elseif player.sub_job == 'THF' then
set_macro_page(2, 7)
else
set_macro_page(1, 7)
end
end
What would have been easiest for you would have been to just ctrl+f in the version I posted and replaced Reikiono with Chango since those are both great axes and there would be no need to utilize both.
Necro Bump Detected!
[80 days between previous and next post]
By Archaide 2017-12-03 12:14:17
I'm pretty new to using gearswap I got my ranger one to work perfectly after many rewrites but I cant this one to work at all I keep getting...
....WAR.lua:6: unexpected symbol near '?'
I've tried a number of things but cant get it to work, can someone help me?
By Brynach 2017-12-03 17:22:49
To which gearswap are you referring? If you mean the one I added, check and make sure you didnt accidentally add something there, a mis-type or accidental keystroke. I wrote this one, and it works perfectly fine for me when I load it.
Now, if you are referring to the ones added by Atigevomega, I cant help you there.
Either way, the error is telling you there is something on line 6 that is incorrect.
Necro Bump Detected!
[785 days between previous and next post]
Carbuncle.Tyleron
サーバ: Carbuncle
Game: FFXI
Posts: 163
By Carbuncle.Tyleron 2020-01-27 12:01:02
Sylph.Atigevomega said: »Here is mine, will be updating for Bravura soon Gear isnt updated in this one, will post it for gearswap and what i did for ashita:
GearSwap:
https://pastebin.com/ahztGkt4 - Updated to current sets 9/14/17 also if you need to edit a weapon, Simply change the name, example: Change ALL occurances of Ukonvasara to Chango or whatever you want. Can also add another set if needed easily by adding it at he top with the other weapons format: ("Ragnarok","Ukonvasara","Bravura","Chango") then follow the formatting in Sets.
AshitaCast:
https://pastebin.com/P39qAvee
This is really helpful, but I am a bit lost does your AM for Bravura change your Hybrid and DT sets? There is a comment that it does but I can’t see how.
Also anyone else have a War Lua for Bravura wanted to see different options
Thanks
Anyone have a basic war LUA that supports motes? I dont care about sets , I can always add those. I mainly Care about functions.
|
|