Are you using these items via the menu, or through a chat cmd/macro?(i.e /item "Hatchet" <t> etc)
When you use an item through the menu, it doesn't even trigger a precast/midcast/etc. If you want gearswap to react at all it has to be via cmd.
Are you using these items via the menu, or through a chat cmd/macro?(i.e /item "Hatchet" <t> etc)
When you use an item through the menu, it doesn't even trigger a precast/midcast/etc. If you want gearswap to react at all it has to be via cmd.
I've been using chat to trade the item. No dice still. I'm not sure where I'm supposed to place the print(spell.english).
So, I tried pasting your code into one of my lua, and it swaps gear just fine on a chat triggered hachet use.... but then it doesn't use the hachet. <,<;; Disabling or unloading GS makes the hachet go off, so it's def GS..
So your code is def valid, but I can't say why it's not working for you. Or why my items don't fire. I have item based rules in other lua, like for food duration timers or equipping STP gear on icarus wing use, and those all wok fine. No idea why this doesn't...
Itemizer
Unloading Itemizer does not prevent the issue. Unloading gearswap(whether itemizer is loaded or not) does. So I don't see how the issue can be itemizer.
EDIT: On the off chance that something in my lua was somehow interfering, I loaded a blank lua, and tried again. With the same results.
I downloaded itemizer and my gear is neither swapping nor cancelling invisible, but trading is just fine.
I'm using Mote's COR lua, and while it has something to use for Triple Shot JA and AF3 119 body, it's only during activation and doesn't change any sets. I'd like to get it to change my ranged engaged set to have the AF3 119 body equipped while Triple Shot is up.
Here's my current COR.lua, right now I'm just fulltiming AF3 119 body in my Ranged set but I'd like to use my 119 Relic for Rapid Shot/Recycle.
http://pastebin.com/cTQeq632
While I finally managed to solve the Genbu's Shield issue I mentioned yesterday, I noticed the same issue happening with grips. Here is what happens in a short list:
- I precast with Marin Staff +1 and Vivid Strap
- Midcast sets don't have any main or sub selected (main/sub fields missing) yet the result is that I midcast with Marin Staf +1 and no grip
- I tried to put Marin Staff +1 and Vivid Strap in my midcast sets, but result is the same
Here are some of my sets as an example:
Spoiler: show
If I cast animus minuo, storm spells or basically any other buff, I get the no grip behaviour.
Same for Stoneskin.
If I cast phalanx it works correctly.
If I cast regen the staff swaps correctly, but the sub slot remains empty.
This is a strange behaviour... in theory if I precast on item X for slot Y and I don't specify anything in midcast for slot Y, then the item X should remain there. It seems Gearswap now defaults "empty" for some reason if you don't specify anything.
I'm pretty confident things must have been changed at some point because it didn't use to work like this when I started using Gearswap.
GearSwap hasn't had a substantial change in months, so it didn't recently change. Are you using showswaps?
Edit:
see post below
I started using Gearswap much longer than that though, this change could've happened anytime. I remember doublechecking everything when I started, but I haven't been doing it again for a long time, assuming everything was still working the same as before.
Anyway, here's a showswaps/debugmode screenshot when I attempted to cast the "Haste" spell on my SCH.
Precast set used is the one listed in my previous post.
Midcast set used is the sets.midcast.recast one in the same list.
http://s3.postimg.org/pajjwuagf/gearswap.jpg
I'm still working through HELM issues. I'm currently using:
if string.find(spell.english,'Hatchet') or string.find(spell.english,'Pickaxe') or string.find(spell.english,'Sickle') then
if buffactive.invisible then
send_command('cancel Invisible')
end
equip(sets.HELM)
end
When I use /item "Pickaxe" <t> my invisible will cancel, and my gear will swap, but the interaction with the mining point and the item never occurs. When I use /item "Trailblazing Pickaxe +1" <t>, gearswap doesn't interpret it as a spell, invisible doesn't cancel, my gear doesn't swap, and interaction does occur with the mining point.
If anybody has a clue what's going on I'd like to hear it.
It's like GS for some reason, when the weapon in the main slot doesn't change, unequips the grip.
It doesn't make sense.
One thing I forgot to add is that whenever the "no grip" thing happens, I get the in-game error message "You must have a two-handed weapon equipped in the main weapon slot in order to equip a grip."
Which makes no sense. I have no way to tell in which stage this error occurs (likely midcast?) but the weapon should be already there from the precast.
Edit
Think I might have found the culprit.
Removed {main={name="Marin Staff +1",priority=1}, sub={name="Vivid Strap",priority=2}, from my precast and transformed it into {main="Marin Staff +1", sub="Vivid Strap",
was there something wrong in my syntax?
I was told that the lower the number the highest the priority. Is it the other way around?
Yeah, higher priority slots get switched first.
Ladies & Gentleman, we found our culprit then
Swapping numbers in precast or simply removing priority for grip did the job.
Oh wow I did not know about this priority stuff. So we can use that in order to swap between dual wielding and shields, or shields and staffs and such... hmmmm. I was going to use marin staff for my bard when doin debuffs but I already knew it would be a dick ache to try and deal with switchin from dagger/shield to staff/(maybe grip) so I had changed my mind. So maybe now I will give it a shot!
I've never seen it but can you use an "endswith" thing in Gearswap? With a syntax similar to Startswith?
I've been using Startswith in several Luas, was wondering if an opposite "Endswith" exists at all or not.
Yea you can. This is a line from one of my older Geo.luas. I thought I used it more but this was the only one I could find. It was for ParalyNA type spells. I eventually just started usin spell maps instead for this.
Code:elseif spell.name:endswith('na') then equip(sets.Heal[Weapon_Sets[Weapon_Index]])