Asura.Lunafreya said: »
My NIN lua is acting very odd.
Change default_spell_map to spellMap.
Code
if spellMap == 'ElementalNinjutsu' then
Gearswap Support Thread |
||
Gearswap Support Thread
Asura.Lunafreya said: » My NIN lua is acting very odd. Change default_spell_map to spellMap. Code if spellMap == 'ElementalNinjutsu' then *face palm*
It's always the most obvious thing. Thanks ari. Asura.Lunafreya said: » *face palm* It's always the most obvious thing. Thanks ari. It's actually my fault. I think that code snippet is from my NIN lua, which had the incorrect spellmap call too. A user actually alerted me a few weeks ago about it, but I was too lazy to push the fix. Asura.Mavre
Offline
Probably something easy that I am just missing, but for some reason I cannot get my gearswap to work at all. I have been away for several months and had to redownload the game on a new computer, but i was able to save and bring over all of my old luas that worked previously. However, I cannot get anything to happen when I am on the game. Any idea what I might be missing? (if so spell it out slowly for me, I'm in no way computer savvy)
Asura.Mavre said: » Probably something easy that I am just missing, but for some reason I cannot get my gearswap to work at all. I have been away for several months and had to redownload the game on a new computer, but i was able to save and bring over all of my old luas that worked previously. However, I cannot get anything to happen when I am on the game. Any idea what I might be missing? (if so spell it out slowly for me, I'm in no way computer savvy) Asura.Mavre
Offline
Disregard, windower discord got it figured out for me.
Offline
Posts: 233
Is there a way to add notes to chat upon loading a job lua?
As a sort of reminder of the functions of the lua if havent played the job in a while. You can add something like this under the section for macro books, for example:
Code function select_default_macro_book() add_to_chat(156,'Testing 1,2,3') <--- -- Default macro set/book if player.sub_job == 'DNC' then set_macro_page(1, 12) elseif player.sub_job == 'NIN' then set_macro_page(1, 12) elseif player.sub_job == 'THF' then set_macro_page(1, 13) elseif player.sub_job == 'RUN' then set_macro_page(1, 13) else set_macro_page(1, 13) end end Code add_to_chat(156,'Testing 1,2,3') Offline
Posts: 233
sweet thank you, will try it out
Hey All,
I'm trying to add an auto-recast for Migawari on my NIN lua while I'm tanking, it's working fine however it will only try recasting migawari once. So if I'm doing an other action at that moment it will cancel the migawari casting and I'll have to put it back up myself. What would be the most elegant solution to add a sort of loop trying to recast migawari constantly until the buff is actually up ? at the moment this is the function : Code function job_buff_change(buff, gain, eventArgs) if buff == "Migawari" and not gain then add_to_chat(61, "*** MIGAWARI DOWN ***") end if buff == "Migawari" and not gain and player.hp > 0 and not areas.Cities:contains(world.area) and state.AutoMigawari.current == 'on' then send_command('wait 4; input /ma "Migawari: Ichi" <me>') end Hello,
I'm using Selindrile's gearswap and i was wondering if anyone had a function or whatever to automatically equip Domain Invasion gear while the evorseal buff is active ? I Recently returned to the game and I am working on my THF LUA (new to LUA as well). What I'm trying to do is have my TH gear equipped while engaged when a variable is set to 1 otherwise, it'll equip my regular tp set.
It will not load the TH gear, and there are no errors when the file loads nor is showswaps showing the th gear being equipped. Any help is appreciated, thanks in advance! Code is based on an example I saw in another thread. Code th_set_on = 0 function job_self_command(cmdParams, eventArgs) if cmdParams[1]:lower() =="toggle_th" then th_set_on = cmdParams[2] end end function equip_engaged() if th_set_on == 1 then equip(set_combine(sets.tp.norm,sets.tp.th)) else equip(sets.tp.norm) end end Offline
Posts: 209
Hello, been a while since I played and I'm relearning my luafu. I'm having an issue with my blu lua, specifically with certain keybinds not switching when I change jobs. The keybind I'm having issues with is my 'y', and my 'u' it seems, keys.
Basically I have this key setup to cast barrier tusk, but when I'm on /rdm I have it set to cast phalanx instead. The issue here though is it won't cast phalanx unless I reload the lua for some reason, it will continue to try to cast barrier tusk unless I reload the lua, as well as with my 'u' key it will try to do the same with diamond hide instead of casting stoneskin. I was fairly sure I had the right code there but maybe I'm missing something? I'll post my whole keybind section just in case. If there are any other noticeable conflicts in the code there other than whatever is causing this problem, I'd be happy if someone could point those out too. Thanks Offline
Posts: 373
You are binding keys without unbinding them first, which is probably the issue.
Just unbind the shared bind keys first in the RDM if\then area. Offline
Posts: 209
drakefs said: » You are binding keys without unbinding them first, which is probably the issue. Just unbind the shared bind keys first in the RDM if\then area. Offline
Posts: 373
Zyla said: » I assume I would put the unbind commands before the bind commands correct? Or do I need some qualifier to make sure they take effect before the /rdm binds activate? Should work. If not just copy the shared bind keys for BLU to the other job elseif areas. Then remove the shared BLU binds from the pre-if area. Offline
Posts: 209
drakefs said: » Zyla said: » I assume I would put the unbind commands before the bind commands correct? Or do I need some qualifier to make sure they take effect before the /rdm binds activate? Should work. If not just copy the shared bind keys for BLU to the other job elseif areas. Then remove the shared BLU binds from the pre-if area. Hello so im new to lua other then just poppen in and out gear names so i figured i would try and write my own simply brd lua and i keep getting a /brd.lua:67: attemmpt to index field 'midcast' (a nil value). any help would be greatly appreceated.
https://pastebin.com/sB4GBuZ4 Offline
Posts: 8843
Asura.Bloodkitten said: » Hello so im new to lua other then just poppen in and out gear names so i figured i would try and write my own simply brd lua and i keep getting a /brd.lua:67: attemmpt to index field 'midcast' (a nil value). any help would be greatly appreceated. https://pastebin.com/sB4GBuZ4 set.midcast.enhancingduration should be sets. ok can you layman's terms it for me im kinda retared
nevermind i get ya, thanks im tired af and was just trying to get this lil thing working befor bed thanks for the good eyes Offline
Posts: 233
Is there a way to have gearswap change macro set/book based on whether you are engaged or not?
cuddlyhamster said: » Is there a way to have gearswap change macro set/book based on whether you are engaged or not? Offline
Posts: 233
Code function status_change(newStatus, oldStatus) if newStatus == 'Engaged' then set_macro_page(1, 4) else set_macro_page(1, 1) end end Digging through mote include and older luas, this is what i could come up with, but wont work. Try using job_status_change instead - if that doesn't work, post your whole file.
Offline
Posts: 233
Bismarck.Xurion said: » Try using job_status_change instead - if that doesn't work, post your whole file.
Necro Bump Detected!
[32 days between previous and next post]
Bahamut.Jackflashh
Offline
Can I get some help amending a rule in my Drk lua. I currently have a setting that uses a souleater mode, which checks to see if the mode is active, and after a ws, auto cancel SE so I don't kill myself with autos. But I'd like to add a % health rule to it, so that it stays up if my hp is above a certain %, but if below, it still auto cancels. Here's the original code if someone all knowing can add to it por favor.
Code function job_post_aftercast(spell, action, spellMap, eventArgs) if spell.type == 'WeaponSkill' then if state.Buff.Souleater and state.SouleaterMode.value then send_command('@wait 1.0;cancel souleater') end end end Bahamut.Jackflashh said: » Can I get some help amending a rule in my Drk lua. I currently have a setting that uses a souleater mode, which checks to see if the mode is active, and after a ws, auto cancel SE so I don't kill myself with autos. But I'd like to add a % health rule to it, so that it stays up if my hp is above a certain %, but if below, it still auto cancels. Here's the original code if someone all knowing can add to it por favor. Code function job_post_aftercast(spell, action, spellMap, eventArgs) if spell.type == 'WeaponSkill' then if state.Buff.Souleater and state.SouleaterMode.value then send_command('@wait 1.0;cancel souleater') end end end Code function job_post_aftercast(spell, action, spellMap, eventArgs) if spell.type == 'WeaponSkill' then if state.Buff.Souleater and state.SouleaterMode.value and player.hpp < 80 then send_command('@wait 1.0;cancel souleater') end end end Obviously change the 80 to whatever percentage you want. Offline
Posts: 8
So I'm using Arislan's COR.lua:
https://github.com/ArislanShiva/luas/blob/master/Arislan-COR.lua Everything is going well, but for some reason now my alt + numpad keys are bound to WHM na spells and sacrifice. This persists even after unloading gearswap. They're definitely not on my macro bars either. I've done a folder wide search of my Windower folder via VSCode but can find no incidence in the code of these spells being bound to the keys (even in the include luas). Seems kind of weird, any help would be appreciated ^^ you loaded his global bind file that has that setup. https://github.com/ArislanShiva/luas/blob/master/Global-Binds.lua
|
||
All FFXI content and images © 2002-2024 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|