|
Gearswap Support Thread
Server: Shiva
Game: FFXI
Posts: 1052
By Shiva.Arislan 2020-07-24 09:57:57
My NIN lua is acting very odd.
Change default_spell_map to spellMap.
Code if spellMap == 'ElementalNinjutsu' then
[+]
Server: Asura
Game: FFXI
Posts: 741
By Asura.Lunafreya 2020-07-24 10:05:52
*face palm*
It's always the most obvious thing. Thanks ari.
Server: Shiva
Game: FFXI
Posts: 1052
By Shiva.Arislan 2020-07-24 12:13:37
*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
Server: Asura
Game: FFXI
Posts: 35
By Asura.Mavre 2020-07-31 02:23:06
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)
Bismarck.Xurion
Server: Bismarck
Game: FFXI
Posts: 694
By Bismarck.Xurion 2020-07-31 12:26:13
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) Copypasta your file here in [code] tags.
Asura.Mavre
Server: Asura
Game: FFXI
Posts: 35
By Asura.Mavre 2020-07-31 13:32:43
Disregard, windower discord got it figured out for me.
By cuddlyhamster 2020-08-08 21:54:56
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.
Shiva.Osborn
Server: Shiva
Game: FFXI
Posts: 24
By Shiva.Osborn 2020-08-08 22:11:49
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')
By cuddlyhamster 2020-08-08 22:20:27
sweet thank you, will try it out
Asura.Nalfey
Server: Asura
Game: FFXI
Posts: 106
By Asura.Nalfey 2020-08-11 06:24:36
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
By Drorond 2020-08-22 02:55:29
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 ?
Server: Lakshmi
Game: FFXI
Posts: 18
By Lakshmi.Makochild 2020-08-23 22:39:10
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
By Zyla 2020-09-01 15:12:23
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.
-------------------------------------------------------------------------------------------------------------------
-- User setup functions for this job. Recommend that these be overridden in a sidecar file.
-------------------------------------------------------------------------------------------------------------------
-- Setup vars that are user-dependent. Can override this function in a sidecar file.
function user_setup()
state.OffenseMode:options('Normal', 'HighAcc', 'TH')
state.HybridMode:options('Normal', 'DT')
state.RangedMode:options('Normal', 'Acc')
state.WeaponskillMode:options('Normal', 'Acc')
state.CastingMode:options('Normal', 'Resistant')
state.PhysicalDefenseMode:options('PDT', 'MDT')
state.IdleMode:options('Normal', 'DT')--, 'Learning')
state.MagicBurst = M(false, 'Magic Burst')
-- state.CP = M(false, "Capacity Points Mode")
-- Additional local binds
--send_command('lua l gearinfo')
--send_command('lua l azureSets')
send_command('bind @` gs c cycle treasuremode')
send_command('bind ^` input /ma "Blank Gaze" <t>')
send_command('bind !` gs c toggle MagicBurst')
send_command('bind ^- input /ja "Chain Affinity" <me>')
send_command('bind !- input /ja "Efflux" <me>')
send_command('bind ^= input /ja "Burst Affinity" <me>')
send_command('bind ^[ input /ja "Diffusion" <me>')
send_command('bind ^] input /ja "Unbridled Learning" <me>')
send_command('bind !] input /ma "Carcharian Verve" <me>')
send_command('bind ![ input /ma "Mighty Guard" <me>')
send_command('bind !q input /ma "Nat. Meditation" <me>')
send_command('bind ^q input /ma "Cocoon" <me>')
send_command('bind !w input /ma "Erratic Flutter" <me>')
send_command('bind !e input /ma "Occultation" <me>')
send_command('bind !r input /ma "Battery Charge" <me>')
send_command('bind !t input /ma "Aquaveil" <me>')
send_command('bind !y input /ma "Barrier Tusk" <me>')
send_command('bind !u input /ma "Diamondhide" <me>')
send_command('bind @u input /ma "Metallic Body" <me>')
send_command('bind ^. input /ma "Magic Hammer" <t>')
send_command('bind ^z input /item "Echo Drops" <me>')
send_command('bind ^x input /item "Remedy" <me>')
send_command('bind ^c input /item "Holy Water" <me>')
if player.sub_job == "RDM" then
send_command('bind !r input /ma "Refresh" <stpc>')
send_command('bind !y input /ma "Phalanx" <me>')
send_command('bind !u input /ma "Stoneskin" <me>')
send_command('bind !. input /ma "Sneak" <me>')
send_command('bind !, input /ma "Invisible" <me>')
elseif player.sub_job == "DNC" then
send_command('bind !. input /ja "Spectral Jig" <me>')
elseif player.sub_job == "NIN" then
send_command('bind !. input /ma "Monomi: Ichi" <me>')
send_command('bind !, input /ma "Tonko: Ni" <me>')
send_command('bind !numpad+ input /ma "Utsusemi: Ichi" <me>')
send_command('bind ^numpad+ input /ma "Utsusemi: Ni" <me>')
elseif player.sub_job == 'WAR' then
send_command('bind ^numpad/ input /ja "Berserk" <me>')
send_command('bind ^numpad* input /ja "Warcry" <me>')
send_command('bind ^numpad- input /ja "Aggressor" <me>')
send_command('bind !. input /item "Silent Oil" <me>')
send_command('bind !, input /item "Prism Powder" <me>')
end
-- send_command('bind @c gs c toggle CP')
send_command('bind ^numpad9 input /ws "Sanguine Blade" <t>')
send_command('bind ^numpad8 input /ws "Chant du Cygne" <t>')
send_command('bind ^numpad7 input /ws "Savage Blade" <t>')
send_command('bind ^numpad4 input /ws "Requiescat" <t>')
send_command('bind ^numpad5 input /ws "Expiacion" <t>')
send_command('bind ^numpad1 input /ws "Fast Blade" <t>')
send_command('bind ^numpad2 input /ws "Burning Blade" <t>')
send_command('bind ^numpad3 input /ws "Red Lotus Blade" <t>')
select_default_macro_book()
set_lockstyle()
state.Auto_Kite = M(false, 'Auto_Kite')
Haste = 0
DW_needed = 0
DW = false
moving = false
update_combat_form()
determine_haste_group()
end
-- Called when this job file is unloaded (eg: job change)
function user_unload()
send_command('unbind @`')
send_command('unbind ^`')
send_command('unbind !`')
send_command('unbind ^-')
send_command('unbind !-')
send_command('unbind ^=')
send_command('unbind ^[')
send_command('unbind ^]')
send_command('unbind ![')
send_command('unbind !]')
send_command('unbind ^q')
send_command('unbind !q')
send_command('unbind !w')
send_command('unbind !e')
send_command('unbind !r')
send_command('unbind !t')
send_command('unbind !y')
send_command('unbind !u')
send_command('unbind @u')
send_command('unbind !p')
send_command('unbind ^.')
send_command('unbind ^,')
send_command('unbind !.')
send_command('unbind !,')
-- send_command('unbind @c')
send_command('unbind ^numpad+')
send_command('unbind !numpad+')
send_command('unbind ^numlock')
send_command('unbind ^numpad/')
send_command('unbind ^numpad*')
send_command('unbind ^numpad-')
send_command('unbind ^numpad7')
send_command('unbind ^numpad9')
send_command('unbind ^numpad4')
send_command('unbind ^numpad5')
send_command('unbind ^numpad1')
send_command('unbind ^numpad2')
send_command('unbind ^numpad3')
send_command('unbind ^z')
send_command('unbind ^x')
send_command('unbind ^c')
send_command('unbind #`')
send_command('unbind #1')
send_command('unbind #2')
send_command('unbind #3')
send_command('unbind #4')
send_command('unbind #5')
send_command('unbind #6')
send_command('unbind #7')
send_command('unbind #8')
send_command('unbind #9')
send_command('unbind #0')
--send_command('lua u azureSets')
--send_command('lua u gearinfo')
end
-- Define sets and vars used by this job file.
function init_gear_sets()
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
By drakefs 2020-09-01 16:02:31
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.
By Zyla 2020-09-01 17:01:25
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. 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?
By drakefs 2020-09-01 18:47:53
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.
By Zyla 2020-09-01 18:52:57
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. I'll give it a shot later after I wake up, gonna get some sleep for now. Thanks for the advice.
Server: Asura
Game: FFXI
Posts: 4
By Asura.Bloodkitten 2020-09-06 09:10:10
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
By SimonSes 2020-09-06 09:21:04
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.
Server: Asura
Game: FFXI
Posts: 4
By Asura.Bloodkitten 2020-09-06 09:23:40
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
By cuddlyhamster 2020-09-13 01:43:37
Is there a way to have gearswap change macro set/book based on whether you are engaged or not?
Bismarck.Xurion
Server: Bismarck
Game: FFXI
Posts: 694
By Bismarck.Xurion 2020-09-13 06:03:57
Is there a way to have gearswap change macro set/book based on whether you are engaged or not? Yep, there's probably a status_change function in your existing file. In there it'll do various things like detect of you're engaged or idle. That's where you'd add the set_macro_page function.
By cuddlyhamster 2020-09-13 12:31:38
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.
Bismarck.Xurion
Server: Bismarck
Game: FFXI
Posts: 694
By Bismarck.Xurion 2020-09-14 02:57:19
Try using job_status_change instead - if that doesn't work, post your whole file.
By cuddlyhamster 2020-09-14 21:36:11
Try using job_status_change instead - if that doesn't work, post your whole file. Awesome! That did the trick, thanks very much.
[+]
Necro Bump Detected!
[32 days between previous and next post]
Server: Bahamut
Game: FFXI
Posts: 30
By Bahamut.Jackflashh 2020-10-16 23:37:15
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
Bismarck.Xurion
Server: Bismarck
Game: FFXI
Posts: 694
By Bismarck.Xurion 2020-10-18 05:50:56
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 Can't test this right now but I'm pretty sure you can just check your HP percentage like this:
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.
By Demelza 2020-11-13 15:31:13
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 ^^
Hades.Dade
Server: Hades
Game: FFXI
Posts: 230
By Hades.Dade 2020-11-13 15:35:17
Just looking for someone to explain this addon a bit for me. It looks like it is an alternative to Spellcast.
Is it going to be replacing Spellcast? In which ways is it better or worse. I don't know any programming but I've slowly learned more and more about spellcast and the 'language' used in gearswap is confusing to me.
It says it uses packets so it potentially could be more detectable? but does that also eliminate any lag that spellcast may encounter?
I plan on redoing my PUP xml to include pet casting sets thanks to the new addon petschool. I'm just not sure if it's worth it to just wait until gearswap gets more popular or to go ahead and do it in spellcast.
If anyone could give me more info I'd greatly appreciate it.
|
|