Gearswap Nugget ;)

Eorzea Time
 
 
 
Langues: JP EN FR DE
users online
Forum » FFXI » Jobs » Scholar » Gearswap nugget ;)
Gearswap nugget ;)
Offline
Posts: 182
By Sammeh 2017-01-16 06:29:39
Link | Citer | R
 
So I wrote a nugget in gearswap last night to help with casting spells while running or on auto-follow. (Very useful in kiting scenarios or dragging a mule behind you.)

Precast:
Code
	if type(windower.ffxi.get_player().autorun) == 'table' and spell.action_type == 'Magic' then 
		windower.add_to_chat(3,'Currently auto-running - stopping to cast spell')
		windower.ffxi.run(false)
		windower.ffxi.follow()  -- disabling Follow - turning back autorun automatically turns back on follow.
		autorun = 1
		cast_delay(.4) -- manipulate based on lag.
		return
	end


AfterCast:
Code
	if autorun == 1 then 
		windower.ffxi.run()
		autorun = 0
	end


And a quick preview of it's functionality:
YouTube Video Placeholder
[+]
Offline
Posts: 182
By Sammeh 2017-01-16 06:39:00
Link | Citer | R
 
YouTube Video Placeholder

Useful for SMN too :D
[+]
 Asura.Vanyar
Offline
Serveur: Asura
Game: FFXI
Posts: 15
By Asura.Vanyar 2017-01-17 04:25:20
Link | Citer | R
 
Thank you for sharing ! :D
 Fenrir.Divinian
Offline
Serveur: Fenrir
Game: FFXI
user: Divinian
Posts: 354
By Fenrir.Divinian 2017-01-17 06:48:38
Link | Citer | R
 
Yes! Thanks!