Trying to skill up ranged skills; does anyone have an easy way to auto-ranged attack, and make sure it equips ammo/pops a quiver if there isn't any?
Trying to skill up ranged skills; does anyone have an easy way to auto-ranged attack, and make sure it equips ammo/pops a quiver if there isn't any?
for auto ra use the plugin
AutoRA
but you have to fix it by
Open AutoRA.lua
Change lines 58 and 62 from windower.send_command('/shoot <t>') to windower.send_command('input /shoot <t>')
Change line 103 to windower.send_command('@wait 1;input /shoot <t>')
Save the file.
im posting my debug include for anybody that needs it all commands are in the how to at the beginning of the file
http://pastebin.com/Ki8Q4vqP
if you can think of something that it needs please let me know via pm
!Warning! when in Full mode if it runs for to long it will crash FFXI
Can anyone explain when buffactive is evaluated in job_setup()
i.e.
It seems like it would only be initialized once on load (to false), but I gather it's also evaluated at other times?Code:function job_setup() state.Buff.Migawari = buffactive.migawari or false end
Hit Ctrl-F in your text editor, enter Migawari, then hit F3 to continue to find the next reference, so that you can see all the different places where it's modified.
And yes, that particular statement is only evaluated on script load. The point is that when you load (or reload) the lua script, you have no idea whether that buff is active or not, so you need to check for it to give the variable an initial value. After that, modify it whenever you cast the spell or buff_change() is called.
Getting error on line 69. Where is the mistake, can anybody explain?
http://pastebin.com/sRBY4ACU
You wrote "set" instead of "sets", should be:
Code:sets.precast.WS['Exenterator'].Acc = set_combine(sets.precast.WS['Exenterator'], {ammo="Honed Tathlum", waist="Anguinus Belt"})
i was wondering if the information on if your going to do a double shot is sent to the pc and would it be possible to pick up on it before midcast to change out a piece of gear. im thinking its not sent but i dont know for sure so ill ask
If the aiming animation is different then you can. Otherwise it is pretty unlikely. I do not play RNG so I don't know.
Ok the file is fine now, no syntax errors as it gets loaded.
Overall it works but I've found 3 errors
http://pastebin.com/ns5K1GEC
- Line 180, something is wrong there. When I use Saber Dance and then I engage, he fails in that line and gives me an error
- I'm clearly attempting to do something that's not possible to do in lines 216, 218 and 220. I was just trying to change the current WSmode and link this change to the TPset change (which works, instead)
- In the Precast rules, on the weaponskill part, it works perfectly and gives me no error, but the If about Climatic Flourish does not seem to be working.
Can anybody help me see how to fix these?
Edit:
Fixed part 3. I called the JA "Climatic Flourish" all through the Lua instead of "ClimaCtic Flourish".
for #1
you have this set.precast['Saber Dance']
but it should be sets.precast['Saber Dance']
this also exists on line 168
For #2 try this but i think the main issue is that user_setup() is never called in the lua you posted and its not something that gear swap normally activates
Code:if command == 'toggle TP set' then TP_ind = TP_ind +1 if TP_ind > 5 then TP_ind = 1 if TP_ind == 2 then state.WeaponskillMode = 'Acc' elseif TP_ind == 3 then state.WeaponskillMode = 'Mod' else state.WeaponskillMode = 'Normal' end end send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->') equip(sets.TP[sets.TP.index[TP_ind]]) end
I'm really good at seeing those missing "s", am I not?!
Fixed 1, thanks.
#2 doesn't give me the line error anymore, but I see an "unknown command" error in the chatbox.
Indeed, the WS set remains the same and doesn't change.
Does this mean that "state.WeaponskillMode = 'Mod'" is not a valid command, in that place?
Also, the way you've coded it, wouldn't GS get to the line "if TP_ind == 2 then" only when the previous condition (if TP_ind > 5 then) is true?
Because if that is so, then that if will always be false, because when TP_ind is > 5 of course it will never be == 2.
Another small thing. My Utsusemi precast set wasn't working. I thought "Utsusemi" was a valid GS category? Of course it works if I rename the precast set from sets.precast.Utsusemi to sets.precast.Ninjutsu
dang my mind is bad today
this was what i wanted to post
also you can just put these lines in to your function get_sets()Code:if command == 'toggle TP set' then TP_ind = TP_ind +1 if TP_ind > 5 then TP_ind = 1 elseif TP_ind == 2 then state.WeaponskillMode = 'Acc' elseif TP_ind == 3 then state.WeaponskillMode = 'Mod' else state.WeaponskillMode = 'Normal' end send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->') equip(sets.TP[sets.TP.index[TP_ind]]) end
Code:options.WeaponskillModes = {'Normal', 'Acc', 'Mod'} state.WeaponskillMode = 'Normal'