Anyone Familiar With Arislan's Luas Able To Help?

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Spellcast Scripting » Blue Mage » Anyone familiar with Arislan's luas able to help?
Anyone familiar with Arislan's luas able to help?
 Bismarck.Drakelth
Offline
サーバ: Bismarck
Game: FFXI
user: drakelth
Posts: 736
By Bismarck.Drakelth 2021-08-17 16:49:05  
I am looking at swapping my current Blue mage lua over to the one Arislan's made to be in line with the rest of the ones I use. I am just wondering if anyone has added in logic for swapping tp sets for if Tizona Am3 is up or not. my current lua will swap between 2 different tp index's based on seeing the buff or not and I would really like to keep that functionality.
 Asura.Trumpet
Offline
サーバ: Asura
Game: FFXI
user: Trumpet
By Asura.Trumpet 2021-08-18 10:21:14  
Can you not copy the logic from your current lua over? I'm assuming something like this would work:
Code
function customize_melee_set(meleeSet)
	if buffactive['Aftermath: Lv.3'] and player.equipment.main == "Tizona" then
		meleeSet = set_combine(meleeSet, equip(sets.engaged.YourAMTPSet))
	end
	return meleeSet
end
Offline
Posts: 319
By aisukage 2021-08-18 11:22:25  
This is the function I use for my AM3 sets on BLU.
Code
function job_buff_change(buff, gain)
	if buff:startswith('Aftermath') then
	    classes.CustomMeleeGroups:clear()	
			if player.equipment.main == 'Tizona' then
				if (buff == "Aftermath: Lv.3" and gain) or buffactive['Aftermath: Lv.3'] then
					classes.CustomMeleeGroups:append('AM3')
					add_to_chat(8, '-------------Mythic AM3 UP-------------')
				elseif (buff == "Aftermath: Lv.3" and not gain) then
					 add_to_chat(8, '-------------Mythic AM3 DOWN-------------')
				end
				if not midaction() then
					handle_equipping_gear(player.status)
				end
			end
    end
end

Then just duplicate all your current sets and add AM3 at the end to create all your AM3 sets.
Code
sets.engaged.AM3 = {}
sets.engaged.MidAcc.AM3 {}
sets.engaged.MidAcc.MidDT.AM3 = {}


etc.
[+]
 Siren.Cynwulf
Offline
サーバ: Siren
Game: FFXI
user: cynwulf
Posts: 13
By Siren.Cynwulf 2021-08-18 13:27:01  
Review Arislan's RUN gs off of his github, i believe it has some Aftermath logic in it, hopefully that helps
[+]
 Bismarck.Drakelth
Offline
サーバ: Bismarck
Game: FFXI
user: drakelth
Posts: 736
By Bismarck.Drakelth 2021-08-18 21:49:56  
Thank you guys!
 Bismarck.Drakelth
Offline
サーバ: Bismarck
Game: FFXI
user: drakelth
Posts: 736
By Bismarck.Drakelth 2021-08-20 03:05:55  
I got around to trying out this code and it doesn't seem to be doing anything other than telling me when my am3 is up or down. And for some reason gearinfo seems to prevent me from entering engaged sets. I am going to grab a fresh copy of the lua tomorrow and double check I didn't mess anything up. If some one was willing to talk on discord and let me screen share at some point it would be a huge help. Sorry I am not lua savy, just trying to get a better lua for my needs working and Arislans work so well with my other jobs.
 Bismarck.Drakelth
Offline
サーバ: Bismarck
Game: FFXI
user: drakelth
Posts: 736
By Bismarck.Drakelth 2021-08-20 17:05:49  
got, LS mate walked me through it like I was an 5 year old, but got the am sets and capped attack sets working with the lua and gear info. Appreciate everyone's time.
[+]
Log in to post.