I have a quick question. since i been messing around with gearswap lately, i have made one on my own and the problem i have is that my toggle macro that switches from my DD set to my full acc set, it doesnt fire off immediately. Is there something im missing in my code to make it change ASAP? is there something i can add to my code or any code to make it change right when i want to?
Same here except for my Healing Magic. I just want to cast Cure 1/2 on myself, I don't see why I have to cast high-MP spells like Reraise 3 and Curaga 5 to skillup lol.
When I edit the {Healing Spells = "..."} field to just have Cure 1 and 2 and run the Skillup script, I am getting an error, will have to get back to you later today with the exact message. It casts Cure 1 and 2 and then errors out.
for blu magic all it should only try to cast spells that you have set
for healing skillup there are 3+ other lines that need to be changed
after you edit the spell list
you need to find any line that has
healingcount < 25
and change it to
healingcount < (put how many spells you are using here)
and the reason i have all possible spells in the default list is some people might want them
Will a function with world.weather_element check for scholar storm spells and give them priority or does it only check the current zone weather?
Thanks for the reply dlsmd. There's no error, after starting gs c startblue, it casts pollen once and then no more. So it's working but it's only casting the spell once.
Never mind, weather poped up where i am, answer is yes.
Whats the best way to make this automatic if theirs any change in weather, whether its gain/loss of a storm spell or zone weather change? I'm looking to add it to Mote's SCH lua file, i already have it under job update but i have to update manually still every time theirs a change, really prefer it to be automatic.
Code:if world.weather_element ~= 'None' then if world.weather_element == 'Earth' then send_command('alias g510_m1g13 input /ma "Stone" <t>;') send_command('alias g510_m1g14 input /ma "Stone II" <t>;') send_command('alias g510_m1g15 input /ma "Geohelix" <t>;') elseif world.weather_element == 'Water' then send_command('alias g510_m1g13 input /ma "Water" <t>;') send_command('alias g510_m1g14 input /ma "Water II" <t>;') send_command('alias g510_m1g15 input /ma "Hydrohelix" <t>;') elseif world.weather_element == 'Wind' then send_command('alias g510_m1g13 input /ma "Aero" <t>;') send_command('alias g510_m1g14 input /ma "Aero II" <t>;') send_command('alias g510_m1g15 input /ma "Anemohelix" <t>;') elseif world.weather_element == 'Fire' then send_command('alias g510_m1g13 input /ma "Fire" <t>;') send_command('alias g510_m1g14 input /ma "Fire II" <t>;') send_command('alias g510_m1g15 input /ma "Pyrohelix" <t>;') elseif world.weather_element == 'Ice' then send_command('alias g510_m1g13 input /ma "Blizzard" <t>;') send_command('alias g510_m1g14 input /ma "Blizzard II" <t>;') send_command('alias g510_m1g15 input /ma "Cryohelix" <t>;') elseif world.weather_element == 'Lightning' then send_command('alias g510_m1g13 input /ma "Thunder" <t>;') send_command('alias g510_m1g14 input /ma "Thunder II" <t>;') send_command('alias g510_m1g15 input /ma "Ionohelix" <t>;') elseif world.weather_element == 'Dark' then send_command('alias g510_m1g13 input /ma "Aspir II" <t>;') send_command('alias g510_m1g14 input /ma "Drain" <t>;') send_command('alias g510_m1g15 input /ma "Noctohelix" <t>;') elseif world.weather_element == 'Light' then send_command('alias g510_m1g15 input /ma "Luminohelix" <t>;') end end
Worked perfect, thank you!
Edit: Also, I'm not sure if my precast/midcast sets are performing properly. If I check my equipment menu while typing a macro for a Cure spell, I can see it swap from my Idle set, to my Midcast set, and back to Idle. I never see the precast set, but it does seem to be casting very fast. Does the precast set swap in so fast just for the start of the spell that I don't even see it, or could all my Fast Cast be messing up the timing?
A few pages back I had asked something similar about just cycling cure 1 & 2 but my post was buried. I'm trying to figure out how to get the skillup lua to cycle C1 & C2 on a target(skeletons).
I've deleted all spells but the two cures and changed all the healing counts < as well as all instances of <me> to <t> but I'm encountering an error...
GearSwap: Lua error (runtime) - ...gram Files (x86)/Windower4//addons/gearswap/flow.lua:288:
GearSwap has detected an error in the user function self_command:
...es (x86)\Windower4\/addons/gearswap/data/skillup.lua:557: attempt to concatenate field '?' (a nil value)
any ideas what I am missing?
sorry try the latest one
downloaded the 1 from the gearswap shop thread here 2 days ago. It would change the lines if i had deleted all the healing magic you had coded?
for some reason i did not upload the latest version redownload and try again
also this one is fully modified to only use cure and cure 2 (this file will self destruct in 1 hr)
http://pastebin.com/HJnT0awX
and this tool will not cast on a mob only your char
downloaded the file again its different for sure, must have been an older file for sure. Have to head back to work though I'll mess with it again when I get home.
Edit1: Should just be a matter of deleting the other spells and changing healingcount and <me> though?
Edit2: Awesome man thanks so much, is it possible to get it to cast on mobs or would gearswap need to be updated?
Code:function user_setup() send_command('alias g510_m1g13 gs c t1') send_command('alias g510_m1g14 gs c t2') send_command('alias g510_m1g15 gs c helix') g5_spells = {} g5_spells.t1 = {['Fire']='Fire', ['Ice']='Blizzard', ['Wind']='Aero', ['Earth']='Stone', ['Lightning']='Thunder', ['Water']='Water', ['Dark']='Aspir II'} g5_spells.t2 = {['Fire']='Fire II', ['Ice']='Blizzard II', ['Wind']='Aero II', ['Earth']='Stone II', ['Lightning']='Thunder II', ['Water']='Water II', ['Dark']='Drain'} g5_spells.helix = {['Fire']='Pyrohelix', ['Ice']='Cryohelix', ['Wind']='Anemohelix', ['Earth']='Geohelix', ['Lightning']='Ionohelix', ['Water']='Hydrohelix', ['Dark']='Noctohelix', ['Light']='Luminohelix'} end function job_self_command(commandArgs, eventArgs) if g5_spells[commandArgs[1]] then if g5_spells[commandArgs[1]][world.weather_element] then send_command('input /ma "' .. g5_spells[commandArgs[1]][world.weather_element] .. '" <t>') end end end
Modifying the core handling of user commands to allow for reversed cycling is pretty trivial. It's like 5 extra lines. So, the next update push should allow you to do something like:
gs c cycle OffenseMode reverse
(where 'reverse' can be any of 'reverse', 'r', or 'backwards') to cycle backwards through a mode list.
Thank you sir!
Hello,
I recently came back from a break and am new to GearSwap. I'm starting out very basic just to understand how the LUA code works. I have read over some of the documentation but not understanding it 100% so wanted to see if someone can point out my mistakes atm.
When I cast any of the spells it goes directly to the midcast sets and then to the aftercast. I can't figure out why it's not using the precast, I'm sure its simple but... any help is appreciated. Thank You
I have tried the
if.spell.skill=='Singing'
also
if.spell.type=='BardSong'
Code:function get_sets() sets.precast={} sets.precast.Song={body="Praeco Doublet"} sets.midcast={} sets.midcast.Mazurka={body="Gendewitha Bliaut"} sets.midcast.Ballad={body="Chelona Blazer"} sets.midcast.Base={body="Aoidos' Hongreline +2"} sets.aftercast={} sets.aftercast.idle={body="Federation Aketon"} end function precast(spell) if spell.type == 'BardSong' then equip(sets.precast.Song) end end function midcast(spell) if string.find(spell.english,'Mazurka') then equip(sets.midcast.Mazurka) elseif string.find(spell.english,'Ballad') then equip(sets.midcast.Ballad) else equip(sets.midcast.Base) end end function aftercast(spell) equip(sets.aftercast.idle) end
Nevermind.. It's swapping I'm just not used to it swapping so fast that I don't see it.
yah there are only 2 way to tell if your gear has changed thats to have your equipment window open or to enable show swaps with gs show_swaps
the former is more accurate