Code:
--------------------------------------------
--by matix
--matix_thf.lua
--goes with version 1.0.x of "suitMeUpScotty"
require( "plugins/suitMeUpScotty/scottysLittle_Helper" );
--always require scottysLittle_Helper file!
--gear used within is purely for example,
--do not simply plug this file in and expect to play THF.
--you MUST modify sets to match your gea, and possibly create
--additional rules for other job abilities or weaponskills.
idle =
{
[SLOT_HEAD] = "Pyracmon Cap",
[SLOT_BODY] = "Thaumas Coat",
[SLOT_HANDS] = "Thaumas Gloves",
[SLOT_LEGS] = "Thaumas Kecks",
[SLOT_FEET] = "Fajin Boots",
[SLOT_NECK] = "Twilight Torque",
[SLOT_WAIST] = "Twilight Belt",
[SLOT_EARLEFT] = "Brutal Earring",
[SLOT_EARRIGHT] = "Suppanomimi",
[SLOT_RINGLEFT] = "Shadow Ring",
[SLOT_RINGRIGHT] = "Rajas Ring",
[SLOT_BACK] = "Shadow Mantle",
};
AddGearset('idle', idle );
tp =
{
[SLOT_HEAD] = "Raid. Bonnet +2",
[SLOT_BODY] = "Thaumas Coat",
[SLOT_HANDS] = "Thaumas Gloves",
[SLOT_LEGS] = "Thaumas Kecks",
[SLOT_FEET] = "Thaumas Nails",
[SLOT_NECK] = "Nefarious Collar",
[SLOT_WAIST] = "Twilight Belt",
[SLOT_EARLEFT] = "Brutal Earring",
[SLOT_EARRIGHT] = "Suppanomimi",
[SLOT_RINGLEFT] = "Epona's Ring",
[SLOT_RINGRIGHT] = "Rajas Ring",
[SLOT_BACK] = "Atheling Mantle",
};
AddGearset( 'tp', tp );
ws =
{
[SLOT_HEAD] = "Thaumas Hat",
[SLOT_BODY] = "Tessera Saio",
[SLOT_HANDS] = "Thaumas Gloves",
[SLOT_LEGS] = "Thaumas Kecks",
[SLOT_FEET] = "Thaumas Nails",
[SLOT_NECK] = "Breeze Gorget",
[SLOT_WAIST] = "Breeze Belt",
[SLOT_EARLEFT] = "Brutal Earring",
[SLOT_EARRIGHT] = "Vulcan's Pearl",
[SLOT_RINGLEFT] = "Epona's Ring",
[SLOT_RINGRIGHT] = "Rajas Ring",
[SLOT_BACK] = "Atheling Mantle",
};
AddGearset('ws', ws);
EvisWS =
{
[SLOT_HEAD] = "Thaumas Hat",
[SLOT_BODY] = "Tessera Saio",
[SLOT_HANDS] = "Thaumas Gloves",
[SLOT_LEGS] = "Thaumas Kecks",
[SLOT_FEET] = "Thaumas Nails",
[SLOT_NECK] = "Breeze Gorget",
[SLOT_WAIST] = "Breeze Belt",
[SLOT_EARLEFT] = "Brutal Earring",
[SLOT_EARRIGHT] = "Auster's Pearl",
[SLOT_RINGLEFT] = "Epona's Ring",
[SLOT_RINGRIGHT] = "Rajas Ring",
[SLOT_BACK] = "Atheling Mantle",
};
AddGearset('evis', EvisWS);
THF_SA =
{
[SLOT_HEAD] = "Thaumas Hat",
[SLOT_BODY] = "Tessera Saio",
[SLOT_HANDS] = "Thaumas Gloves",
[SLOT_LEGS] = "Thaumas Kecks",
[SLOT_FEET] = "Thaumas Nails",
[SLOT_NECK] = "Ire Torque +1",
[SLOT_WAIST] = "Wanion Belt",
[SLOT_EARLEFT] = "Brutal Earring",
[SLOT_EARRIGHT] = "Suppanomimi",
[SLOT_RINGLEFT] = "Epona's Ring",
[SLOT_RINGRIGHT] = "Rajas Ring",
[SLOT_BACK] = "Atheling Mantle",
};
AddGearset('sa', THF_SA);
THF_TA =
{
[SLOT_HEAD] = "Thaumas Hat",
[SLOT_BODY] = "Tessera Saio",
[SLOT_HANDS] = "Thaumas Gloves",
[SLOT_LEGS] = "Thaumas Kecks",
[SLOT_FEET] = "Thaumas Nails",
[SLOT_NECK] = "Houyi's Gorget",
[SLOT_WAIST] = "Elanid Belt",
[SLOT_EARLEFT] = "Brutal Earring",
[SLOT_EARRIGHT] = "Suppanomimi",
[SLOT_RINGLEFT] = "Epona's Ring",
[SLOT_RINGRIGHT] = "Rajas Ring",
[SLOT_BACK] = "Atheling Mantle",
};
AddGearset('ta', THF_TA);
pre_utsu =
{
[SLOT_HEAD] = "Raid. Bonnet +2",
[SLOT_BODY] = "Thaumas Coat",
[SLOT_HANDS] = "Thaumas Gloves",
[SLOT_LEGS] = "Thaumas Kecks",
[SLOT_FEET] = "Wurrukatte Boots",
[SLOT_NECK] = "Twilight Torque",
[SLOT_WAIST] = "Twilight Belt",
[SLOT_RINGLEFT] = "Shadow Ring",
[SLOT_BACK] = "Shadow Mantle",
};
AddGearset('putsu', pre_utsu);
mid_utsu =
{
[SLOT_NECK] = "Magoraga Beads",
[SLOT_EARLEFT] = "Loquac. Earring",
};
AddGearset('utsu', mid_utsu);
pdt =
{
[SLOT_NECK] = "Twilight Torque",
[SLOT_RINGLEFT] = "Shadow Ring",
[SLOT_RINGRIGHT] = "Jelly Ring",
[SLOT_BACK] = "Shadow Mantle",
};
AddGearset('pdt', pdt);
mdt =
{
[SLOT_NECK] = "Twilight Torque",
[SLOT_RINGLEFT] = "Shadow Ring",
[SLOT_BACK] = "Shadow Mantle",
};
AddGearset('mdt', mdt);
----------------------------------------------------------------------------
--these are custom vars, you can make thme as needed
WS_POSTDELAY = 2.0; --delay used for how long after ws'ing before reparsing tpGearChanges
RA_MIDDELAY = 2.0; --2.5 working for me --delay for equipping mid /ra gear
RA_POSTDELAY = 1.5; --delay from when midcast is procssed onward, its procsses its value(seconds) after ra_middelay(seconds) have elapsed
--you need the above 3 entries
function updateAliases()
--this is an optional section, but do not remove the function itself
--leave the function empty similar to how healGearAdjust is left empty(only comments inside)
--these are for your /scotty set <blah> aliases, they will
--need to be updated if your playstyle still revolves around
--doing /scotty set <gearset>; you can make make it easier on
--yourself and re-direct which gear the 'tp' alias equips.
if (isBuffActive('Sneak Attack')) then
UpdateGearset( 'tp', THF_SA ); --updates /scotty set 'tp' set
elseif (isBuffActive('Trick Attack')) then
UpdateGearset( 'tp', THF_TA );--updates /scotty set 'tp' set
else
UpdateGearset( 'tp', tp );
end
end
function healGearAdjust()
--adjust rules for healing with certain area/buff/region/situation specific hMP/hHP hear
--equipSet( hMP );
end
function idleGearAdjust()
--could add an if rule for town vs outside/dungeon/battlefield
--or some type of if target = tiacat(mrawr), idle in fire resist, or w/e..
equipSet( idle );
end
function statusGearAdjust()
--a function for custom status rules such as Event, Chocobo, Fishing, Synthing, Dead.
--for statuses such as: idle, fighting, healing, use the premade functions.
--triggers upon a status or buff change.
end
function tpGearAdjust() --! called when your status is triggered as 'Fighting', or when you gain/lose buffs and your status is fighting or etc..
-- ja's that will modify tp set(or next hit etc...)--
if (isBuffActive('Sneak Attack')) then
equipSet( THF_SA );
return true;
end
if (isBuffActive('Trick Attack')) then
equipSet( THF_TA );
return true;
end
if (isBuffActive('Feint')) then
equipSet( feint );
return true;
end
-- your default tp set --
equipSet( tp );
return true;
end
function jaGearAdjust(jaName) --! changes gearsets for when performing instant activation JA's; make rules within around jaNames and targetNames
if (jaName == 'Steal') then
equipSet( THF_Steal );
return true;
else
return false;
end
end
function wsGearAdjust(wsName) --! this is where you set ws gearset rules, based on the ws and the target or anytihng in between~
if (wsName == 'Evisceration') then --lets pretend shoha, and that you just used rana
equipSet( EvisWS ); --nonstacked evis ws main/default
return true;
end
equipSet( ws ); --non-defined ws default set
return true;
end
function maGearAdjust( spellName ) --? adjust gearset right before you cast(precast) based on rules within(spellname/target name)
local spell = AshitaCore:GetResources():GetSpellByName( spellName )
if (magicSkillType(spell.Skill) == 'Ninjutsu') then --ninja
if (string.Contains(spell.Name, 'Utsusemi')) then
equipSet( pre_utsu );
return true;
end
end
return true;
end
function midMaGearAdjust( spellName ) --? adjusts gearsets based on rules within; occurs at 50% of a spells native casting time
local spell = AshitaCore:GetResources():GetSpellByName( spellName )
if (magicSkillType(spell.Skill) == 'Ninjutsu') then --ninja
if (string.Contains(spell.Name, 'Utsusemi')) then
equipSet( mid_utsu );
return true;
end
end
return true;
end
function raGearAdjust() --? adjust's /ra gear; snapshot gear/aiming phase
--equipSet( someRangedSnapshotSetYouMakeUp );
return true;
end
function midRaGearAdjust() --X e custom attribute(equips x-hit/dmg gear beore shot lands)
--equipSet( someRangedSetYouMakeUp );
return true;
end