I write this topic was important as an archive for all the
gearswap code.
this first secret code gs
code version v1.1 PDL - Auto PDL WS (Auto PDL WS)
author kastra and modification. author (Aragan@Asura)
I will share my code version v1.1 after SE updating and add the PDL (Physical Damage Limit+) (attack cap) to game .. no one long time can make code for pdl and this code add by author kastra and modification. (Aragan@Asura) and i share more codes later and i see this code important add in all gearswap becuz on past when start gearswap game not add PDL .
We used in past manually from weaponskillmode normal to PDL.
But now with this code, is automatic if the attack up 5,000 or any limit or value you specifyadd and if attack low that 5000 its auto return normal weaponskillmode
--its auto change weaponskillmode for PDL if attack up 5k and return to normal if low 5k
-- used it in global for all job
Code
attack2 = 5000 -- This LUA will equip "high buff" WS sets if the attack value of your TP set (or idle set if WSing from idle) is higher than this value
Code
function job_post_precast(spell) if spell.type == 'WeaponSkill' and state.WeaponskillMode.value == 'SubtleBlow' then equip(sets.precast.WS.SubtleBlow) end attack = player.attack -- auto equip to PDL ws set - code add by kastra,modi.(Aragan@Asura) if spell.type == 'WeaponSkill' then if state.WeaponskillMode.value == 'SubtleBlow' and (attack > attack2 or attack < attack2) then equip(sets.precast.WS.SubtleBlow) elseif state.WeaponskillMode.value == 'Proc' then equip(sets.precast.WS[spell.name].Proc) elseif attack > attack2 then equip(sets.precast.WS[spell.name].PDL) end end end
u need make add in all weaponskill normal and PDL like this code savage blade
Code
function init_gear_sets() sets.precast.WS['Savage Blade'] sets.precast.WS['Savage Blade'].PDL
if u want used for sepcial job u can add in job.lua gear like any number need and work alone not with value global
Code
function job_setup() attack2 = 4000
if u want add subtle below mode in weaponskill add this code combine all weaponskill and equip togather in job.lua gear
Code
function user_job_setup() state.WeaponskillMode:options('SubtleBlow','PDL','Proc') end function init_gear_sets() sets.precast.WS.SubtleBlow = { left_ring="Chirich Ring +1", right_ring="Chirich Ring +1", }
Note: Future idea for addition gs code version v1.2 :idea make calc (pdif)code or function get nm info from other addon like debuffed or targetbar if nm have dia 25% def dow mean attack up1000 point and if nm get shell crusher 25% def down and mean attack up 1000 point
And switch PDL WSMODE
for help u can ask here
https://discord.gg/RUBknQ52JZ