Item Search
     
BG-Wiki Search
Page 40 of 302 FirstFirst ... 30 38 39 40 41 42 50 90 ... LastLast
Results 781 to 800 of 6036

Thread: Gearswap Help Thread!     submit to reddit submit to twitter

  1. #781
    Smells like Onions
    Join Date
    Mar 2014
    Posts
    3
    BG Level
    0

    anyone able to cast sleepga by rdm/blm or whm/blm?
    i couldnt cast it when gearswap is loaded (even with a blank RDM.lua/WHM.lua, but w/o the lua file it cast fine)
    ingame error says "You cannot cast sleepga"

  2. #782
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    Ok I am getting an error with gearswap stating: lua 35:attempt to call field 'aftercast_Idle' (a tabled value)

    some pro please find the mistake. I know this is a simple lua file made complicated, but I have no clue where the mistake is

    Code:
    function get_sets()
    		
    	sets.aftercast_Idle = 
    		{main="Owleyes",
    		sub="Genbu's Shield",
    		ammo="Dosis tathlum",
    		head="Spurrina coif",
    		neck="Twilight Torque",
    		ear1="Savant's Earring",
    		ear2="Moonshade Earring",
    		body="Acad. gown +1",
    		hands="Serpentes Cuffs",
    		ring1="Dark Ring",
    		ring2="Defending Ring",
    		back="Cheviot cape",
    		waist="Pythia sash",
    		legs="Nares Trews",
    		feet="Serpentes Sabots"}
    		
    	sets.FastCast = 
    		{ammo="Dosis tathlum",
    		head="Peda. M.Board +1",
    		neck="Orunmila's Torque",
    		ear2="Loquacious Earring",
    		ear1="Novia earring",
    		body="Anhur Robe",
    		hands="Acad. Bracers +1",
    		ring1="Prolix ring",
    		ring2="Defending ring",
    		back="Refraction Cape",
    		waist="Witful belt",
    		legs="Acad. Pants+1",
    		feet="Acad. Loafers +1"}
    	
    	sets.Resting = set_combine(sets.aftercast_Idle{main="Chatoyant Staff",sub="Mephitis Grip"})
    	
    	
    	
    	------- Augmentended equipment define --------
    	sets.Hagondes_MAB = 
    		{head={name="Hagondes hat",augments={"Magic Attack Bonus +28", "Physical Damage Taken -4"}},
    	    body={name="Hagondes Coat",augments={"Magic Attack Bonus +21","Physical Damage Taken -4"}},
    		hands={name="Hagondes Cuffs",augments={"Magic Attack Bonus +23","Physical Damage Taken -3"}},
    		legs={name="Hagondes Pants",augments={"Magic Attack Bonus +20","Physical Damage Taken -3"}},
    		feet={name="Hagondes Sabots",augments={"Magic Attack Bonus +25","Physical Damage Taken -4"}}}
    	------- End augmented equipment define -------
    	
    	sets.ElementalMagic = set_combine(sets.Hagondes_MAB
    		{ammo="Dosis Tathlum",
    		neck="Eddy Necklace",
    		ear1="Hecate's Earring",
    		ear2="Friomisi Earring",
    		ring1="Strendu Ring",
    		ring2="Diamond Ring",
    		back="Bookworm's Cape",
    		waist="Maniacus Sash"})
    	
    	sets.DarkMagic = set_combine(sets.FastCast
    	{ear1="Lifestorm earring",
    		ear2="Psystorm earring",
    		body="Acad. gown+1",
    		ring1="Sangoma ring",
    		back="Bookcworm's cape",
    		legs="Pedagogy pants"})
    	
    	sets.midcast_ENF_INT = 
    		{ammo="Dosis tathlum",
    		head="Nahtirah Hat",
    		neck="Eddy Necklace",
    		ear1="Lifestorm Earring",
    		ear2="Psystorm Earring",
    		body="Acad. gown +1",
    		hands="Hagondes cuffs",
    		ring1="Sangoma Ring",
    		ring2="Omega Ring",
    		back="Refraction Cape",
    		waist="Demonry sash",
    		legs="Bokwus Slops",
    		feet="Uk'uxkaj boots"}
    	
    	sets.midcast_ENF_MND = 
    		{ammo="Dosis tathlum",
    		head="Nahtirah Hat",
    		neck="Eddy Necklace",
    		ear1="Lifestorm Earring",
    		ear2="Psystorm Earring",
    		body="Savant's gown +2",
    		hands="Hagondes cuffs",
    		ring1="Sangoma Ring",
    		ring2="Omega Ring",
    		back="Refraction Cape",
    		waist="Demonry sash",
    		legs="Bokwus Slops",
    		feet="Uk'uxkaj boots"}
    	
    	sets.midcast_Impact = 
    		{ammo="Dosis tathlum",
    		neck="Eddy Necklace",
    		ear1="Lifestorm earring",
    		ear2="Psystorm earring",
    		hands="Hagondes cuffs",
    		ring1="Sangoma ring",
    		ring2="Omega Ring",
    		back="Refraction Cape",
    		waist="Demonry Sash",
    		legs="Bokwus slops",
    		feet="Bokwus Boots"}
    	
    	sets.midcast_Embrava = 
    		{main="Kirin's Pole",
    		sub="Fulcio Grip",
    		ammo="Dosis tathlum",
    		head="Svnt. Bonnet +2",
    		neck="Colossus's Torque",
    		ear1="Novia Earring",
    		ear2="Loquacious Earring",
    		body="Anhur Robe",
    		hands="Savant's Bracers +2",
    		back="Merciful Cape",
    		waist="Olympus sash",
    		legs="Acad. Pants +1",
    		feet="Rubeus Boots"}
    	
    	sets.midcast_EnhancingMagic = 
    		{main="Kirin's Pole",
    		sub="Fulcio Grip",
    		ammo="Dosis tathlum",
    		head="Svnt. Bonnet +2",
    		neck="Colossus's Torque",
    		ear1="Novia Earring",
    		ear2="Loquacious Earring",
    		body="Anhur Robe",
    		hands="Acad. Bracers +1",
    		back="Merciful Cape",
    		waist="Olympus sash",
    		legs="Acad. Pants +1",
    		feet="Rubeus Boots"}
    	
    	sets.precast_Stun = 
    		{ammo="Dosis tathlum",
    		head="Peda. M.Board +1",
    		neck="Orunmila's Torque",
    		ear2="Lifestorm Earring",
    		ear1="Psystorm earring",
    		body="Acad. gown +1",
    		hands="Acad. Bracers +1",
    		ring1="Sangoma ring",
    		ring2="Defending ring",
    		back="bookworm's cape",
    		waist="Witful belt",
    		legs="Acad. Pants+1",
    		feet="Acad. Loafers +1"}
    		
    	
    	sets.midcast_Cure = 
    		{main="Tamaxchi",
    		sub="Genbu's Shield",
    		body="Heka's kalasiris",
    		waist="Pythia sash",
    		back="Oretania's Cape",
    		legs="Nares Trews"}
    	
    	sets.midcast_Cure_Storm = 
    		{main="Tupsimati",
    		sub="Arbuda grip",
    		head="Gende. Caubeen",
    		body="Heka's kalsiris",
    		hands="Bokwus gloves",
    		back="Twilight cape",
    		waist="Korin obi",
    		legs="Nares trews"}
    	
    	sets.midcast_Cure_Fast = 
    		{main="Arka II",
    		sub="Arbuda grip",
    		head="Gende. Caubeen",
    		neck="Orunmila's torque",
    		ear1="Novia rearring",
    		ear2="Loquacious earring",
    		body="Heka's kalasiris",
    		hands="Bokwus gloves",
    		ring1="Prolix ring",
    		ring2="Omega ring",
    		back="Oretania's cape",
    		waist="Pythia sash",
    		legs="Acad. Pants +1",
    		feet="Iaso Boots"}
    		
    	sets.midcast_Helix = set_combine(sets.Hagondes_MAB
    		{ammo="Dosis Tathlum",
    		neck="Eddy Necklace",
    		ear1="Hecate's Earring",
    		ear2="Friomisi Earring",
    		ring1="Strendu Ring",
    		ring2="Diamond Ring",
    		back="Bookworm's Cape",
    		waist="Maniacus Sash"})	
    	
    	sets.Obi = {}
    	sets.Obi.Fire = {waist='Karin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Earth = {waist='Dorin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Water = {waist='Suirin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Wind = {waist='Furin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Ice = {waist='Hyorin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Thunder = {waist='Rairin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Light = {waist='Korin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Dark = {waist='Anrin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	
    	sets.staves = {}
    	
    	sets.staves.damage = {}
    	sets.staves.damage.Thunder = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Fire = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Ice = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Wind = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Water = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Earth = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Dark = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Light = {main="Tupsimati",sub="Zuuxowu grip"}
    	
    	sets.staves.accuracy = {}
    	sets.staves.accuracy.Thunder = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Fire = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Ice = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Wind = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Water = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Earth = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Dark = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Light = {main="Tupsimati",sub="Mephitis grip"}
    	
    	sets.staves.recasting = {}
    	sets.staves.recasting.Thunder = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Fire = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Ice = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Wind = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Water = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Earth = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Dark = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Light = {main="Arka II",sub="Arbuda Grip"}
    	
    end
    
    
    function precast(spell)
    	if spell.english == 'Impact' then
    		equip(sets['FastCast'],{body="Twilight Cloak",main="Tupsimati",sub="Mephitis grip"})
    	
    		
    	elseif spell.skill=='ElementalMagic' and spell.cast_time < 3 then
    		equip(sets['ElementalMagic']['staves.damage.'[spell.element]])
    		
    		if spell.element == world.weather_element or spell_element == world.day_element and sets.Obi[spell.element] then
    			equip(sets.Obi[spell.element])
    		end
    		
    		
    	elseif spell.english == 'Stun' then
    		equip(sets['precast_Stun']['staves.recasting.'[spell.element]])
    		
    		if (buffactive.alacrity or buffactiv.celerity or buffactiv.manifestation or buffactiv.Accession)
    			then equip(sets['precast_Stun']['staves.recasting.'[spell.element]],{feet="Peda. Loafers",head="Natirah hat"})
    		end
    
    	elseif (buffactive.alacrity or buffactiv.celerity or buffactiv.manifestation or buffactiv.Accession)
    		then  equip(sets['FastCast']['staves.recasting.'[spell.element]],{feet="Peda. Loafers",head="Natirah hat"})
    		
    		
    	else
    		equip(sets['precast_FastCast']['staves.recasting.'[spell.element]])
    		
    	end
    
    	if (buffactive.alacrity or buffactive.celerity) and world.weather_element == spell.element then
    		equip({feet="Peda. Loafers",head="Nahtirah hat"})
    	end
    	
    	if ability.english == 'Tabula Rasa' then
    		equip({legs="Pedagogy pants"})
    	end
    end
    
    function midcast(spell)
    
    	if string.find(spell.english,'Cur') then 
    		equip(sets.midcast_Cure)
    		if spell.element == world.weather_element or spell_element == world.day_element or buffactive.Aurorastorm then
    			equip(sets.midcast_Cure_Storm)
    		end
    		if buffactive.accession then
    			equip(sets.midcast_Cure_Fast)
    		end
    	end
    	
    	if spell.english == 'Stun' then
    		equip(sets['precast_Stun']['staves.recasting.'[spell_element]])
    	end
    	
    	if spell.english == 'Impact' then
    		local tempset = sets['midcast_Impact']
    		tempset['body'] = 'Twilight Cloak'
    		tempset['head'] = empty
    		equip(tempset)
    		if sets.staves.accuracy[spell.element] then
    			equip(sets.staves.accuracy[spell.element])
    		end
    	end
    		
    	if spell.skill=="ElementalMagic" then
    		if string.find(spell.english,'helix') then
    			equip(sets['midcast_Helix'])
    		else
    			equip(sets.ElementalMagic)
    			if spell.element == world.weather_element or spell_element == world.day_element then
    				equip(sets.Obi[spell.element])
    			end
    		end
    		if buffactive.ebullience then
    			equip()
    		end
    		if buffactive.klimform then
    			equip ()
    		end
    	end
    	
    	if spell.skill == 'EnhancingMagic' then
    	
    		if spell.english == 'Embrava' then
    			equip(sets['midcast_Embrava'])
    		end
    		
    		if string.find(spell.english,'Haste','Sneak','Invisible','Blink','Protect','Shell','Erase','na','Reraise','Animus','Raise','Adloqium','Klimaform','Refresh') then
    			equip(sets['FastCast']['staves.recasting.'[spell.element]])
    			if (buffactive.manifestation or buffactive.alacrity or buffactive.celerity or buffactive.accession) then
    				equip({feet="Peda. Loafers", head="Nahtirah hat"})
    			end
    		end
    		else
    			equip(sets['midcast_EnhancingMagic']['staves.recasting.'[spell.element]])
    		end
    		
    		if string.find(spell.english,'storm') then
    			equip(sets['Fastcast']['staves.recasting.'[spell.element]],{feet="Pedagogy Loafers"})
    		end
    		
    		if string.find(spell.english,'Utsusemi') then
    			equip(sets['Fastcast']['staves.recasting.'[spell.element]],{feet="pedagogy Loafers", head="Nahtirah hat"})
    	end
    	
    	if spell.skill == "EnfeeblingMagic" or "Elemental Magic" then
    		if string.find(spell.english,'Sleep','Dispel','Blind','Break','Bind','Burn','Frost','Choke','Rasp','Shock','Drown','Poison','Gravity') then
    		equip(sets['midcast_ENF_INT']['staves.accuracy.'[spell.element]])
    		else
    			equip(sets['midcast_ENF_MND']['staves.accuracy.'[spell.element]])
    		end
    	end
    	
    	if spell.skill == "DarkMagic" and not spell.english == 'Stun' then
    		equip(sets['DarkMagic']['staves.recast.'[spell.element]],{legs="Pedagogy Pants"})
    		if spell.element == world.weather_element or spell_element == world.day_element then
    				equip(sets.Obi[spell.element])
    		end
    	end
    end
    
    function aftercast(spell)
    	equip(sets['aftercast_Idle'])
    	
    	if spell.english == 'Sleep' or spell.english == 'Sleepga' then
    		send_command('@wait 50;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
    	elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II' then
    		send_command('@wait 80;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
    	elseif spell.english == 'Break' or spell.english == 'Breakga' then
    		send_command('@wait 20;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
    	end
    end
    	
    function status_change(new,tab)
    	if new == 'Resting' then
    		equip(sets['Resting'])
    	else
    		equip(sets['aftercast_Idle'])
    	end
    end

  3. #783
    BG Content
    Join Date
    Jul 2007
    Posts
    22,370
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    You need a comma after aftercast_Idle on line 35.

  4. #784
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    Quote Originally Posted by Byrthnoth View Post
    You need a comma after aftercast_Idle on line 35.
    all right thx, fixed all the other syntax errors that were the same, now it loaded <3

    gearswaps is not gearswapping, my lua must be totally flawed

    message is (when just useing dark arts and addenmdub lack, same with light arts), lua 279, attempt to index global 'ability' (a nil value), this is getting frustrating ._. just standing there casting in Idle set, the only thing working is when I start resting it swaps to chatoyant staff

  5. #785
    Sea Torques
    Join Date
    Jun 2012
    Posts
    570
    BG Level
    5
    FFXI Server
    Asura
    WoW Realm
    The Scryers

    Code:
    		if (buffactive.alacrity or buffactiv.celerity or buffactiv.manifestation or buffactiv.Accession)
    			then equip(sets['precast_Stun']['staves.recasting.'[spell.element]],{feet="Peda. Loafers",head="Natirah hat"})
    		end
    have some "buffactiv." instead "buffactive." not sure if that's your problem atm...

  6. #786
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    Quote Originally Posted by JSHidaka View Post
    Code:
    		if (buffactive.alacrity or buffactiv.celerity or buffactiv.manifestation or buffactiv.Accession)
    			then equip(sets['precast_Stun']['staves.recasting.'[spell.element]],{feet="Peda. Loafers",head="Natirah hat"})
    		end
    have some "buffactiv." instead "buffactive." not sure if that's your problem atm...
    I have no idea whats going, i tried to solve the problem but atm the only thing that it is swaping out during cures is hekas body in and oretanias' cape, the rest doesnt even itch to swap


    Code:
    function get_sets()
    		
    	sets.aftercast_Idle = 
    		{main="Owleyes",
    		sub="Genbu's Shield",
    		ammo="Dosis tathlum",
    		head="Spurrina coif",
    		neck="Twilight Torque",
    		ear1="Savant's Earring",
    		ear2="Moonshade Earring",
    		body="Academic's gown +1",
    		hands="Serpentes Cuffs",
    		ring1="Dark Ring",
    		ring2="Defending Ring",
    		back="Cheviot cape",
    		waist="Pythia sash",
    		legs="Nares Trews",
    		feet="Serpentes Sabots"}
    		
    	sets.FastCast = 
    		{ammo="Dosis tathlum",
    		head="Pedagogy mortarboard +1",
    		neck="Orunmila's Torque",
    		ear2="Loquacious Earring",
    		ear1="Novia earring",
    		body="Anhur Robe",
    		hands="Academic's Bracers +1",
    		ring1="Prolix ring",
    		ring2="Defending ring",
    		back="Refraction Cape",
    		waist="Witful belt",
    		legs="Academic's Pants+1",
    		feet="Academic's Loafers +1"}
    	
    	sets.Resting = set_combine(sets.aftercast_Idle,{main="Chatoyant Staff",sub="Mephitis Grip"})
    	
    	
    	
    	------- Augmentended equipment define --------
    	sets.Hagondes_MAB = 
    		{head={name="Hagondes hat",augments={"Magic Attack Bonus +28", "Physical Damage Taken -4"}},
    	    body={name="Hagondes Coat",augments={"Magic Attack Bonus +21","Physical Damage Taken -4"}},
    		hands={name="Hagondes Cuffs",augments={"Magic Attack Bonus +23","Physical Damage Taken -3"}},
    		legs={name="Hagondes Pants",augments={"Magic Attack Bonus +20","Physical Damage Taken -3"}},
    		feet={name="Hagondes Sabots",augments={"Magic Attack Bonus +25","Physical Damage Taken -4"}}}
    	------- End augmented equipment define -------
    	
    	sets.ElementalMagic = set_combine(sets.Hagondes_MAB,
    		{ammo="Dosis Tathlum",
    		neck="Eddy Necklace",
    		ear1="Hecate's Earring",
    		ear2="Friomisi Earring",
    		ring1="Strendu Ring",
    		ring2="Diamond Ring",
    		back="Bookworm's Cape",
    		waist="Maniacus Sash"})
    	
    	sets.DarkMagic = set_combine(sets.FastCast,
    	{ear1="Lifestorm earring",
    		ear2="Psystorm earring",
    		body="Academics gown+1",
    		ring1="Sangoma ring",
    		back="Bookcworm's cape",
    		legs="Pedagogy pants"})
    	
    	sets.midcast_ENF_INT = 
    		{ammo="Dosis tathlum",
    		head="Nahtirah Hat",
    		neck="Eddy Necklace",
    		ear1="Lifestorm Earring",
    		ear2="Psystorm Earring",
    		body="Academics gown +1",
    		hands="Hagondes cuffs",
    		ring1="Sangoma Ring",
    		ring2="Omega Ring",
    		back="Refraction Cape",
    		waist="Demonry sash",
    		legs="Bokwus Slops",
    		feet="Uk'uxkaj boots"}
    	
    	sets.midcast_ENF_MND = 
    		{ammo="Dosis tathlum",
    		head="Nahtirah Hat",
    		neck="Eddy Necklace",
    		ear1="Lifestorm Earring",
    		ear2="Psystorm Earring",
    		body="Savant's gown +2",
    		hands="Hagondes cuffs",
    		ring1="Sangoma Ring",
    		ring2="Omega Ring",
    		back="Refraction Cape",
    		waist="Demonry sash",
    		legs="Bokwus Slops",
    		feet="Uk'uxkaj boots"}
    	
    	sets.midcast_Impact = 
    		{ammo="Dosis tathlum",
    		neck="Eddy Necklace",
    		ear1="Lifestorm earring",
    		ear2="Psystorm earring",
    		hands="Hagondes cuffs",
    		ring1="Sangoma ring",
    		ring2="Omega Ring",
    		back="Refraction Cape",
    		waist="Demonry Sash",
    		legs="Bokwus slops",
    		feet="Bokwus Boots"}
    	
    	sets.midcast_Embrava = 
    		{main="Kirin's Pole",
    		sub="Fulcio Grip",
    		ammo="Dosis tathlum",
    		head="Savant's Bonnet +2",
    		neck="Colossus's Torque",
    		ear1="Novia Earring",
    		ear2="Loquacious Earring",
    		body="Anhur Robe",
    		hands="Savant's Bracers +2",
    		back="Merciful Cape",
    		waist="Olympus sash",
    		legs="Academic's Pants +1",
    		feet="Rubeus Boots"}
    	
    	sets.midcast_EnhancingMagic = 
    		{main="Kirin's Pole",
    		sub="Fulcio Grip",
    		ammo="Dosis tathlum",
    		head="Savant's Bonnet +2",
    		neck="Colossus's Torque",
    		ear1="Novia Earring",
    		ear2="Loquacious Earring",
    		body="Anhur Robe",
    		hands="Academic's Bracers +1",
    		back="Merciful Cape",
    		waist="Olympus sash",
    		legs="Academic's Pants +1",
    		feet="Rubeus Boots"}
    	
    	sets.precast_Stun = 
    		{ammo="Dosis tathlum",
    		head="Pedagogy moratarboard +1",
    		neck="Orunmila's Torque",
    		ear2="Lifestorm Earring",
    		ear1="Psystorm earring",
    		body="Academic's gown +1",
    		hands="Academic's Bracers +1",
    		ring1="Sangoma ring",
    		ring2="Defending ring",
    		back="Bookworm's cape",
    		waist="Witful belt",
    		legs="Academic's Pants+1",
    		feet="Academic's Loafers +1"}
    		
    	
    	sets.midcast_Cure = 
    		{main="Tamaxchi",
    		sub="Genbu's Shield",
    		body="Heka's kalasiris",
    		waist="Pythia sash",
    		back="Oretania's Cape",
    		legs="Nares Trews"}
    	
    	sets.midcast_Cure_Storm = 
    		{main="Tupsimati",
    		sub="Arbuda grip",
    		head="Gendewitha caubeen",
    		body="Heka's kalsiris",
    		hands="Bokwus gloves",
    		back="Twilight cape",
    		waist="Korin obi",
    		legs="Nares trews"}
    	
    	sets.midcast_Cure_Fast = 
    		{main="Arka II",
    		sub="Arbuda grip",
    		head="Gendewitha Caubeen",
    		neck="Orunmila's torque",
    		ear1="Novia rearring",
    		ear2="Loquacious earring",
    		body="Heka's kalasiris",
    		hands="Bokwus gloves",
    		ring1="Prolix ring",
    		ring2="Omega ring",
    		back="Oretania's cape",
    		waist="Pythia sash",
    		legs="Acad. Pants +1",
    		feet="Iaso Boots"}
    		
    	sets.midcast_Helix = set_combine(sets.Hagondes_MAB,
    		{ammo="Dosis Tathlum",
    		neck="Eddy Necklace",
    		ear1="Hecate's Earring",
    		ear2="Friomisi Earring",
    		ring1="Strendu Ring",
    		ring2="Diamond Ring",
    		back="Bookworm's Cape",
    		waist="Maniacus Sash"})	
    	
    	sets.Obi = {}
    	sets.Obi.Fire = {waist='Karin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Earth = {waist='Dorin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Water = {waist='Suirin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Wind = {waist='Furin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Ice = {waist='Hyorin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Thunder = {waist='Rairin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Light = {waist='Korin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	sets.Obi.Dark = {waist='Anrin Obi',back='Twilight Cape',lring='Zodiac Ring'}
    	
    	sets.staves = {}
    	
    	sets.staves.damage = {}
    	sets.staves.damage.Thunder = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Fire = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Ice = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Wind = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Water = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Earth = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Dark = {main="Tupsimati",sub="Zuuxowu grip"}
    	sets.staves.damage.Light = {main="Tupsimati",sub="Zuuxowu grip"}
    	
    	sets.staves.accuracy = {}
    	sets.staves.accuracy.Thunder = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Fire = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Ice = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Wind = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Water = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Earth = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Dark = {main="Tupsimati",sub="Mephitis grip"}
    	sets.staves.accuracy.Light = {main="Tupsimati",sub="Mephitis grip"}
    	
    	sets.staves.recasting = {}
    	sets.staves.recasting.Thunder = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Fire = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Ice = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Wind = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Water = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Earth = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Dark = {main="Tupsimati",sub="Arbuda Grip"}
    	sets.staves.recasting.Light = {main="Arka II",sub="Arbuda Grip"}
    	
    end
    
    
    function precast(spell)
    	if spell.english == 'Impact' then
    		equip(sets['FastCast'],{body="Twilight Cloak",main="Tupsimati",sub="Mephitis grip"})
    		
    	elseif spell.english == 'Stun' then
    		equip(sets['precast_Stun']['staves.recasting.'[spell.element]])
    		
    		if (buffactive.alacrity or buffactive.celerity or buffactive.manifestation or buffactive.accession)
    			then equip(sets['precast_Stun']['staves.recasting.'[spell.element]],{feet="Peda. Loafers",head="Natirah hat"})
    		end
    
    		if (buffactive.alacrity or buffactive.celerity or buffactive.manifestation or buffactive.accession)
    			then  equip(sets['FastCast']['staves.recasting.'[spell.element]],{feet="Peda. Loafers",head="Natirah hat"})
    		end
    	else
    		equip(sets['FastCast']['staves.recasting.'[spell.element]])
    	end
    
    	if (buffactive.alacrity or buffactive.celerity) and world.weather_element == spell.element then
    		equip({feet="Peda. Loafers",head="Nahtirah hat"})
    	end
    	
    	if spell.english == 'Tabula Rasa' then
    		equip({legs="Pedagogy pants"})
    	end
    end
    
    function midcast(spell)
    
    	if string.find(spell.english,'Cur') then 
    		equip(sets.midcast_Cure)
    		if spell.element == world.weather_element or spell_element == world.day_element or buffactive.Aurorastorm then
    			equip(sets.midcast_Cure_Storm)
    		end
    		if buffactive.accession then
    			equip(sets.midcast_Cure_Fast)
    		end
    	end
    	
    	if spell.english == 'Stun' then
    		equip(sets['precast_Stun']['staves.recasting.'[spell_element]])
    	end
    	
    	if spell.english == 'Impact' then
    		local tempset = sets['midcast_Impact']
    		tempset['body'] = 'Twilight Cloak'
    		tempset['head'] = empty
    		equip(tempset)
    		if sets.staves.accuracy[spell.element] then
    			equip(sets.staves.accuracy[spell.element])
    		end
    	end
    		
    	if spell.skill=="ElementalMagic" then
    		if string.find(spell.english,'helix') then
    			equip(sets['midcast_Helix'])
    		else
    			equip(sets.ElementalMagic)
    			if spell.element == world.weather_element or spell_element == world.day_element then
    				equip(sets.Obi[spell.element])
    			end
    		end
    		if buffactive.ebullience then
    			equip()
    		end
    		if buffactive.klimform then
    			equip ()
    		end
    	end
    	
    	if spell.skill == 'EnhancingMagic' then
    	
    		if spell.english == 'Embrava' then
    			equip(sets['midcast_Embrava'])
    		end
    		
    		if string.find(spell.english,'Haste','Sneak','Invisible','Blink','Protect','Shell','Erase','na','Reraise','Animus','Raise','Adloqium','Klimaform','Refresh') then
    			equip(sets['FastCast']['staves.recasting.'[spell.element]])
    			if (buffactive.manifestation or buffactive.alacrity or buffactive.celerity or buffactive.accession) then
    				equip({feet="Peda. Loafers", head="Nahtirah hat"})
    			end
    		end
    		else
    			equip(sets['midcast_EnhancingMagic']['staves.recasting.'[spell.element]])
    		end
    		
    		if string.find(spell.english,'storm') then
    			equip(sets['Fastcast']['staves.recasting.'[spell.element]],{feet="Pedagogy Loafers"})
    		end
    		
    		if string.find(spell.english,'Utsusemi') then
    			equip(sets['Fastcast']['staves.recasting.'[spell.element]],{feet="pedagogy Loafers", head="Nahtirah hat"})
    		end
    	
    	if spell.skill == ("EnfeeblingMagic" or "Elemental Magic") then
    		if string.find(spell.english,'Sleep','Dispel','Blind','Break','Bind','Burn','Frost','Choke','Rasp','Shock','Drown','Poison','Gravity') then
    		equip(sets['midcast_ENF_INT']['staves.accuracy.'[spell.element]])
    		else
    			equip(sets['midcast_ENF_MND']['staves.accuracy.'[spell.element]])
    		end
    	end
    	
    	if spell.skill == "DarkMagic" and not spell.english == 'Stun' then
    		equip(sets['DarkMagic']['staves.recast.'[spell.element]],{legs="Pedagogy Pants"})
    		if spell.element == world.weather_element or spell_element == world.day_element then
    				equip(sets.Obi[spell.element])
    		end
    	end
    end
    
    function aftercast(spell)
    	equip(sets['aftercast_Idle'])
    	
    	if spell.english == 'Sleep' or spell.english == 'Sleepga' then
    		send_command('@wait 50;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
    	elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II' then
    		send_command('@wait 80;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
    	elseif spell.english == 'Break' or spell.english == 'Breakga' then
    		send_command('@wait 20;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
    	end
    end
    	
    function status_change(new,tab)
    	if new == 'Resting' then
    		equip(sets['Resting'])
    	else
    		equip(sets['aftercast_Idle'])
    	end
    end
    Its loading and I am not getting an error yet, but its not doing what I want (probably wrong defining), the errors I get are when I define "if string.find blablalba, and then the list startts with the spells.


    In short I want this spellcast I use converted into gearswap, which is harder to do then I imagined:

    Code:
    <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
    	
    	<sets>
    		<group default="yes" name="Sch">
    			<set name="Idle">
    				<main>Owleyes</main>
    				<sub>Genbu's Shield</sub>
    				<ammo>Dosis tathlum</ammo>
    				<head>Spurrina coif</head>
    				<neck>Twilight torque</neck>
    				<lear>Savant's Earring</lear>
    				<rear>Moonshade Earring</rear>
    				<body>Acad. gown +1</body>
    				<hands>Serpentes cuffs</hands>
    				<lring>Dark ring</lring>
    				<rring>Defending ring</rring>
    				<back>Cheviot cape</back>
    				<waist>Pythia sash</waist>
    				<legs>Nares trews</legs>
    				<feet>Serpentes sabots</feet>
    			</set>
    				
    				
    			<set name="WalkFast" BaseSet="Idle">
    				<feet>Iaso Boots</feet>
    			</set>
    			
    			
    			<set name="Resting" BaseSet="Idle">
    			</set>
    			
    			
    			<set name="Cure">
    				<main>Tamaxchi</main>
    				<sub>Genbu's Shield</sub>
    				<ammo>Dosis tathlum</ammo>
    				<head>Peda. M.Board +1</head>
    				<neck>Orunmila's torque</neck>
    				<lear>Novia earring</lear>
    				<rear>Loquacious earring</rear>
    				<body>Heka's kalasiris</body>
    				<hands>Acad. Bracers +1</hands>
    				<lring>Prolix ring</lring>
    				<rring>Omega ring</rring>
    				<back>Oretania's cape</back>
    				<waist>Pythia sash</waist>
    				<legs>Nares trews</legs>
    				<feet>Acad. Loafers +1</feet>
    			</set>
    			
    			<set name="CureFast">
    				<main>Arka II</main>
    				<sub>Arbuda grip</sub>
    				<ammo>Dosis tathlum</ammo>
    				<head>Gende. Caubeen</head>
    				<neck>Orunmila's torque</neck>
    				<lear>Novia earring</lear>
    				<rear>Loquacious earring</rear>
    				<body>Heka's kalasiris</body>
    				<hands>Bokwus gloves</hands>
    				<lring>Prolix ring</lring>
    				<rring>Omega ring</rring>
    				<back>Oretania's cape</back>
    				<waist>Pythia sash</waist>
    				<legs>Acad. Pants +1</legs>
    				<feet>Iaso Boots</feet>
    			</set>
    			
    			<set name="CureStorm">
    				<main>Tupsimati</main>
    				<sub>Arbuda grip</sub>
    				<ammo>Dosis tathlum</ammo>
    				<head>Gende. Caubeen</head>
    				<neck>Orunmila's torque</neck>
    				<lear>Novia earring</lear>
    				<rear>Loquacious earring</rear>
    				<body>Heka's kalasiris</body>
    				<hands>Bokwus gloves</hands>
    				<lring>Prolix ring</lring>
    				<rring>Omega ring</rring>
    				<back>Twilight cape</back>
    				<waist>Korin obi</waist>
    				<legs>Nares trews</legs>
    				<feet>Peda. Loafers</feet>
    			</set>
    			
    			
    			<set name="Enhancing">
    				<main>Kirin's pole</main>
    				<sub>Fulcio grip</sub>
    				<ammo>Dosis tathlum</ammo>
    				<head>Svnt. Bonnet +2</head>
    				<neck>Colossus's torque</neck>
    				<lear>Novia earring</lear>
    				<rear>Loquacious earring</rear>
    				<body>Anhur robe</body>
    				<hands>Acad. Bracers +1</hands>
    				<lring>Dark ring</lring>
    				<rring>Defending ring</rring>
    				<back>Merciful cape</back>
    				<waist>Olympus sash</waist>
    				<legs>Acad. Pants +1</legs>
    				<feet>Rubeus boots</feet>
    			</set>
    			
    			
    			<set name="FastCast">
    				<ammo>Dosis tathlum</ammo>
    				<head>Nahtirah hat</head>
    				<neck>Orunmila's Torque</neck>
    				<lear>Novia earring</lear>
    				<rear>Loquacious earring</rear>
    				<body>Anhur robe</body>
    				<hands>Acad. Bracers +1</hands>
    				<lring>Prolix ring</lring>
    				<rring>Defending ring</rring>
    				<back>Refraction Cape</back>
    				<waist>Witful belt</waist>
    				<legs>Acad. Pants +1</legs>
    				<feet>Acad. Loafers +1</feet>
    			</set>
    	
    				
    			
    			<set name="DarkMagic" BaseSet="FastCast">
    				<lear>Lifestorm earring</lear>
    				<rear>Psystorm earring</rear>
    				<body>Acad. gown +1</body>
    				<rring>Sangoma ring</rring>
    				<back>Bookworm's cape</back>
    			</set>
    			
    			
    			<set name="Helix">
    			<ammo>Dosis tathlum</ammo>
    				<head>Hagondes hat</head>
    				<neck>Eddy necklace</neck>
    				<lear>Strophadic earring</lear>
    				<rear>Psystorm earring</rear>
    				<body>Hagondes Coat</body>
    				<hands>Hagondes cuffs</hands>
    				<lring>Diamond ring</lring>
    				<rring>Strendu ring</rring>
    				<back>Bookworm's Cape</back>
    				<waist>Maniacus sash</waist>
    				<legs>Hagondes pants</legs>
    				<feet>Hagondes sabots</feet>
    			</set>
    			
    			
    			<set name="Impact">
    				<ammo>Dosis tathlum</ammo>
    				<neck>Eddy necklace</neck>
    				<lear>Lifestorm earring</lear>
    				<rear>Psystorm earring</rear>
    				<body>Twilight cloak</body>
    				<hands>Hagondes cuffs</hands>
    				<lring>Sangoma ring</lring>
    				<rring>Omega ring</rring>
    				<back>Refraction Cape</back>
    				<waist>Demonry sash</waist>
    				<legs>Bokwus slops</legs>
    				<feet>Bokwus boots</feet>
    			</set>
    			
    			
    			<set name="Nuke">
    				<ammo>Dosis tathlum</ammo>
    				<head>Hagondes hat</head>
    				<neck>Eddy necklace</neck>
    				<lear>Hecate's earring</lear>
    				<rear>Friomisi earring</rear>
    				<body>Seidr Cotehardie</body>
    				<hands>Hagondes cuffs</hands>
    				<lring>Diamond ring</lring>
    				<rring>Strendu ring</rring>
    				<back>Bookworm's Cape</back>
    				<waist>Maniacus sash</waist>
    				<legs>Hagondes pants</legs>
    				<feet>Hagondes sabots</feet>
    			</set>
    			
    			
    			<set name="Nuke2">
    				<ammo>Dosis tathlum</ammo>
    				<head>Hagondes hat</head>
    				<neck>Eddy necklace</neck>
    				<lear>Hecate's earring</lear>
    				<rear>Friomisi earring</rear>
    				<body>Hagondes Coat</body>
    				<hands>Hagondes cuffs</hands>
    				<lring>Diamond ring</lring>
    				<rring>Strendu ring</rring>
    				<back>Bookworm's Cape</back>
    				<waist>Maniacus sash</waist>
    				<legs>Hagondes pants</legs>
    				<feet>Hagondes sabots</feet>
    			</set>
    			
    			
    			<set name="EnfeebMND">
    				<ammo>Dosis tathlum</ammo>
    				<head>Nahtirah hat</head>
    				<neck>Eddy necklace</neck>
    				<lear>Lifestorm earring</lear>
    				<rear>Psystorm earring</rear>
    				<body>Savant's gown +2</body>
    				<hands>Hagondes cuffs</hands>
    				<lring>Sangoma ring</lring>
    				<rring>Omega ring</rring>
    				<back>Refraction Cape</back>
    				<waist>Demonry sash</waist>
    				<legs>Bokwus Slops</legs>
    				<feet>Uk'uxkaj boots</feet>
    			</set>
    			
    			
    			<set name="EnfeebINT">
    				<ammo>Dosis tathlum</ammo>
    				<head>Nahtirah hat</head>
    				<neck>Eddy necklace</neck>
    				<lear>Lifestorm earring</lear>
    				<rear>Psystorm earring</rear>
    				<body>Acad. gown +1</body>
    				<hands>Hagondes cuffs</hands>
    				<lring>Sangoma ring</lring>
    				<rring>Omega ring</rring>
    				<back>Refraction Cape</back>
    				<waist>Demonry sash</waist>
    				<legs>Bokwus Slops</legs>
    				<feet>Uk'uxkaj boots</feet>
    			</set>
    			
    			<set name="Collector">
    				<item>Apamajas II</item>
    				<item>Arka II</item>
    				<item>Twilight cape</item>
    				<item>Loquac. earring</item>
    				<item>Tupsimati</item>
    				<item>Arbuda grip</item>
    				<item>Zuuxowu grip</item>
    				</set>
    			
    		</group>
    	
    	
    	</sets>
    	
    	
    	
    	<rules>
    	
    		<if status="idle">
    			<equip when="idle|aftercast" set="Idle">
    			</equip>
    		</if>
    		
    		<if Spell="Sprout Smack">
    			<equip when="idle|aftercast|precast" set="WalkFast">
    			</equip>
    		</if>
    		
    		<if status="Resting">
    			<equip set="Resting">
    			</equip>
    		</if>
    		
    		<if spell="Eagle Eye Shot">
    			<cancelspell />
    			<if status="Idle|aftercast">
    				<equip set="Idle" />
    			</if>
    			<elseif status="Resting">
    				<equip set="Resting" />
    			</elseif>
    		</if>
    		
    		
    		<!-- Stratagem Rules for SCH -->
    		<if commandprefix="/magic">
                <if BuffActive="Celerity|Alacrity" notspell="Embrava">
                    <if mode="OR" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
                        <equip when="precast|midcast">
                            <feet lock="true">Peda. Loafers</feet>
                        </equip>
                    </if>
                </if>
    			
    			<!-- Prevents equiping it when the spell is a cure spell or Embrava -->
    			<if BuffActive="Penury|Parsimony" notspell="Embrava|Cure*|Cura*">
    				<equip when="precast|midcast">
    				</equip>
                </if>
    			
    			<if BuffActive="Rapture|Ebullience" notspell="Impact">
    				<equip when="precast|midcast">
    					<head lock="true">Savant's Bonnet +2</head>
    				</equip>
                </if>
    			
    			<if BuffActive="Perpetuance|Immanence">
    				<equip when="precast|midcast">
    					<hands lock="true">Savant's Bracers +2</hands>
    				</equip>
                </if>
    			
    			<!-- Only equips feet when Elemental magic is cast -->
    				<if BuffActive="Klimaform" Skill="ElementalMagic">
    					<if mode="OR" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
    						<equip when="precast|midcast">
    						</equip>
    					</if>
                </if>
    		</if>
    		
    		<if Spell="Tabula Rasa">
    			<equip when="Precast">
    				<legs>Pedagogy pants</legs>
    			</equip>
    		</if>
    		
    		
    		<if Spell="Cure*|Cura*">
    			<if mode="OR" Day="Lightsday" WeatherElement="Light" BuffActive="Aurorastorm">
    					<equip when="precast|midcast" set="CureStorm" />
    			</if>
    			<else>
    			<equip when= "precast|midcast" set="Cure" />
    			</else>
    		</if>
    		
    		
    		<if mode="AND" Spell="Cure*|Cura*" BuffActive="Accession">
    			<equip when="precast|midacst" set="CureFast" />
    		</if>
    		
    		<if Spell="*Helix|Kaustra">
    			<equip when="precast|midcast" set="Helix">
    				<main>$%SpellElementStaff</main>
    				<sub>Zuuxowu grip</sub>
    			</equip>
    		</if>
    			
    		<if Spell="Fire III|Blizzard III|Aero III|Stone III|Thunder III|Water III|Fire IV|Blizzard IV|Aero IV|Stone IV|Thunder IV|Water IV|Fire V|Blizzard V|Aero V|Stone V|Thunder V|Water V">
    			<if advanced='"$Nukeing"="Accuracy"'>
    				<equip when="precast" set="Nuke">
    						<main>$%SpellElementStaff</main>
    						<sub>Zuuxowu grip</sub>
    				</equip>
    			</if>
    			<else>
    				<equip when="precast" set="Nuke2">
    						<main>$Staff-Dmg-%SpellElement</main>
    						<sub>Zuuxowu grip</sub>
    				</equip>
    			</else>
    				<if mode="OR" element="%DayElement" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
    					<equip when="midcast">
    						<back>Twilight cape</back>
    					</equip>
    						<if advanced='"$Obi-%spellElement"!="0"'>
    							<equip when="midcast">
    								<waist>$Obi-%spellElement</waist>
    							</equip>
    						</if>
    				</if>
    		</if>
    		
    		<if Spell="Fire|Blizzard|Aero|Stone|Thunder|Water|Fire II|Blizzard II|Aero II|Stone II|Thunder II|Water II|Firaga*|Blizzaga*|Thundaga*|Stonega*|Aeroga*|Waterga*|*ja|Fira*|Blizzara*|Aerora*|Stonera*|Thundara*|Watera*">
    			<if advanced='"$Nukeing"="Accuracy"'>
    				<equip when="precast" set="Nuke">
    						<main>$Staff-Dmg-%SpellElement</main>
    						<sub>Zuuxowu grip</sub>
    				</equip>
    			</if>
    			<else>
    				<equip when="precast" set="Nuke2">
    						<main>$Staff-Dmg-%SpellElement</main>
    						<sub>Zuuxowu grip</sub>
    				</equip>
    			</else>
    			<if mode="OR" element="%DayElement" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
    					<equip when="midcast">
    						<back>Twilight cape</back>
    					</equip>
    						<if advanced='"$Obi-%spellElement"!="0"'>
    							<equip when="midcast">
    								<waist>$Obi-%spellElement</waist>
    							</equip>
    						</if>
    			</if>
    		</if>
    		
    		<if Spell="Blind|Dispel|Break*|Sleep*|Bind|Burn|Frost|Choke|Rasp|Shock|Drown|Poison*|Gravity">
    			<equip when="precast" set="EnfeebINT">
    				<main>$%SpellElementStaff</main>
    				<sub>Mephitis grip</sub>
    			</equip>
    		</if>
    		
    		
    		<if Spell="Slow|Paralyze|Dia*|Silence">
    			<equip when="precast" set="EnfeebMND">
    				<main>$%SpellElementStaff</main>
    				<sub>Mephitis grip</sub>
    			</equip>
    		</if>
    		
    		<if Spell="Phalanx|En*|Bar*|Aquaveil|*Spikes|Embrava|Stoneskin">
    			<equip when="precast" set="Enhancing">
    			</equip>
    		</if>
    
    		<if Skill="DarkMagic" notspell="Stun">
    			<equip when="precast" set="DarkMagic">
    				<main>$%SpellElementStaff</main>
    				<sub>Mephitis grip</sub>
    			</equip>
    				<if mode="OR" element="%DayElement" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
    					<equip when="midcast">
    						<back>Twilight cape</back>
    					</equip>
    						<if advanced='"$Obi-%spellElement"!="0"'>
    							<equip when="midcast">
    								<waist>$Obi-%spellElement</waist>
    							</equip>
    						</if>
    				</if>
    		</if>
    		
    		<if Spell="Stun">
    			<if mode="OR" buffactive="Manifestation|Alacrity">
    				<equip when="precast" set="DarkMagic">
    					<main>Tupsimati</main>
    					<sub>Arbuda grip</sub>
    					<feet>Peda. Loafers</feet>
    				</equip>
    			</if>
    			<else>
    				<equip when="precast" set="DarkMagic">
    					<main>Tupsimati</main>
    					<sub>Arbuda grip</sub>
    					<head>Peda. M.Board +1</head>
    					<feet>Acad. Loafers +1</feet>
    				</equip>
    			</else>
    			</if>
    		
    		<if Spell="Haste|*na|Blink|Erase|Protect*|Shell*|Raise*|Reraise*|Animus*|Adloquium|Klimaform|Rerfresh|Klimaform">
    			<if mode="OR" buffactive="Manifestation|Alacrity|Celerity|Accession">
    				<equip when="precast" set="FastCast">
    					<main>$%SpellElementStaff</main>
    					<sub>Arbuda grip</sub>
    					<feet>Peda. Loafers</feet>
    				</equip>
    			</if>
    			<else>
    				<equip when="precast" set="FastCast">
    					<main>$%SpellElementStaff</main>
    					<sub>Arbuda grip</sub>
    					<head>Peda. M.Board +1</head>
    					<feet>Acad. Loafers +1</feet>
    				</equip>
    			</else>
    		</if>
    		
    		<if Spell="*storm">
    			<equip when="precast" set="FastCast">
    				<main>$%SpellElementStaff</main>
    				<sub>Mephitis grip</sub>
    				<feet>Peda. Loafers</feet>
    			</equip>
    		</if>
    		
    		<if Spell="Teleport*|Warp*|Sneak|Invisible|Deodorize">
    			<return />
    		</if>
    		
    		<if Spell="Regen*">
    			<equip when="precast" set="FastCast">
    				<head>Svnt. Bonnet+2</head>
    			</equip>
    		</if>
    		
    		
    		<if Spell="Impact">
    			<equip when="precast" set="Impact">
    				<main>$%SpellElementStaff</main>
    				<sub>Mephitis grip</sub>
    			</equip>
    		</if>
    		
    		<if advanced='"$SleepTimers"="1"'>
                            <if Spell="Sleep II|Repose">
                                    <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 45s</command>
                                    <command when="aftercast">wait 75;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
                                    <command when="aftercast">wait 85;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
                            </if>
                            <if Spell="Sleep|Sleepga">
                                    <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
                                    <command when="aftercast">wait 55;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
                            </if>
             </if>
    		 
    		 <!-- Toogles the Elemental staffs from accuracy staves (normal ones) to dmg staves when casting nukes like Thunder Aero etc. This is a trigger spell-->
    		 <if Spell="Foot Kick">
    			<if advanced='"$Nukeing"="Accuracy"'>
    				<var cmd="set Nukeing Damage" />
    				<command when="precast">input /echo Magic Damage + Mode </command>
    			</if>
    			<else>
    				<var cmd="set Nukeing Accuracy" />
    				<command when="precast">input /echo Magic Conserve Mode </command>
    			</else>
    		</if>
    	
    	
    	
    	</rules>
    	
    	<variables>
            <var name="IceStaff">Tupsimati</var>
            <var name="DarkStaff">Tupsimati</var>
            <var name="ThunderStaff">Tupsimati</var>
            <var name="WindStaff">Tupsimati</var>
            <var name="FireStaff">Tupsimati</var>
            <var name="EarthStaff">Tupsimati</var>
    		<var name="LightStaff">Arka II</var>
    		<var name="WaterStaff">Tupsimati</var>
            <var name="SleepTimers">1</var>
    
    	
    	    <var name="Storm-Fire">Firestorm</var>
            <var name="Storm-Ice">Hailstorm</var>
            <var name="Storm-Wind">Windstorm</var>
            <var name="Storm-Earth">Sandstorm</var>
            <var name="Storm-Thunder">Thunderstorm</var>
            <var name="Storm-Water">Rainstorm</var>
            <var name="Storm-Light">Aurorastorm</var>
            <var name="Storm-Dark">Voidstorm</var>
    		
    		<!-- insert Obi name if obtained, otherwise leave 0 -->
    		<var name="Obi-Fire">0</var>
            <var name="Obi-Ice">0</var>
            <var name="Obi-Wind">0</var>
            <var name="Obi-Earth">0</var>
            <var name="Obi-Thunder">0</var>
            <var name="Obi-Water">0</var>
            <var name="Obi-Light">0</var>
            <var name="Obi-Dark">0</var>
    
    	
    		
    		<var name="Staff-Dmg-Fire">Tupsimati</var>
            <var name="Staff-Dmg-Ice">Tupsimati</var>
            <var name="Staff-Dmg-Wind">Tupsimati</var>
            <var name="Staff-Dmg-Earth">Tupsimati</var>
            <var name="Staff-Dmg-Thunder">Tupsimati</var>
            <var name="Staff-Dmg-Water">Tupsimati</var>
            <var name="Staff-Dmg-Light">Tupsimati</var>
            <var name="Staff-Dmg-Dark">Tupsimati</var>
    		
    		<var name="Nukeing">Accuracy</var>
    	</variables>
    				
    </spellcast>

  7. #787
    RIDE ARMOR
    Join Date
    Dec 2009
    Posts
    12
    BG Level
    1
    FFXI Server
    Quetzalcoatl

    Quote Originally Posted by ph2003 View Post
    anyone able to cast sleepga by rdm/blm or whm/blm?
    i couldnt cast it when gearswap is loaded (even with a blank RDM.lua/WHM.lua, but w/o the lua file it cast fine)
    ingame error says "You cannot cast sleepga"
    I also have this problem as well. I wonder if this has something to do with the avatar's sleepga ability being mixed up. In the past I was able to cast the spell but it would never change into the proper enfeebling gear, now it just won't let me cast and gives the same error as above. I am using the whm and sch lua's from motenten.

  8. #788
    Sea Torques
    Join Date
    Aug 2007
    Posts
    725
    BG Level
    5
    FFXI Server
    Ramuh

    It's Gearswap issue: if you unload the plugin you can cast fine, sleepga (also II) is blocked even using a dummy job file. I've opened an issue on Byrth's trcaker, hopefully he can fix it.

  9. #789
    BG Content
    Join Date
    Jul 2007
    Posts
    22,370
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    I'm going to write a temporary fix for this and push it, but it's a problem that reoccurs a lot more often than it's being reported. You can't use Photosynthesis on some Mandragora monstrosity mobs with GearSwap loaded, for instance. If you go to shortcuts and look at ambiguous_names.lua, you'll see a big table with a lot of ambiguous naming cases, some of which GearSwap is probably occasionally getting wrong right now.

    Job levels and species levels need to be added to the Resources before this is going to be easy at all to screen for.

  10. #790
    Sea Torques
    Join Date
    Aug 2007
    Posts
    725
    BG Level
    5
    FFXI Server
    Ramuh

    Yep, most of the time happens with ablities, spells overlapping with blood pacts or jug pet abilities, BLU's Metallic Body is another one. Do /raw /ma... work with gearswap?

  11. #791
    BG Content
    Join Date
    Jul 2007
    Posts
    22,370
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Quote Originally Posted by arshesney View Post
    Yep, most of the time happens with ablities, spells overlapping with blood pacts or jug pet abilities, BLU's Metallic Body is another one. Do /raw /ma... work with gearswap?
    Nope. The problem is that the names are the same and they use the same prefix. I filter by generic prefix (/ma, /ja, /ws, /ms, etc.) before anything else, so it's fine if a spell has the same name as an ability, or an ability that has the same name as a monster skill. If it's not fine, that's a Shortcuts problem.

    Also:
    * Metallic Body shouldn't be a problem on BLU, because it is the only magical form of Metallic Body.
    * Blood Pacts don't overlap with Jug Pets in any way that I know.

    The problem is when you have things like multiple copies of Photosynthesis monster skills. It's going to pick one of those abilities to attempt to use, but it might not pick the right one.

  12. #792
    Sea Torques
    Join Date
    Jul 2010
    Posts
    516
    BG Level
    5
    FFXI Server
    Bahamut

    Quote Originally Posted by Damane View Post
    I have no idea whats going, i tried to solve the problem but atm the only thing that it is swaping out during cures is hekas body in and oretanias' cape, the rest doesnt even itch to swap
    Is the gear in your inventory? I scanned through really quick to see if I could spot any problems, but I didn't have time to look through the entire file. You could try removing most of it and working with only one spell until the gear swaps correctly.

    I did notice two things, though. You switch between spell.element and spell_element a lot.
    Also, you have a persistent syntax error in your file:
    Code:
    	equip(sets['Fastcast']['staves.recasting.'[spell.element]],{feet="Pedagogy Loafers"})
    I'm new to Lua as well, so it might take a bit for me to explain (or I might not be able to explain it well at all). In GearSwap, sets is a table. There are syntax shortcuts for tables whose names or keys are strings: sets.FastCast is equivalent to sets['FastCast']. In your file you have sets['FastCast']['staves.recasting.'[spell.element]] which is a jumbled mixture of the various shortcuts. The ['staves.recasting.'[spell.element]] section is unreadable by Lua as far as I know. You could write it sets.FastCast.staves.recasting[spell.element] (spell.element is a variable, not a string), or sets['FastCast']['staves']['recasting'][spell.element].
    Another problem is that those tables are not defined in your file: you have the table sets.FastCast defined, for example, and sets.staves.recasting, but those are separate tables. There is no sets.FastCast.staves.recasting = {} in your file, which would initialize that table. I think what you're trying to do is combine sets.FastCast and sets.staves.recasting, which would be done using the set_combine(set1,set2,...) function in GearSwap.
    Watch your capital letters as well. You have sets.FastCast defined, but not sets.Fastcast, which ended up being called somewhere in the file.

  13. #793
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    Quote Originally Posted by TSFFXI View Post
    Is the gear in your inventory? I scanned through really quick to see if I could spot any problems, but I didn't have time to look through the entire file. You could try removing most of it and working with only one spell until the gear swaps correctly.

    I did notice two things, though. You switch between spell.element and spell_element a lot.
    Also, you have a persistent syntax error in your file:
    Code:
    	equip(sets['Fastcast']['staves.recasting.'[spell.element]],{feet="Pedagogy Loafers"})
    I'm new to Lua as well, so it might take a bit for me to explain (or I might not be able to explain it well at all). In GearSwap, sets is a table. There are syntax shortcuts for tables whose names or keys are strings: sets.FastCast is equivalent to sets['FastCast']. In your file you have sets['FastCast']['staves.recasting.'[spell.element]] which is a jumbled mixture of the various shortcuts. The ['staves.recasting.'[spell.element]] section is unreadable by Lua as far as I know. You could write it sets.FastCast.staves.recasting[spell.element] (spell.element is a variable, not a string), or sets['FastCast']['staves']['recasting'][spell.element].
    Another problem is that those tables are not defined in your file: you have the table sets.FastCast defined, for example, and sets.staves.recasting, but those are separate tables. There is no sets.FastCast.staves.recasting = {} in your file, which would initialize that table. I think what you're trying to do is combine sets.FastCast and sets.staves.recasting, which would be done using the set_combine(set1,set2,...) function in GearSwap.
    Watch your capital letters as well. You have sets.FastCast defined, but not sets.Fastcast, which ended up being called somewhere in the file.
    thx alot for the help!

    all right I tried:

    Code:
    	if spell.english == 'Stun' 
    		then 
    		if (buffactive.alacrity or buffactive.celerity or buffactive.manifestation or buffactive.accession)
    			then equip set_combine = (sets['precast.Stun'],sets['staves.recasting'[spell.element]],{feet="Peda. Loafers",head="Natirah hat"})
    		elseif
    			equip set_combine = (sets['precast.Stun'],sets['staves.recasting.'[spell.element]])
    		end
    	end
    gearswap returs set_combine needs = near set_combine, which I did (as seen above). however after doing this it still states the same mistake when reloading, that its missing a = near set_combine. even tough I put it there. so with or without "=", there is a syntax error on combining sets during equips.

  14. #794
    Sea Torques
    Join Date
    Jul 2010
    Posts
    516
    BG Level
    5
    FFXI Server
    Bahamut

    Try
    Code:
    	if spell.english == 'Stun' then 
    		if (buffactive.alacrity or buffactive.celerity or buffactive.manifestation or buffactive.accession) then 
    			equip(set_combine(sets['precast_Stun'],sets.staves.recasting[spell.element],{feet="Peda. Loafers",head="Natirah hat"}))
    		else
    			equip(set_combine(sets['precast_Stun'],sets.staves.recasting[spell.element]))
    		end
    	end

  15. #795
    Sea Torques
    Join Date
    Aug 2007
    Posts
    725
    BG Level
    5
    FFXI Server
    Ramuh

    Motenten's BRD is fine even for normal instruments, just add them at these lines:

    Code:
    -- Gear to enhance certain classes of songs. No instruments added here since Gjallarhorn is being used.
            --sets.midcast.Ballad = {ammo="Crooner's Cithara"}
            sets.midcast.March = {range="Iron Ram Horn"}
            sets.midcast.Minuet = {range="Cornette +1"}
            sets.midcast.Minne = {range="Syrinx"}
            sets.midcast.Carol = {range="Crumhorn +1",
                feet="Aoidos' Cothrn. +1"}
            sets.midcast.Madrigal = {ammo="Traversiere"}
            --sets.midcast.Paeon = {ammo="Oneiros Harp"}
            sets.midcast.Lullaby = {range="Mary's Horn"}
            sets.midcast.Threnody = {range="Piccolo +1"}
            sets.midcast['Carnage Elegy'] = {range="Syrinx"}
            sets.midcast['Chocobo Mazurka'] = {range="Vihuela"}
            sets.midcast['Magic Finale'] = {range="Ney"}

  16. #796
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    Quote Originally Posted by TSFFXI View Post
    Try
    Code:
    	if spell.english == 'Stun' then 
    		if (buffactive.alacrity or buffactive.celerity or buffactive.manifestation or buffactive.accession) then 
    			equip(set_combine(sets['precast_Stun'],sets.staves.recasting[spell.element],{feet="Peda. Loafers",head="Natirah hat"}))
    		else
    			equip(set_combine(sets['precast_Stun'],sets.staves.recasting[spell.element]))
    		end
    	end

    ok i did this and removes all syntax mistakes. But some thing is still off with this strings. Basicly gearswap doesnt swap my gear in and out. Swaps in my midcast cure gear just fine, but refuses to swap in anything else precasts etc. basicly everything I have in the rules equipment wise defined with equip (set_combine(blblblblbl) doesnt swap out correctly. ecxept for the weapons.

    EDIT: I fixed this, but I get a slight error, why do I not change into Fastcast sets on precast and midcasts into my cure potency set? can someone look into my rules? when I cast a cure set it basicly mishmashes my Fastcast set and slaps on top of it my cure potency set. which imho is correct for when the spell ends/goes off, but I dont see the spell being started on cast with my other Fastcast pieces that are later occupied by curepot pieces


    Code:
    function precast(spell)
    	if spell.action_type == 'Magic' 
    	then equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell.element]))
    	end
    
    	
    	if spell.english == 'Impact' 
    	then equip(sets.precast.FastCast,{body="Twilight Cloak",main="Tupsimati",sub="Mephitis grip"})
    	end
    		
    		
    	if spell.english == 'Stun' 
    		then 
    		if (buffactive.alacrity or buffactive.celerity or buffactive.manifestation or buffactive.accession)
    		then
    			equip (set_combine (sets.precast.Stun,sets.staves.recasting[spell.element],{feet="Peda. Loafers",head="Natirah hat"}))
    		else
    			equip (set_combine (sets.precast.Stun,sets.staves.recasting[spell.element]))
    		end
    	end
    		
    		
    	if spell.action_type == 'Magic' and(buffactive.alacrity or buffactive.celerity or buffactive.manifestation or buffactive.accession)
    			then  equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell_element],{feet="Peda. Loafers",head="Natirah hat"}))
    	end
    	
    	
    	if spell.english == 'Tabula Rasa' then
    		equip({legs="Pedagogy pants"})
    	end
    end

  17. #797
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    How would I go about transforming something like this from spellcast into gearswap?

    Code:
    		<if commandprefix="/magic">
                <if BuffActive="Celerity|Alacrity" notspell="Embrava">
                    <if mode="OR" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
                        <equip when="precast|midcast">
                            <feet lock="true">Peda. Loafers</feet>
                        </equip>
                    </if>
                </if>

    my Idea during midcast:

    Code:
    	if spell.action_type == 'Magic'
    		then
    		if (buffactive.manifestation or buffactive.alacrity or buffactive.celerity or buffactive.accession) and not (spell.english == 'Embrava' or spell.english == 'Impact' or string.find(spell.english,'Cure') or string.find(spell.english,'Cura'))
    		then 
    			if spell.element == world.weather_element or spell_element == world.day_element
    			then
    			tempset ['feet'] = 'Pedagogy Loafers'
    			tempset ['head'] = 'Nahtriah hat'
    			equip(tempset)
    		end
    		end
    	end
    would this work and equip the head+ feet parts over the other sets, or would this ONLY equip pedagogy loafers and nahtirah hat on each spell and nullyfy all other changes?

    EDIT: ok its workign on asll spells, so the exclusion of embrava, kaustra and cure spells isnt working, whats wrong about 'and not'. or how do I have to write that? its actually even working when the corresponding weather isnt up

    EDIT: nvm found the mistake -_- higher up in precast fucntions

  18. #798
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    All right! my sch gearswap is working how I want it, still need some minor rules to implement.

    Biggest point I am missing from spellcast is the shortcut inputs for spells. like inputing /ma fire 3 results in /ma "Fire 3" <t>. That is atm my biggest gripe with gearswap. is there a way to implement somethign like that? and is there something like gearcollector that collecst gearswap defined gear?

  19. #799
    BG Content
    Join Date
    Jul 2007
    Posts
    22,370
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Instead of inputting /ma fire 3, you could do /ma "Fire 3". Or you could do send_command('fire3'). Those options will only work if you have shortcuts loaded, but you probably do.

    GearCollector still works. Just use //gs export sets xml and it will export the sets from your currently loaded job file in a GC compatible xml format. Drop it into your spellcast folder with the right name and you're good to go.

  20. #800
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    Quote Originally Posted by Byrthnoth View Post
    Instead of inputting /ma fire 3, you could do /ma "Fire 3". Or you could do send_command('fire3'). Those options will only work if you have shortcuts loaded, but you probably do.

    GearCollector still works. Just use //gs export sets xml and it will export the sets from your currently loaded job file in a GC compatible xml format. Drop it into your spellcast folder with the right name and you're good to go.
    actually I dont have shortcuts, so thats another addon to get! Thx for the help <3

Page 40 of 302 FirstFirst ... 30 38 39 40 41 42 50 90 ... LastLast

Similar Threads

  1. Replies: 6547
    Last Post: 2014-07-08, 22:45