Few Base Lua Questions

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » Windower » General » Few Base Lua Questions
Few Base Lua Questions
Offline
Posts: 105
By Ermah 2022-09-26 22:17:18  
Hello,

I'm trying to create a basic lua I can activate with gearswap that just casts a spell I choose, waits a determined amount of type and casts it again, that I can just copy and paste over and over to repeat as much as I like.

Does anyone know what I would type in lua to make that happen?


Additionally, I use to remember being able to type like /fire 2 in game to cast fire 2, but nowadays it doesn't work and I don't know what I need to make that work again.

Thank you.
 Fenrir.Niflheim
VIP
Offline
サーバ: Fenrir
Game: FFXI
user: Tesahade
Posts: 443
By Fenrir.Niflheim 2022-09-26 23:55:30  
Ermah said: »
Additionally, I use to remember being able to type like /fire 2 in game to cast fire 2, but nowadays it doesn't work and I don't know what I need to make that work again.

The addon that enables that is called shortcuts.

The other thing i am not sure what you mean, do you mean like for example your a RUN and you select ignis now every time you enter some command it will cast ignis, and then later you select gelus and now it casts gelus when you use that command?
Offline
Posts: 105
By Ermah 2022-09-27 00:00:21  
Thank you

No, I just want to go up to an enemy and type //lua l spell

and it'll just cast stone 1 like a hundred times in a row to level up magic so I don't have to hurt my fingers.
 Leviathan.Boposhopo
Offline
サーバ: Leviathan
Game: FFXI
user: Boposhopo
Posts: 229
By Leviathan.Boposhopo 2022-09-27 00:03:39  
There's a skill up lua made for that already
 Asura.Chiaia
VIP
Offline
サーバ: Asura
Game: FFXI
user: Demmis
Posts: 1652
By Asura.Chiaia 2022-09-27 00:26:50  
What you guys are talking about is considered botting, which is against FFXIAH's rules.
Offline
Posts: 105
By Ermah 2022-09-27 00:35:10  
Leviathan.Boposhopo said: »
There's a skill up lua made for that already
That doesnt work with offensive stuff.
Offline
Posts: 105
By Ermah 2022-09-27 00:35:41  
Asura.Chiaia said: »
What you guys are talking about is considered botting, which is against FFXIAH's rules.
Oh sorry, I didn't know it was botting, I just have arthritis and it helps with the skill ups while reducing pain

Since its finite and doesn't loop, I thought it wasnt considered botting.
 Carbuncle.Arakon
Offline
サーバ: Carbuncle
Game: FFXI
user: arakon
Posts: 141
By Carbuncle.Arakon 2022-09-27 04:55:11  
Ermah said: »
Thank you

No, I just want to go up to an enemy and type //lua l spell

and it'll just cast stone 1 like a hundred times in a row to level up magic so I don't have to hurt my fingers.

Edit this to change Spell1, Spell2 and Spell3 to the spells you want to cast and adjust the delay appropriately.
Code
//alias spellloop input /ma "Spell1" <t>; wait 6; input /ma "Spell2" <t>; wait 6; input /ma "Spell3" <t>; wait 6; spellloop

To start
Code
//spellloop

To stop
Code
//alias spellloop ;

Basically this alias repetitively invoke itself at the end.
By redefining the alias to ;, it stops the alias from further invoking itself.
 Carbuncle.Maletaru
Offline
サーバ: Carbuncle
Game: FFXI
user: maletaru
Posts: 1606
By Carbuncle.Maletaru 2022-09-27 08:34:39  
Quote:
Oh sorry, I didn't know it was botting, I just have arthritis and it helps with the skill ups while reducing pain

If you have a gaming keyboard it may have some programmable buttons. If not, you could consider getting one, it might help your situation.

I can, for example, set one of those buttons to "Hold Ctrl, press 1". Then with a single key press I can hit my Ctrl 1 macro.

As an aside, I recommend setting up a macro with /ma "stone" <bt> <wait 2> on all 6 rows. This way you only need to press the key every 6 times. This should resolve any physical issues with doing skillups, and the only issue is you need to be physically present and pushing buttons to get skillups, which is just...the game. Even pushing Ctrl + 1 every 12 seconds really isn't very stressful considering how the rest of the game is.

Hope this helps, good luck!