|  | 
    Gearswap Support Thread
 
    
        
        
        
            
                
                     Bahamut.Neb
                                                    
                                                                            
                                Server: Bahamut Game: FFXI Posts: 189 
                
			
			By Bahamut.Neb 2017-01-03 00:02:10			
			
						
                     
                 OK maybe this is a Vague question but does anyone know how to get gear priority in swaps to occur properly??
 sub={"Ammurapi Shield",priority=2},
 
 if you know what that line is you may know how to help me it does not even seem to equip that gear now and it is not showing up when i //gs showswaps
 
 Thanks for any help you can provide.
 
            
                
                     Odin.Lygre
                                                    
                                                                            
                                Server: Odin Game: FFXI Posts: 89 
                
			
			By Odin.Lygre 2017-01-03 11:33:45			
			
						
                     
                 So - a player named Braden made a nice simple DRG .lua that I have been using.  I have never programmed anything in my life, so I liked the idea of a relatively simple lua.  However, I have found some things in other luas I liked and tried to add them in but couldn't get anything to work - so I deleted what I added.  However, I must have accidentally messed something up - as now After using a WS and the breath gear going in, it doesn't swap back to my TP gear.  Can anyone see what I did? (and for special bonus - get the macro page based on Subjo to work) Code  function user_setup()
    select_default_macro_book()
end
-- Get Sets: Everything in this section is run as soon as you change jobs.
function get_sets()
	sets = {}
	petcast = false
	-- Regular Sets --
	
	
	sets.Idle = {sub="Nepenthe Grip +1",
    ammo="Ginsen",
    head={ name="Valorous Mask", augments={'Accuracy+23 Attack+23','Crit.hit rate+2','VIT+7','Accuracy+15','Attack+8',}},
    body={ name="Despair Mail", augments={'Attack+25','Mag. Evasion+20','"Dbl.Atk."+3',}},
    hands="Sulev. Gauntlets +1",
    legs={ name="Valor. Hose", augments={'Accuracy+29','"Dbl.Atk."+4','VIT+3','Attack+10',}},
    feet="Flam. Gambieras +1",
    neck="Lissome necklace",
    waist="Ioskeha Belt",
    left_ear="Cessance Earring",
    right_ear="Brutal Earring",
    left_ring="Warp Ring",
    right_ring="Shneddick Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
    
  
	sets.TP = {sub="Nepenthe Grip +1",
    ammo="Ginsen",
    head="Flam. Zucchetto +1",
    body={ name="Despair Mail", augments={'Attack+25','Mag. Evasion+20','"Dbl.Atk."+3',}},
    hands="Sulev. Gauntlets +1",
    legs={ name="Valor. Hose", augments={'Accuracy+29','"Dbl.Atk."+4','VIT+3','Attack+10',}},
    feet="Flam. Gambieras +1",
    neck="Lissome Necklace",
    waist="Ioskeha Belt",
    left_ear="Cessance Earring",
    right_ear="Brutal Earring",
    left_ring="Chirich Ring",
    right_ring="Petrov Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
    
    
 	-- Can add a set for each WS by making a new set: sets.WS["Stardiver"] or sets.WS["Camlann's Torment"] for example
	sets.WS = {}
	sets.WS["Default"]	= {sub="Nepenthe Grip +1",
    ammo="Ginsen",
    head="Sulevia's Mask +1",
    body="Sulevia's Plate. +1",
    hands="Sulev. Gauntlets +1",
    legs="Sulevi. Cuisses +1",
    feet="Sulev. Leggings +1",
    neck="Lissome necklace",
    waist="Ioskeha Belt",
    left_ear="Bladeborn Earring",
    right_ear="Steelflash Earring",
    left_ring="Rajas Ring",
    right_ring="Petrov Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
  sets.WS["Camlann's Torment"] = {sub="Nepenthe Grip +1",
    ammo="Ginsen",
    head="Sulevia's Mask +1",
    body="Sulevia's Plate. +1",
    hands="Sulev. Gauntlets +1",
    legs="Sulevi. Cuisses +1",
    feet="Sulev. Leggings +1",
    neck="Fotia gorget",
    waist="Fotia Belt",
    left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
    right_ear="Kemas earring",
    left_ring="Spiral Ring",
    right_ring="Petrov Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
	sets.WS["Stardiver"] = {
    ammo="Amar cluster",
    head="Flam. Zucchetto +1",
    body="Sulevia's Plate. +1",
    hands="Sulev. Gauntlets +1",
    legs="Sulevi. Cuisses +1",
    feet="Flam. Gambieras +1",
    neck="Fotia Gorget",
    waist="Fotia Belt",
    left_ear="Cessance Earring",
    right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
    left_ring="Apate Ring",
    right_ring="Petrov Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
	sets.WS["Drakesbane"] = {sub="Nepenthe Grip +1",
    ammo="Ginsen",
    head={ name="Valorous Mask", augments={'Accuracy+23 Attack+23','Crit.hit rate+2','VIT+7','Accuracy+15','Attack+8',}},
    body="Sulevia's Plate. +1",
    hands="Flam. Manopolas +1",
    legs="Sulevi. Cuisses +1",
    feet="Sulev. Leggings +1",
    neck="Fotia gorget",
    waist="Fotia Belt",
    left_ear="Bladeborn Earring",
    right_ear="Steelflash Earring",
    left_ring="Rajas Ring",
    right_ring="Petrov Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
  sets.WS["Geirskogul"] = {sub="Nepenthe Grip +1",ammo="Ginsen",
    head={ name="Valorous Mask", augments={'Attack+21','"Dbl.Atk."+3','DEX+7','Accuracy+10',}},
    body="Flamma Korazin +1",
    hands="Sulev. Gauntlets +1",
    legs="Sulevi. Cuisses +1",
    feet="Flam. Gambieras +1",
    neck="Fotia gorget",
    waist="Fotia Belt",
    left_ear="Cessance Earring",
    right_ear="Brutal Earring",
    left_ring="Apate Ring",
    right_ring="Petrov Ring",
    back={ name="Brigantia's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%',}},}		  
 sets.WS["Shattersoul"] = {ammo="Ginsen",
    head="Sulevia's Mask +1",
    body="Sulevia's Plate. +1",
    hands="Sulev. Gauntlets +1",
    legs="Sulevi. Cuisses +1",
    feet="Flam. Gambieras +1",
    neck="Fotia gorget",
    waist="Fotia Belt",
    left_ear="Cessance Earring",
    right_ear="Brutal Earring",
    left_ring="Spiral Ring",
    right_ring="Apate Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
  sets.WS["Retribution"] = {ammo="Ginsen",
    head="Sulevia's Mask +1",
    body="Sulevia's Plate. +1",
    hands="Sulev. Gauntlets +1",
    legs="Sulevi. Cuisses +1",
    feet="Flam. Gambieras +1",
    neck="Fotia gorget",
    waist="Fotia Belt",
    left_ear="Ishvara Earring",
    right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
    left_ring="Rajas Ring",
    right_ring="Apate Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
    
    
    -- Job Ability Sets --
	sets.JA = {}
	sets.JA.Jump = {sub="Nepenthe Grip +1",
    ammo="Ginsen",
    head="Flam. Zucchetto +1",
    body={ name="Despair Mail", augments={'Attack+25','Mag. Evasion+20','"Dbl.Atk."+3',}},
    hands="Sulev. Gauntlets +1",
    legs={ name="Valor. Hose", augments={'Accuracy+29','"Dbl.Atk."+4','VIT+3','Attack+10',}},
    feet="Flam. Gambieras +1",
    neck="Lissome Necklace",
    waist="Ioskeha Belt",
    left_ear="Cessance Earring",
    right_ear="Brutal Earring",
    left_ring="Chirich Ring",
    right_ring="Petrov Ring",
    back={ name="Brigantia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}},}
	
	sets.JA.Angon = {ammo="Angon",hands="Ptero. Fin. Gaunt."} 
	-- Angon, Relic Hands, and that dumb earring in Mamook if you feel like it
	
	sets.JA.AncientCircle = {legs="Vishap Brais +1"} 
	-- Ancient Circle normally: 3 minute duration, Damage+15% DT-15% DragonKiller+15% against Dragons (10% vs. NMs)
	-- Ancient Circle with AF1: 4.5 minute duration, Damage+17% DT-17% DragonKiller+17% against Dragons (11% vs. NMs)
	
	sets.JA.SpiritLink = {} 
	-- Spirit Link/Empathy gear go here; note that Relic Feet will cause a 100% Wyvern to still drain HP (unless leveling up
	
	sets.JA.SpiritSurge = {} 
	-- Augmented Relic Body affects duration; Wyvern Max HP affects Spirit Surge's Max HP effect on you
	
	sets.JA.SteadyWing = {legs="Vishap Brais +1"} 
	-- Wyvern Max HP strongly affects Steady Wing's Stoneskin effect
	
	-- Casting Sets --
	sets.FastCast = {}
	-- Can add more FC and Quick Magic here for spells; AF1 Head recommended in case of GearSwap error, at least for faster spells
	
	sets.Midcast = {}
	-- AF1 Head strongly advised for Healing Breath trigger
	-- HP or defensive stuff for Healing Breath; can use Fast Cast or Magic Acc. or whatever if you want too
	
	sets.Breath = {head={ name="Ptero. Armet +1", augments={'Enhances "Deep Breathing" effect',}},
    legs="Vishap Brais +1",
    neck="Lancer's Torque",
    waist="Glassblower's Belt",
    back={ name="Updraft Mantle", augments={'STR+1','Pet: Breath+9','Pet: Damage taken -2%',}},}
	-- Healing Breath is modified by Wyvern Max HP and Wyvern: Breath+
	-- Elemental Breaths are modified by Wyvern Current HP, Wyvern: Breath+, and Pet: Magic Accuracy
	-- Remove Status Breaths are presumably affected by nothing
end
-- Precast: JA and WS should be defined here, Fast Cast and such for magic. 
function precast(spell)
	if spell.type == "WeaponSkill" then
		if sets.WS[spell.name] then -- If you made a set for a WS and then use it,
		equip(sets.WS[spell.name])  -- it'll equip that set for that WS only
		else
		equip(sets.WS["Default"]) -- otherwise, it'll use this set instead
		end
	elseif spell.action_type == 'Magic' then 
		equip(sets.FastCast)
	elseif spell.name == 'Dismiss' and pet.hpp < 100 then		
		cancel_spell() -- Dismiss resets the Call Wyvern recast IF your Wyvern is at 100% HP; sorry to anyone who just wanted to kill their wyvern for the fun of it
		windower.add_to_chat(50,'  '..pet.name..' is below full HP (<pethpp>), cancelling Dismiss!')
	elseif spell.name == 'Call Wyvern' then
		if pet.isvalid then
		cancel_spell() -- Uses Spirit Link instead when your Wyvern is already present
		send_command('input /ja "Spirit Link" <me>')
		else
		equip(sets.JA.SpiritSurge) -- Relic Body goes here; can just use Spirit Surge set if you have it augmented
		end
	elseif spell.name == 'Spirit Surge' then
		equip(sets.JA.SpiritSurge)
	elseif spell.name == 'Steady Wing' then
		equip(sets.JA.SteadyWing)
	elseif spell.name == 'Angon' then
		equip(sets.JA.Angon)
	elseif spell.name == 'Ancient Circle' then
		equip(sets.JA.AncientCircle)
	elseif spell.name == 'Spirit Link' then
		if pet.isvalid then
			equip(sets.JA.SpiritLink)
		else
			cancel_spell() -- Uses Call Wyvern instead when your Wyvern isn't present
			send_command('input /ja "Call Wyvern" <me>')
		end
	elseif string.find(spell.name,"Jump") then -- Any spell or ability with the word Jump in it
		if not pet.isvalid then -- If you don't have a pet
			if spell.name == "Spirit Jump" then -- Forces Spirit Jump into regular Jump when Wyvern is dead
				cancel_spell()
				send_command('input /ja "Jump" <t>')
				return
			elseif spell.name == "Soul Jump" then -- Forces Soul Jump into High Jump when Wyvern is dead
				cancel_spell()
				send_command('input /ja "High Jump" <t>')
				return
			end
		end
		equip(sets.JA.Jump)
	end
end            
 
-- Midcast: For magic, this section affects your spell's potency, accuracy, etc. Unnecessary for JA/WS.
function midcast(spell)
	if spell.action_type == 'Magic' then 
        equip(sets.Midcast)
	end
end
-- Pet Change: Occurs when your Pet is summoned or killed.
function pet_change(pet,gain)
	if gain == false and pet.name then
		-- General announcement for when your Wyvern is killed, Dimissed, or eaten by Spirit Surge
		windower.add_to_chat(50,' *** '..string.upper(pet.name)..' IS DEAD YO ***')
	end
end
-- Pet Midcast: If GearSwap sees your pet readying a WS, this occurs
function pet_midcast(spell)
	if string.find(spell.name,' Breath') then
		petcast = true
		equip_current()		
		windower.send_command('wait 1.2;gs c petcast')
		-- Wyvern Breath Delay: 1.25s http://forum.square-enix.com/ffxi/threads/47481
		-- pet_aftercast won't run if your Wyvern's WS is interrupted (disengaging, stunned, Amnesia, etc.), so I recommend this
	end
end
 
-- Aftercast: Occurs following the use of any WS, JA, Spell, Item, or Ranged Attack
function aftercast(spell)
	equip_current()
end
-- Status Change: When Engaging, Disengaging, Resting, Standing Up, etc.
function status_change()
	equip_current()
end
-- Pet Status Change
function pet_status_change(new,old)
	if new ~= "Engaged" then
	petcast = false
	end
end
-- A custom function that equips a set based on whether you're engaged or not.
function equip_current()
	if player.status == 'Engaged' then
		equip(sets.TP)
	else
		equip(sets.Idle)
	end
	if petcast == true then 
		equip(sets.Breath) -- This will equip your Breath gear on top of whichever other set you're currently wearing.
	end
end
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
    -- Default macro set/book
    if player.sub_job == 'WAR' then
        set_macro_page(1, 14)
    elseif player.sub_job == 'DRK' then
        set_macro_page(10, 14)
    elseif player.sub_job == 'SAM' then
        set_macro_page(10, 14)
    else
        set_macro_page(10, 14)
    end
 
-- Manual commands sent in-game with //gs c <command>
function self_command(command)
	if command == 'petcast' and petcast then -- This command reverts to your regular gear 1.2 seconds after a Breath by default
		petcast = false
		equip_current() 
	end
	end
endYour macro book selection function isn't closed it looks like. and the self command to put you back in tp gear is after it, so neither works. add an 'end' to close the macro function and should be good to go                                     
            
                
                     Odin.Lygre
                                                    
                                                                            
                                Server: Odin Game: FFXI Posts: 89 
                
			
			By Odin.Lygre 2017-01-03 11:37:26			
			
						
                     
                 OK maybe this is a Vague question but does anyone know how to get gear priority in swaps to occur properly??
 sub={"Ammurapi Shield",priority=2},
 
 if you know what that line is you may know how to help me it does not even seem to equip that gear now and it is not showing up when i //gs showswaps
 
 Thanks for any help you can provide.
Should be Code  
sub={name="Ammurapi Shield",priority=2},  
            
                
                     Bahamut.Neb
                                                    
                                                                            
                                Server: Bahamut Game: FFXI Posts: 189 
                
			
			By Bahamut.Neb 2017-01-03 14:24:08			
			
						
                     
                 OK maybe this is a Vague question but does anyone know how to get gear priority in swaps to occur properly??
 sub={"Ammurapi Shield",priority=2},
 
 if you know what that line is you may know how to help me it does not even seem to equip that gear now and it is not showing up when i //gs showswaps
 
 Thanks for any help you can provide.
Should be Code  
sub={name="Ammurapi Shield",priority=2}, 
How would you do it if you had gear with augments listed!?                                     
            
                
                     Odin.Lygre
                                                    
                                                                            
                                Server: Odin Game: FFXI Posts: 89 
                
			
			By Odin.Lygre 2017-01-03 15:24:43			
			
						
                     
                 Code  sub={name="Ammurapi Shield",augments={},priority=2},
I think                                     
            
                
                     Bahamut.Neb
                                                    
                                                                            
                                Server: Bahamut Game: FFXI Posts: 189 
                
			
			By Bahamut.Neb 2017-01-03 21:02:31			
			
						
                     
                 Thanks a million all working now.                                     
            
                
                     Bahamut.Ballzack
                                                    
                                                                            
                                Server: Bahamut Game: FFXI Posts: 54 
                
			
			By Bahamut.Ballzack 2017-01-05 18:03:40			
			
						
                     
                 Code  ammo="Psilomene",
		head={ name="Merlinic Hood", augments={'Mag. Acc.+20','"Fast Cast"+5','INT+9',},priority=3},
		body={ name="Merlinic Jubbah", augments={'Mag. Acc.+23','"Fast Cast"+5','"Mag.Atk.Bns."+15',}},
		hands={ name="Merlinic Dastanas", augments={'"Fast Cast"+6','CHR+3','Mag. Acc.+8',}},
		legs={ name="Psycloth Lappas", augments={'MP+80','Mag. Acc.+15','"Fast Cast"+7',},priority=5},
		feet={ name="Merlinic Crackows", augments={'Accuracy+18','"Fast Cast"+6','MND+6','Mag. Acc.+15',}},
		neck="Orunmila's Torque",
		waist="Witful Belt",
		left_ear={name="Loquac. Earring",priority=4},
		right_ear="Etiolation Earring",
		left_ring={name="Weather. Ring",priority=2},
		right_ring={name="Prolix Ring",priority=1},
		back={ name="Bane Cape",priority=6},}Having some issues with priority and it not wanting to equip priority, anyone see anything wrong with this is it my lua maybe?                                     
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Asura Game: FFXI Posts: 3 
                
			
			By Asura.Technosuke 2017-01-06 10:08:44			
			
						
                     
                 Any can help me to this Lua. When GS load Get me this error:   
THe Original post 
Any can help me please?
LUA 
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Fenrir Game: FFXI Posts: 11681 
                
			
			By Fenrir.Nightfyre 2017-01-06 10:57:18			
			
						
                     
                 What is the current default order for equipment swapping?                                     
            
                
                     Bahamut.Ballzack
                                                    
                                                                            
                                Server: Bahamut Game: FFXI Posts: 54 
                
			
			By Bahamut.Ballzack 2017-01-06 12:22:01			
			
						
                     
                 WaistHead
 Legs
 Ammo
 Left_ring
 Body
 Back
 Neck
 Right_ear
 Hands
 Left_ear
 Right_ring
 Feet
 Is what its showing me
 
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Fenrir Game: FFXI Posts: 11681 
                
			
			By Fenrir.Nightfyre 2017-01-06 13:45:16			
			
						
                     
                 Oddly enough, showswaps isn't fully consistent with gear order. If I swap from one set to another and they share the left_ear slot, it goes: 
waist 
head 
legs 
ammo 
left_ring 
body 
back 
neck 
hands 
right_ear 
right_ring 
feet
 
but if they don't:
 
waist 
head 
legs 
ammo 
left_ring 
body 
back 
neck 
right_ear 
hands 
left_ear 
right_ring 
feet
 
Weird. In any event it apparently runs off the order in windower\res\slots.lua, so the order in showswaps is somewhat arbitrary. Actual order:
 Code  return {
    [0] = {id=0,en="Main"},
    [1] = {id=1,en="Sub"},
    [2] = {id=2,en="Range"},
    [3] = {id=3,en="Ammo"},
    [4] = {id=4,en="Head"},
    [5] = {id=5,en="Body"},
    [6] = {id=6,en="Hands"},
    [7] = {id=7,en="Legs"},
    [8] = {id=8,en="Feet"},
    [9] = {id=9,en="Neck"},
    [10] = {id=10,en="Waist"},
    [11] = {id=11,en="Left Ear"},
    [12] = {id=12,en="Right Ear"},
    [13] = {id=13,en="Left Ring"},
    [14] = {id=14,en="Right Ring"},
    [15] = {id=15,en="Back"},
}, {"id", "en"} 
            
                
                     Asura.Thorva 
                
			
			By Asura.Thorva 2017-01-08 14:44:19			
			
						
                     
                 Is there a way to make it so after I use a weapon skill I will automatically disengage and put it on a toggle?In example, occasionally when I am on drk I use shockwave to sleep things and walk away, either too many mobs, don't feel like dealing with them, weakend whatever the case. I would like to auto-disengage so that I can avoid waking the mobs.
 
            
                
                     Ragnarok.Kenshi
                                                    
                                                                            
                                Server: Ragnarok Game: FFXI Posts: 123 
                
			
			By Ragnarok.Kenshi 2017-01-08 15:31:08			
			
						
                     
                 with gearswap you can even ws disengaged                                     
            
                
                     Asura.Thorva 
                
			
			By Asura.Thorva 2017-01-08 17:37:55			
			
						
                     
                 Yeah I have that, but sometimes I need to build the tp, so I would like a toggle to swap to and disengage after specified ws                                     
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Asura Game: FFXI Posts: 1544 
                
			
			By Asura.Vienner 2017-01-09 05:37:22			
			
						
                     
                 I have a simple question (I think, I'm a gearswap noob and trying to get into it) So I got my hands on an outdated LUA file for my DNC. As you can see there are two sets for curing waltz... whats the difference between them? Is one for self waltzes and one for other characters? I'm slow and HELP I AM TRAPPED IN 2006 PLEASE SEND A TIME MACHINE please explain in simple English :) 
Thanks <3
 Code      waltz_mode = 0
    sets.JA.Waltz = {}
    sets.JA.Waltz[0] = {head="Anwig Salade",neck="Dualism Collar +1",lear="Novia Earring",rear="Roundel Earring",
    body="Maxixi Casaque +1",hands="Slither Gloves +1",lring="Carbuncle Ring +1",rring="Valseur's Ring",
    back="Toetapper Mantle",waist="Aristo Belt",legs="Desultor Tassets",feet="Maxixi Shoes +1"}
    
    sets.JA.Waltz[1] = {head="Horos Tiara +1",neck="Dualism Collar +1",lear="Novia Earring",rear="Roundel Earring",
    body="Maxixi Casaque +1",hands="Slither Gloves +1",lring="Carbuncle Ring +1",rring="Carbuncle Ring +1",
    back="Toetapper Mantle",waist="Aristo Belt",legs="Desultor Tassets",feet="Maxixi Shoes +1"} 
            
                
                    
                    
                    
                                                                
                                        
                                                    
                                                                            
                                Server: Sylph Game: FFXI Posts: 2623 
                
			
			By Sylph.Jeanpaul 2017-01-09 06:39:48			
			
						
                     
                 Very little difference, but the first one gets the Waltz Delay -2 from the Anwig Salade, while the second one gets a little more Waltz Potency. It's not clear how they're activated, you'd have to post more of the file.                                     
            
                
                     Asura.Byrne 
                
			
			By Asura.Byrne 2017-01-09 06:47:36			
			
						
                     
                 Any can help me to this Lua. When GS load Get me this error:   
THe Original post 
Any can help me please?
LUAJust to be 100% clear, this does not mean your file does not work. If you want to get rid of the message, simply CTRL+F inside  your lua and look up the error code and delete the function that is pushing it to you. Alternatively you can follow the link it gives you and get a new lua, but it's probably not worth having to redo all your sets.                                     
            
                
                     Asura.Byrne 
                
			
			By Asura.Byrne 2017-01-09 16:43:33			
			
						
                     
                 Is there a way to make it so after I use a weapon skill I will automatically disengage and put it on a toggle?In example, occasionally when I am on drk I use shockwave to sleep things and walk away, either too many mobs, don't feel like dealing with them, weakend whatever the case. I would like to auto-disengage so that I can avoid waking the mobs.
with gearswap you can even WS while disengaged.Yeah I have that, but sometimes I need to build the tp, so I would like a toggle to swap to and disengage after specified ws
Do you want that toggle to occur every time you use shockwave? If so I believe it would look something like:
 Code  
function aftercast(spell)
	if spell.action_type == 'Weaponskill' and spell.english == 'Shockwave' then
		send_command('wait 1;input /attack off')
	end
end
Though you would want to put it under the section "function aftercast(spell)" in your lua if it already exists and figure out how to integrate it rather than creating an entirely new one.
 
We could also make an argument to only do it when you're in a certain toggle mode, but that will be a little more hands-on required. Just lemme know what you're lookin' for.                                     
            
            
                
			
			By Jaydeekay 2017-01-12 10:54:41			
			
						
                     
                 I'm using Lygre's BLM.lua (along with all his motes files) but hopefully somebody can tell me what I'm doing wrong here...
 My normal sets are equipping just fine, but when I switch to Mid, Resistant or CMP the relevant gear isn't being switched in. (Sorry I have no idea how to put this in a box like some of you)
 
 
 
 sets.midcast['Elemental Magic'].Mid = set_combine(sets.midcast['Elemental Magic'], {neck="Incanter's Torque",left_ring="Stikini Ring",right_ring="Stikini Ring"})
 sets.midcast['Elemental Magic'].Resistant = set_combine(sets.midcast['Elemental Magic'].Mid, {hands="Jhakri Cuffs +1",waist="Aswang Sash"})
 sets.midcast['Elemental Magic'].CMP = set_combine(sets.midcast['Elemental Magic'], {body="Spaekona's Coat"})
 
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Odin Game: FFXI Posts: 2255 
                
			
			By Odin.Llewelyn 2017-01-13 17:42:15			
			
						
                     
                 After the recent update, my GEO's pet idle set no longer works.  I'm using Mote's default lua.  Any easy fix?                                     
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Asura Game: FFXI Posts: 1477 
                
			
			By Asura.Toralin 2017-01-14 12:48:21			
			
						
                     
                 For my paladin I have a Castingmode toggle Normal/DT Code  options.CastingModes = {'Normal', 'DT'} 
sets defined for precast Code  { sets.precast.FC = 
	ammo="Staunch Tathlum +1",
    head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
    body={ name="Odyss. Chestplate", augments={'Mag. Acc.+15 "Mag.Atk.Bns."+15','"Fast Cast"+6','MND+10','Mag. Acc.+8',}},
    hands={ name="Leyline Gloves", augments={'Accuracy+12','Mag. Acc.+14','"Mag.Atk.Bns."+15','"Fast Cast"+2',}},
    legs={ name="Odyssean Cuisses", augments={'"Fast Cast"+6','"Mag.Atk.Bns."+15',}},
    feet={ name="Odyssean Greaves", augments={'"Fast Cast"+6','CHR+5',}},
    neck="Orunmila's Torque",
    waist={name="Rumination Sash",priority=2},
    left_ear={name="Etiolation Earring",priority=1},
    right_ear="Enchntr. Earring +1",
    left_ring="Kishar Ring",
    right_ring="Prolix Ring",
    back={ name="Rudianos's Mantle", augments={'HP+60','Eva.+20 /Mag. Eva.+20','HP+20','"Fast Cast"+10', priority=1}},
}	
     
	sets.precast.FC.DT = 
{ 
    ammo="Impatiens",
    head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
    body={ name="Odyss. Chestplate", augments={'Mag. Acc.+15 "Mag.Atk.Bns."+15','"Fast Cast"+6','MND+10','Mag. Acc.+8',}},
	hands="Souv. Handsch. +1",
    legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
    feet={ name="Odyssean Greaves", augments={'"Fast Cast"+6','CHR+5',}},
    neck="Orunmila's Torque",
    waist="Oneiros Belt",
    left_ear={ name="Odnowa Earring", priority=3},
    right_ear={ name="Odnowa Earring +1", priority=2},
    left_ring="Eihwaz Ring",
    right_ring="Defending Ring",
    back={ name="Rudianos's Mantle", augments={'HP+60','Eva.+20 /Mag. Eva.+20','HP+20','"Fast Cast"+10', priority=1}},
}Code  function job_post_precast(spell, action, spellMap, eventArgs)
 
end
Issue is even when I toggle to DT it still uses normal fastcast, not the .DT set                                     
            
                
                     Asura.Thorva 
                
			
			By Asura.Thorva 2017-01-14 13:28:35			
			
						
                     
                 Is there a way to make it so after I use a weapon skill I will automatically disengage and put it on a toggle?In example, occasionally when I am on drk I use shockwave to sleep things and walk away, either too many mobs, don't feel like dealing with them, weakend whatever the case. I would like to auto-disengage so that I can avoid waking the mobs.
with gearswap you can even WS while disengaged.Yeah I have that, but sometimes I need to build the tp, so I would like a toggle to swap to and disengage after specified ws
Do you want that toggle to occur every time you use shockwave? If so I believe it would look something like:
 Code  
function aftercast(spell)
	if spell.action_type == 'Weaponskill' and spell.english == 'Shockwave' then
		send_command('wait 1;input /attack off')
	end
end
Though you would want to put it under the section "function aftercast(spell)" in your lua if it already exists and figure out how to integrate it rather than creating an entirely new one.
 
We could also make an argument to only do it when you're in a certain toggle mode, but that will be a little more hands-on required. Just lemme know what you're lookin' for.
I am looking for it to only work during a toggle. And thank you for the reply.                                     
            
                
                     Shiva.Hiep
                                                    
                                                                            
                                Server: Shiva Game: FFXI Posts: 669 
                
			
			By Shiva.Hiep 2017-01-15 06:51:40			
			
						
                     
                 Is there a function that would force all my midcast to equip my spell interruption rate set during my SIRD casting mode?                                     
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Leviathan Game: FFXI Posts: 3753 
                
			
			By Leviathan.Celebrindal 2017-01-15 10:00:20			
			
						
                     
                 Afternoon!
 Non-essential question here, but one that I think could really refine some things for me if anyone could point me in the right direction!
 
 So, I have several chatline queues in my luas corresponding to different events- here's an example from my RNG lua---
 
 
 add_to_chat(123, spell.name..' Canceled: [Out of Range]')
 
 
 ---that's the relevant line that is in response to if I try to weaponskill out of range...lua stops it and sends and /echo to me with that line.
 
 And here's the reason for my post- and it's in "color 123".  Which, in this case, translates to Red.  "122" Translates to Yellow.  Now, I'd love to find a table that shows me all the values for different font colors, so I can use them for different events in my lua, and so that all chat queues I add aren't just more Yellow text!  Anyone have such a list?  Much appreciation in advance!
 
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Asura Game: FFXI Posts: 115 
                
			
			By Asura.Pintseyes 2017-01-15 10:23:30			
			
						
                     
                 Leviathan.Celebrindal said: »And here's the reason for my post- and it's in "color 123". Which, in this case, translates to Red. "122" Translates to Yellow. Now, I'd love to find a table that shows me all the values for different font colors, so I can use them for different events in my lua, and so that all chat queues I add aren't just more Yellow text! Anyone have such a list? Much appreciation in advance! 
This should be interesting to see the responses for. Now I'm not 100% sure but I do believe that coloring you're seeing has nothing to do with lua code or gearswap. Sounds like whomever you got that lua from simply colored it in notepad++ for some reason. 
 
Pretty sure the text you're seeing ingame is simply "System text" - Yellow. With that being said you can change text coloring for such things through the SE config which will in turn change the text coloring to the events you're concerned with.                                     
            
                
                     Asura.ChiaiaVIP 
                                                    
                                                                            
                                Server: Asura Game: FFXI Posts: 1662 
                
			
			By Asura.Chiaia 2017-01-15 10:42:11			
			
						
                     
                 Leviathan.Celebrindal said: »And here's the reason for my post- and it's in "color 123". Which, in this case, translates to Red. "122" Translates to Yellow. Now, I'd love to find a table that shows me all the values for different font colors, so I can use them for different events in my lua, and so that all chat queues I add aren't just more Yellow text! Anyone have such a list? Much appreciation in advance! 
This should be interesting to see the responses for. Now I'm not 100% sure but I do believe that coloring you're seeing has nothing to do with lua code or gearswap. Sounds like whomever you got that lua from simply colored it in notepad++ for some reason. 
 
Pretty sure the text you're seeing ingame is simply "System text" - Yellow. With that being said you can change text coloring for such things through the SE config which will in turn change the text coloring to the events you're concerned with.Umm no add to chat is a windower command and 123 is one of the color codes.
 
@Leviathan.Celebrindal here you go:
 https://github.com/Windower/Lua/blob/dev/scripts/colortest.lua
Heres a working copy: http://pastebin.com/duJgwpAb 
                    [+]
                                              
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Asura Game: FFXI Posts: 115 
                
			
			By Asura.Pintseyes 2017-01-15 11:07:54			
			
						
                     
                 
Oh awesome. Glad Chia explained it better than me.
 
Chia, does this only work in add to chat? For instance, could I apply coloring to my spells? Blue for ice, red for fire for the line that says "Is casting Fire" ingame?                                     
            
                
                     Asura.ChiaiaVIP 
                                                    
                                                                            
                                Server: Asura Game: FFXI Posts: 1662 
                
			
			By Asura.Chiaia 2017-01-15 11:15:39			
			
						
                     
                 
Oh awesome. Glad Chia explained it better than me.
 
Chia, does this only work in add to chat? For instance, could I apply coloring to my spells? Blue for ice, red for fire for the line that says "Is casting Fire" ingame?Short Answer: No 
Long Answer: You could if you wrote an addon to replace the built in chat or modify battlemod which is what that addon does.                                     
            
                
                    
                    
                    
                                                            
                                                    
                                                                            
                                Server: Asura Game: FFXI Posts: 115 
                
			
			By Asura.Pintseyes 2017-01-15 12:08:44			
			
						
                     
                 Short Answer: NoLong Answer: You could if you wrote an addon to replace the built in chat or modify battlemod which is what that addon does.
Long Answer: You could if you wrote an addon to replace the built in chat or modify battlemod which is what that addon does. 
Well, that made me laugh pretty good. I can't code my way out of a box of cheerios.. Let alone lua.
 
Thanks for the reply!                                     
    
    
        
        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.
 |  |