it would be
if player.hpp <= 75 then
or
if player.hpp <= 29 then
this is because <= is less-then/equal to
these are the Comparisons lua can make
< -less then
> -greater then
<= -less then,equal to
>= -greater then,equal to
== -equal to
~= -not equal to
I've recently just started using GearSwap after returning to game from a break. I started running into an issue where I was unable to use the accuracy toggle in Bokura's Gearswap, but I narrowed it down to Ionis and Restraint sets not being handled properly.
If I comment out this section it works just fine, basically ignores ionis buff. Before (with ionis active) it seemed like it was trying to equip the ionis sets, but would only ever do the LowACC set and never the MidACC or HighACC. Everything else is working as intended.
and the same goes for Restraint:Code:if buffactive.Ionis and equipSet["Ionis"] then -- Ionis TP Set -- equipSet = equipSet["Ionis"] end
I've tinkered a little bit, but not really sure how to correct this issue. Does anyone have a suggestion or can point me in the right direction?Code:if buffactive.Restraint and equipSet["Restraint"] then -- Restraint TP Set -- equipSet = equipSet["Restraint"] end
This is a pastebin of the entire thing (with some extras I've added, mostly extra timers): http://pastebin.com/RN9rtKtX
To be honest no idea whats the problem...
Or what do you want to do
the only thing i can see is that equipSet is not defined anywhere and is not a rule thats part of Gearswap as far as i know but im not using the dev version
so i added:
Code:sets.MinstrelRing = {ring2="Minstrel's Ring"} sets.AccursedBelt = {waist="Accursed Belt"}i'm pretty sure customize_fcbarsong_set is wrong, but i'm not sure what that's supposed to actually beCode:function customize_idle_set() if player.hpp <= 75 then idleSet = set_combine(idleSet, sets.MinstrelRing, sets.AccursedBelt) end return idleSet end function customize_fcbardsong_set() if player.hpp <= 75 then sets.precast.FC.BardSong = set_combine(sets.precast.FC.BardSong, sets.MinstrelRing) end return sets.precast.FC.BardSong end
pastebin /khZjcTbt
so your using mote-include i cant understand what hes doing in most of it so you will have to wait for Motenten to come on and help you
also youy can forget what i posted in my last post
Anyone can tell me if this will work? Do I need else or elseif for the overkill command
PHP Code:
function midcast(spell)
if spell.name == "Ranged" then
equip(sets.Midshot[Midshot_Set_Names[Midshot_Index]])
if buffactive.Barrage then
equip(sets.Barrage[Barrage_Set_Names[Barrage_Index]])
elseif buffactive.Overkill then
equip(sets.Overkill[Overkill_Set_Names[Overkill_Index]])
end
end
end
if you dont need any gear from the set sets.Midshot[Midshot_Set_Names[Midshot_Index]]
change it to
but if you do need gear from sets.Midshot[Midshot_Set_Names[Midshot_Index]]Code:if spell.name == "Ranged" then if buffactive.Barrage then equip(sets.Barrage[Barrage_Set_Names[Barrage_Index]]) elseif buffactive.Overkill then equip(sets.Overkill[Overkill_Set_Names[Overkill_Index]]) else equip(sets.Midshot[Midshot_Set_Names[Midshot_Index]]) end end
do this
Code:if spell.name == "Ranged" then if buffactive.Barrage then equip(sets.Midshot[Midshot_Set_Names[Midshot_Index]],sets.Barrage[Barrage_Set_Names[Barrage_Index]]) elseif buffactive.Overkill then equip(sets.Midshot[Midshot_Set_Names[Midshot_Index]],sets.Overkill[Overkill_Set_Names[Overkill_Index]]) else equip(sets.Midshot[Midshot_Set_Names[Midshot_Index]]) end end
Anyone having issues with gearswap? My code isn't swapping gear during certain acts.. or maybe it's just too fast for me to see?
Code:function precast(spell) -- Init an eventArgs that allows cancelling. local eventArgs = {handled = false, cancel = false} if spell.action_type == 'Magic' then equip(sets.precast.FC.Standard) end if spell.english == 'Lunge' then equip(sets.JA.Lunge) end if spell.english == 'Vallation' or spell.english == 'Valiance' then equip(sets.JA.Vallation) end if spell.english == 'Pflug' then equip(sets.JA.Pflug) end if spell.english == 'Gambit' then equip(sets.JA.Gambit) end if spell.english == 'Swordplay' then equip(sets.JA.Swordplay) end if spell.english == 'Resolution' then equip(sets.Resolution[sets.Resolution.index[Resolution_ind]]) end if spell.english == 'Requiescat' then equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]]) end end
Yeah just tried this using add_to_chat(122,'..spell.english..') and I'm not getting text... maybe something glitched XD.. gonna try reloading.
Update:
I sorted it out it was a fuck up on my part.
I created a separate .lua to handle /DNC for waltzes and jigs using the code Motenten made but I tried to be fancy and made a set of precast rules for the waltzes and jigs with in the separate file. It seems the precast function in the file for /DNC overwrote the precast function for my current job.
Double post please remove XD
Anyone ever encountered the problem that GS doesn't equip 2 pieces with the same name correctly? Like this is my PDT set
And when I swap from Hybrid to PDT it does not equip my 2nd Black Earring in my ear2 slot, instead Sanare Earring from my Hybrid set stays in there...PHP Code:
sets.Idle.PDT = {
head="Umbani Cap",
neck="Wiglen Gorget",
ear1="Black Earring",
ear2="Black Earring",
body="Kirin's Osode",
hands="Iuitl Wristbands",
ring1="Dark Ring",
ring2="Dark Ring",
back="Repulse Mantle",
waist="Flume Belt",
legs="Osmium Cuisses",
feet="Iuitl Gaiters"}
To add on to my previous question, is there a way for me to tell Gearswap to check how many song effects I have active and swap in 3song Harp when I have 0~2 active, but use normal instruments if I have 3 active?