Gearswap Support Thread

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » Windower » Support » Gearswap Support Thread
Gearswap Support Thread
First Page 2 3 ... 51 52 53 ... 182 183 184
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 660
By Ragnarok.Flippant 2015-02-03 23:48:14
Link | Quote | Reply
 
For the most part, order of functions doesn't matter, and in the cases it did, it would throw an error in your console anyway.

I'm assuming you're using Annihilator and you have:
Code
        sets.midcast.RA.Annihilator = set_combine(sets.midcast.RA)
       
        sets.midcast.RA.Annihilator = set_combine(sets.midcast.RA.Mid)
 
        sets.midcast.RA.Annihilator.Acc = set_combine(sets.midcast.RA.Acc)


where the second set should be called sets.midcast.RA.Annihilator.Mid
 Lakshmi.Krazykozy
Offline
Server: Lakshmi
Game: FFXI
user: Krazykozy
Posts: 79
By Lakshmi.Krazykozy 2015-02-04 00:23:35
Link | Quote | Reply
 
Odin.Quixacotl said: »
Leviathan.Alastar said: »
Not sure if it's possible, or if my question has been answered previously, but... Is there a way to have the Twilight mail/helm auto equip if you hit red health? Thanks in advance.
By itself, Gearswap can't auto-equip anything based on HP% or MP%. You have to perform an action or issue a command. However, you can use the Autoexec plugin to issue a GS command when certain conditions are triggered. With Autoexec it is possible to auto-equip your Twilight gear. If you want to go that route then use something like this in your Autoexec xml.
Code
<autoexec>
  <register event="lowhp|hpp_2*" silent="true">input //gs c twilight</register>
</autoexec>

Then in your GS lua you would use something like this:
Code
function get_sets()
    sets.Twilight = {head="Twilight Helm", body="Twilight Mail"}
    Twilight = 'false'
end

function precast(spell,action)
    update_gear()
end

function midcast(spell,action)
    update_gear()
end

function aftercast(spell,action)
    update_gear()
end

function status_change(new,action)
    update_gear()
end

function self_command(command)
    if command:lower() == 'twilight' then
        if Twilight == 'false' then
            Twilight = 'true'
            add_to_chat(8,'----- Gear Mode changed to Twilight Gear -----')
        elseif Twilight == 'true' then
            Twilight = 'false'
        end

        update_gear()
    end
end

function update_gear()
    if Twilight == 'true' then equip(sets.Twilight) end
end

If you don't want to go that route then substitute this function.
Code
function update_gear()
    if player.hpp < 26 then
        Twilight = 'true'
        equip(sets.Twilight)
    else
        Twilight = 'false'
    end
end
Yes you can make it so that your twilight set swaps in at a certain point, I have it for my sam it's actually quite easy to make I'll post what I have....
These are the lines I use to swap in and out of twilight set in the function status change (new,old):
if player.hp < 1000 then
equipSet = set_combine(equipSet,{body='Twilight Mail',head='Twilight Helm'})
end
if player.hp > 1000 then
equipSet = set_combine(equipSet,sets.TP)
end
 Bismarck.Alkalinescissor
Offline
Server: Bismarck
Game: FFXI
user: alkyalky
Posts: 21
By Bismarck.Alkalinescissor 2015-02-04 08:40:27
Link | Quote | Reply
 
My buddy had me set it up where gear was in one file and all the other stuff was in another file
 Bismarck.Alkalinescissor
Offline
Server: Bismarck
Game: FFXI
user: alkyalky
Posts: 21
By Bismarck.Alkalinescissor 2015-02-04 15:43:31
Link | Quote | Reply
 
Thanks Flippant works smashingly.
 Bismarck.Stanislav
Offline
Server: Bismarck
Game: FFXI
user: daNpwr
Posts: 120
By Bismarck.Stanislav 2015-02-05 06:44:15
Link | Quote | Reply
 
I've been using Bokura's SAM.lua for a while and I was wondering how to differentiate different skirmish gears with different augments.. (ie. using DA when AM down and using CRIT when AM up)
 Ragnarok.Martel
Offline
Server: Ragnarok
Game: FFXI
Posts: 2954
By Ragnarok.Martel 2015-02-05 06:52:10
Link | Quote | Reply
 
Bismarck.Stanislav said: »
I've been using Bokura's SAM.lua for a while and I was wondering how to differentiate different skirmish gears with different augments.. (ie. using DA when AM down and using CRIT when AM up)
Use the cmd //export inventory lua with the gear in question in your inventory. Now look in Windower4\addons\GearSwap\data\export for a lua file with your character name and the date. Inside you'll find a list of all the gear your were carrying in lua format. Augmented items will look like this:

body={ name="Xaddi Mail", augments={'Attack+15','Accuracy+10','"Store TP"+3',}},

Take the desired items, and put them in your gear sets. Tis done.
[+]
 Bismarck.Stanislav
Offline
Server: Bismarck
Game: FFXI
user: daNpwr
Posts: 120
By Bismarck.Stanislav 2015-02-05 06:57:13
Link | Quote | Reply
 
Ragnarok.Martel said: »
Bismarck.Stanislav said: »
I've been using Bokura's SAM.lua for a while and I was wondering how to differentiate different skirmish gears with different augments.. (ie. using DA when AM down and using CRIT when AM up)
Use the cmd //export inventory lua with the gear in question in your inventory. Now look in Windower4\addons\GearSwap\data\export for a lua file with your character name and the date. Inside you'll find a list of all the gear your were carrying in lua format. Augmented items will look like this:

body={ name="Xaddi Mail", augments={'Attack+15','Accuracy+10','"Store TP"+3',}},

Take the desired items, and put them in your gear sets. Tis done.

Thanks for the super fast response!
 Ragnarok.Martel
Offline
Server: Ragnarok
Game: FFXI
Posts: 2954
By Ragnarok.Martel 2015-02-05 07:04:03
Link | Quote | Reply
 
Well, that it was fast was entirely a coincidence. lol. Woke up, checked forums. posted.
Offline
Posts: 10
By MarrocAdalwulf 2015-02-05 14:25:20
Link | Quote | Reply
 
I'm having trouble with my BRD lua, which I got from github.com/Kinematics, for the last 2 months now. It's not wanting to switch to my debuff set when I use any of the debuff songs, instead just going to my BardSong set every time. I've tried tweaking it in various ways, and nothing seems to work. I've even tried adding in add_to_chat commands, but they don't show up, which makes me think the commands aren't being used at all? I've even turned on debugmode to try and find the problem, and it's not showing the paths that it's taking. I'm still rather new to Gearswap, only having toyed around with it with advice from friends. Any insight would be appreciated.
 Cerberus.Conagh
Offline
Server: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2015-02-05 15:12:11
Link | Quote | Reply
 
MarrocAdalwulf said: »
I'm having trouble with my BRD lua, which I got from github.com/Kinematics, for the last 2 months now. It's not wanting to switch to my debuff set when I use any of the debuff songs, instead just going to my BardSong set every time. I've tried tweaking it in various ways, and nothing seems to work. I've even tried adding in add_to_chat commands, but they don't show up, which makes me think the commands aren't being used at all? I've even turned on debugmode to try and find the problem, and it's not showing the paths that it's taking. I'm still rather new to Gearswap, only having toyed around with it with advice from friends. Any insight would be appreciated.


Try this see if it helps...

It's not motes because. well just cos.
Code
function get_sets()
    sets.precast = {}
    sets.precast.JA = {}
    
    -- Precast Sets
    sets.precast.JA.Nightingale = {feet="Bihu Slippers"}
    
    sets.precast.JA.Troubadour = {body="Bihu Justaucorps"}
    
    sets.precast.JA['Soul Voice'] = {legs="Bihu Cannions +1"}
    
    sets.precast.FC = {}
    
    sets.precast.FC.Song = {main="Felibre's Dague",sub="Genbu's Shield",--range=empty,ammo="Impatiens",
        head="Aoidos' Calot +2",neck="Orunmila's Torque",
        ear1={name="Loquac. Earring",order=5},ear2="Aoidos' Earring",body="Sha'ir Manteel",hands="Gendewitha Gages",
        ring1="Defending ring",ring2={name="Prolix Ring",order=7},back="Swith Cape",waist="Witful Belt",legs="Gendewitha Spats",
        feet="Bihu slippers"}
        
    sets.precast.FC.Normal = {--range=empty,ammo="Impatiens",
        head="Nahtirah Hat",neck="Orunmila's Torque",ear1="Loquac. Earring",body="Marduk's Jubbah +1",
        hands="Gendewitha Gages",ring2="Prolix Ring",back="Swith Cape",waist="Witful Belt",legs="Artsieq Hose",
        feet="Chelona Boots"}
        
    sets.precast.Cure = {main="Legato Dagger", sub="Genbu's Shield", body="Heka's Kalasiris",legs="Artsieq hose",back="Pahtli Cape"}
    sets.precast.EnhancingMagic = {waist="Siegel Sash"}
    
    sets.precast.FC.Lightning = {main='Apamajas I',sub=empty}
    sets.precast.FC.Fire = {main='Atar I',sub=empty}
    
    sets.precast.WS = {}
    sets.precast.WS['Mordant Rime'] = {range="Eminent Flute",ammo=empty,
        head="Brioso Roundlet +1",neck="Aqua Gorget",ear1="Steelflash Earring",ear2="Bladeborn Earring",
        body="Bihu Justaucorps +1",hands="Brioso Cuffs +1",ring1="Veela Ring",ring2="Rajas Ring",
        back="Kumbira Cape",waist="Windbuffet Belt",legs="Bihu Cannions +1",feet="Battlecast Gaiters"}
    
    -- Midcast Sets
    sets.midcast = {}
        
    sets.midcast.Haste = {main="Earth Staff",sub="Oneiros Grip",
        head={name="Nahtirah Hat",order=6},neck="Orunmila's Torque",ear1="Loquac. Earring",ear2={name="Gifted Earring",order=7},
        body={name="Hedera Cotehardie",order=5},hands={name="Gendewitha Gages",order=11},ring2={name="Prolix Ring",order=10},
        back={name="Rhapsode's Cape",order=8},waist="Phasmida Belt",legs="Bihu Cannions +1",feet={name="Chelona Boots +1",order=9}}

    sets.midcast.PerfectionDebuff = {main="Lehbrailg +2",range="Eminent Flute",ammo=empty,
        head="Bihu Roundlet +1",neck="Wind Torque",ear1="Lifestorm earring",ear2="Psystorm earring",
        body="Brioso Justaucorps +1",hands="Lurid Mitts",ring1="Carb. Ring +1",ring2="Carb. Ring +1",
        back="Rhapsode's Cape",waist="Ovate Rope",legs="Bihu Cannions +1",feet="Artsieq Boots"}		
		
    
	
	sets.midcast.DString = {main="Lehbrailg +2",sub="Mephitis Grip",range="Eminent Flute",ammo=empty,
        head="Bihu Roundlet",neck="Wind Torque",ear1="Lifestorm earring",ear2="Psystorm earring",
        body="Brioso Justaucorps +1",hands="Lurid Mitts",ring1="Carb. Ring +1",ring2="Carb. Ring +1",
        back="Rhapsode's Cape",waist="Demonry Sash",legs="Artsieq Hose",feet="Artsieq Boots"}		
		
    sets.midcast.Debuff = {main="Lehbrailg +2",range="Eminent Flute",ammo=empty,
        head="Bihu Roundlet",neck="Nuna Gorget",ear1="Lifestorm earring",ear2="Psystorm earring",
        body="Brioso Justaucorps +1",hands="Bihu Cuffs +1",ring1="Carb. Ring +1",ring2="Carb. Ring +1",
        back="Rhapsode's Cape",waist="Demonry Sash",legs="Artsieq Hose",feet="Artsieq Boots"}
    
    sets.midcast.Buff = {main="Legato Dagger",sub="Genbu's Shield",head="Aoidos' Calot +2",neck="Aoidos' Matinee",
        body="Aoidos' Hngrln. +2",hands="Ad. Mnchtte. +2",legs="Aoidos' Rhing. +2",feet="Brioso slippers", ring1="Carb. Ring +1", ring2="Carb. Ring +1"}
    
    sets.midcast.DBuff = {range="Terpander",ammo=empty}
    
    sets.midcast.GBuff = {range="Eminent Flute",ammo=empty}
    
    sets.midcast.Duration = {body="Aoidos' Hngrln. +2",neck="Aoidos' Matinee",legs="Mdk. Shalwar +1",feet="Brioso slippers"}
        
    sets.midcast.Ballad = {legs="Aoidos' Rhing. +2"}
	
	sets.midcast.March = {range="Langeleik"}
        
    sets.midcast.Scherzo = {feet="Aoidos' Cothrn. +2"}
            
    sets.midcast.Lullaby = {range="Nursemaid's harp",neck="Nuna Gorget",hands="lurid Mitts"}
	
	sets.midcast.Horde = {range="Pan's Horn",neck="Nuna Gorget",hands="Bihu Cuffs +1"}
	
	sets.midcast.Finale = {range="Pan's Horn"}
	
	sets.midcast.Minuet = {range="Apollo's Flute"}
        
    sets.midcast.Madrigal = {range="Cantabank's horn"}
            
    sets.midcast.Prelude = {range="Cantabank's horn"}
	
    sets.midcast.Mazurka = {range="Vihuela"}
	
	sets.midcast.Mambo = {range="Vihuela"}
	
    sets.midcast.Base = sets.midcast.Haste
        
    sets.midcast.Cure = {main="Chatoyant Staff",head="Gende. Caubeen",neck="Healing Torque",ear2="Novia earring",ring2="Sirona's Rng",
        body="Gendewitha Bliaut",hands="Bokwus Gloves",legs="Nares trews",feet="Gende. Galoshes",back="Oretania's Cape",ring1="Aquasoul Ring"}
        
    sets.midcast.Stoneskin = {head="Marduk's Tiara +1",waist="Siegel Sasg",hands="Marduk's Dastanas +1",
        legs="Shedir Seraweels",feet="Bihu Slippers +1"}
    
    
    --Aftercast Sets
    sets.aftercast = {}
    sets.aftercast.Regen = {main={name="Earth Staff",order=1},sub={name="Oneiros Grip",order=2},range="Oneiros Harp",ammo=empty,
        head="Bihu roundlet",neck="Twilight Torque",ear1={name="Loquac. Earring",order=7},ear2={name="Gifted Earring",order=5},
        body="Gendewitha bliaut",hands="Serpentes Cuffs",ring1="Defending Ring",ring2="Dark Ring",
        back="Iximulew Cape",waist="Flume Belt",legs={name="Nares Trews",order=6},feet="Aoidos' Cothrn. +2"}
    
    sets.aftercast.PDT = {main="Earth Staff",sub="Oneiros Grip",range="Oneiros Harp",ammo=empty,
        head="Bihu roundlet",neck="Wiglen Gorget",ear1="Loquac. Earring",ear2="Gifted Earring",
        body="Gendewitha bliaut",hands="Bihu Cuffs +1",ring1="Defending Ring",ring2="Dark Ring",
        back="Iximulew Cape",waist="Flume Belt",legs="Gendewitha Spats",feet="Aoidos' Cothrn. +2"}
    
    sets.aftercast.Engaged = {range="Angel Lyre",ammo=empty,
        head="Lithelimb Cap",neck="Asperity Necklace",ear1="Brutal Earring",ear2="Suppanomimi",
        body="Bihu Justaucorps +1",hands="Umuthi Gloves",ring1="Pyrosoul Ring",ring2="Rajas Ring",
        back="Atheling Mantle",waist="Windbuffet Belt",legs="Bihu Cannions +1",feet="Battlecast Gaiters"}
        
    sets.aftercast._tab = {'Regen','PDT'}
    
    sets.aftercast._index = 1
    
    sets.aftercast.Idle = sets.aftercast[sets.aftercast._tab[sets.aftercast._index]]
    
    DaurdSongs = T{'Water Carol','Water Carol II','Light Carol','Light Carol II','Earth Carol','Earth Carol II'}
    
    send_command('input /macro book 4;wait .1;input /macro set 1')
    timer_reg = {}
    pianissimo_cycle = false
end

function pretarget(spell)
    if spell.type == 'BardSong' and spell.target.type and spell.target.type == 'PLAYER' and not buffactive.pianissimo and not spell.target.charmed and not pianissimo_cycle then
        cancel_spell()
        pianissimo_cycle = true
        send_command('input /ja "Pianissimo" <me>;wait 1.5;input /ma "'..spell.name..'" '..spell.target.name..';')
        return
    end
    if spell.name ~= 'Pianissimo' then
        pianissimo_cycle = false
    end
end

function precast(spell)
    if spell.type == 'BardSong' then
            equip_song_gear(spell)
            equip(sets.precast.FC.Song)
    elseif spell.action_type == 'Magic' then
        equip(sets.precast.FC.Normal)
        if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
            equip(sets.precast.Cure)
        end
        if spell.skill == 'Enhancing Magic' then
            equip(sets.precast.EnhancingMagic)
        end
    elseif spell.prefix == '/weaponskill' then
        if sets.precast.WS[spell.name] then
            equip(sets.precast.WS[spell.name])
        end
    end
    
    if sets.precast.FC[tostring(spell.element)] then equip(sets.precast.FC[tostring(spell.element)]) end
    if sets.precast.JA[spell.english] then equip(sets.precast.JA[spell.english]) end
    if player.status == 'Engaged' then equip({range=nil}) end
end

function midcast(spell)
    if spell.type == 'BardSong' then
        equip_song_gear(spell)
    elseif string.find(spell.english,'Cur') then
                if spell.target.name == player.name then
                        equip(sets.midcast.Base,sets.midcast.Cure)
						add_to_chat(158,'Self Cure')
                else
                        equip(sets.midcast.Base,sets.midcast.Cure)
                end

	
	
	
        equip(sets.midcast.Base,sets.midcast.Cure)
    elseif spell.english=='Stoneskin' then
        equip(sets.midcast.Base,sets.midcast.Stoneskin)
    end
end

function aftercast(spell)
    if spell.type and spell.type == 'BardSong' and spell.target and spell.target.type:upper() == 'SELF' then
        local t = os.time()
        
        -- Eliminate songs that have already expired
        local tempreg = {}
        for i,v in pairs(timer_reg) do
            if v < t then tempreg[i] = true end
        end
        for i,v in pairs(tempreg) do
            timer_reg[i] = nil
        end
        
        local dur = calculate_duration(spell.name)
        if timer_reg[spell.name] then
            if (timer_reg[spell.name] - t) <= 120 then
                send_command('timers delete "'..spell.name..'"')
                timer_reg[spell.name] = t + dur
                send_command('timers create "'..spell.name..'" '..dur..' down')
            end
        else
            local maxsongs = 2
            if player.equipment.range == 'Terpander' then
                maxsongs = maxsongs+2
            end
            if buffactive['Clarion Call'] then
                maxsongs = maxsongs+1
            end
            if maxsongs < table.length(timer_reg) then
                maxsongs = table.length(timer_reg)
            end
            
            if table.length(timer_reg) < maxsongs then
                timer_reg[spell.name] = t+dur
                send_command('timers create "'..spell.name..'" '..dur..' down')
            else
                local rep,repsong
                for i,v in pairs(timer_reg) do
                    if t+dur > v then
                        if not rep or rep > v then
                            rep = v
                            repsong = i
                        end
                    end
                end
                if repsong then
                    timer_reg[repsong] = nil
                    send_command('timers delete "'..repsong..'"')
                    timer_reg[spell.name] = t+dur
                    send_command('timers create "'..spell.name..'" '..dur..' down')
                end
            end
        end
    end
    if player.status == 'Engaged' then
        equip(sets.aftercast.Engaged)
    else
        equip(sets.aftercast.Idle)
    end
end

function status_change(new,old)
    if new == 'Engaged' then
        equip(sets.aftercast.Engaged)
        disable('main','sub','ammo')
    elseif T{'Idle','Resting'}:contains(new) then
        equip(sets.aftercast.Idle)
    end
end

function self_command(cmd)
    if cmd == 'unlock' then
        enable('main','sub','ammo')
    elseif cmd == 'midact' then
        midaction(false)
    elseif cmd == 'idle' then
        sets.aftercast._index = sets.aftercast._index%(#sets.aftercast._tab) + 1
        windower.add_to_chat(8,'Aftercast Set: '..sets.aftercast._tab[sets.aftercast._index])
        sets.aftercast.Idle = sets.aftercast[sets.aftercast._tab[sets.aftercast._index]]
        equip(sets.aftercast.Idle)
    end
end

function equip_song_gear(spell)
    if DaurdSongs:contains(spell.english) then
        equip(sets.midcast.Base,sets.midcast.DBuff)
    else
        if spell.target.type == 'MONSTER' then
            equip(sets.midcast.Base,sets.midcast.Debuff,sets.midcast.GBuff)
            if buffactive.troubadour or buffactive['elemental seal'] then
                equip(sets.midcast.Duration)
            end
            if string.find(spell.english,'Lullaby') then equip(sets.midcast.Duration,sets.midcast.Lullaby) end
        else
            equip(sets.midcast.Base,sets.midcast.Buff,sets.midcast.GBuff)
            if string.find(spell.english,'Ballad') then equip(sets.midcast.Ballad) end
            if string.find(spell.english,'Scherzo') then equip(sets.midcast.Scherzo) end
			            if string.find(spell.english,'Finale') then equip(sets.midcast.Finale) end
            if string.find(spell.english,'Minuet') then equip(sets.midcast.Minuet) end
			            if string.find(spell.english,'Madirgal') then equip(sets.midcast.Madrigal) end
            if string.find(spell.english,'Prelude') then equip(sets.midcast.Prelude) end
			            if string.find(spell.english,'Mambo') then equip(sets.midcast.Mambo) end
            if string.find(spell.english,'Mazurka') then equip(sets.midcast.Mazurka) end
			            if string.find(spell.english,'Lullaby') then equip(sets.midcast.Lullaby) end
			if string.find(spell.english,'March') then equip(sets.midcast.March) end
        end
    end
end

function calculate_duration(name)
    local mult = 1
    if player.equipment.range == "Eminent Flute" then mult = mult + 0.2 end
	if player.equipment.range == "Apollo's Flute" then mult = mult + 0.3 end
	if player.equipment.range == "Cantabank's Horn" then mult = mult + 0.3 end
	if player.equipment.range == "Vihuela" then mult = mult + 0.3 end
	if player.equipment.range == "Langeleik" then mult = mult + 0.3 end

    
    if player.equipment.neck == "Aoidos' Matinee" then mult = mult + 0.1 end
    if player.equipment.feet == "Brioso Slippers" then mult = mult + 0.1 end
    if player.equipment.body == "Aoidos' Hngrln. +2" then mult = mult + 0.1 end
    if player.equipment.legs == "Mdk. Shalwar +1" then mult = mult + 0.1 end
    if player.equipment.main == "Carnwenhan" then mult = mult + 0.5 end
    
    if string.find(name,'March') and player.equipment.hands == 'Ad. Mnchtte. +2' then mult = mult + 0.1 end
    if string.find(name,'Minuet') and player.equipment.body == "Aoidos' Hngrln. +2" then mult = mult + 0.1 end
    if string.find(name,'Madrigal') and player.equipment.head == "Aoidos' Calot +2" then mult = mult + 0.1 end
    if string.find(name,'Ballad') and player.equipment.legs == "Aoidos' Rhing. +2" then mult = mult + 0.1 end
    if string.find(name,'Scherzo') and player.equipment.feet == "Aoidos' Cothrn. +2" then mult = mult + 0.1 end
    
    if buffactive.Troubadour then
        mult = mult*2
    end
    if string.find(name,'Scherzo') and buffactive['Soul Voice'] then
        mult = mult*2
    elseif string.find(name,'Scherzo') and buffactive.marcato then
        mult = mult*1.5
    end
    
    return mult*120
end

function reset_timers()
    for i,v in pairs(timer_reg) do
        send_command('timers delete "'..i..'"')
    end
    timer_reg = {}
end

windower.register_event('zone change',reset_timers)
windower.register_event('logout',reset_timers)
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-05 16:10:00
Link | Quote | Reply
 
ok this may have been asked several times before but I am trying to add a set that would activate depending on my buff I.E while "phalanx" is up I'll be wearing it and as soon as it's dispeled or I declick it I would go back to my default set what would be the wording for that and would it matter where I placed it on my lua?
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-02-06 01:45:27
Link | Quote | Reply
 
Carbuncle.Galmaximas said: »
ok this may have been asked several times before but I am trying to add a set that would activate depending on my buff I.E while "phalanx" is up I'll be wearing it and as soon as it's dispeled or I declick it I would go back to my default set what would be the wording for that and would it matter where I placed it on my lua?
Code
function get_sets()
	sets.Phalanx = {Phalanx gear here}
	sets.Idle = {Normal Gear}
end

-- Called when a player gains or loses a buff.
function buff_change(buff, gain)
	if gain and buff == "Phalanx" then equip(sets.Phalanx) end
	if not gain and buff == "Phalanx" then equip(sets.Idle) end
end
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 04:36:24
Link | Quote | Reply
 
Holy *** thx QUixacotl worked like a charm
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 05:17:40
Link | Quote | Reply
 
and now I did something and it's not swapping any gear at all although it loads my lua file just fine doesn't say there are any errors with the lua yet it won't swap a single piece of my gear accordingly
 Cerberus.Conagh
Offline
Server: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2015-02-06 06:40:10
Link | Quote | Reply
 
Carbuncle.Galmaximas said: »
Quote | Reply | Report | Score: 0 +

and now I did something and it's not swapping any gear at all although it loads my lua file just fine doesn't


/gs enable all

try that
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 08:43:10
Link | Quote | Reply
 
Cerberus.Conagh said: »
Carbuncle.Galmaximas said: »
Quote | Reply | Report | Score: 0 +

and now I did something and it's not swapping any gear at all although it loads my lua file just fine doesn't


/gs enable all

try that

Said all slots enabled but it's still not swapping
 Cerberus.Conagh
Offline
Server: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2015-02-06 09:09:11
Link | Quote | Reply
 
Carbuncle.Galmaximas said: »
Cerberus.Conagh said: »
Carbuncle.Galmaximas said: »
Quote | Reply | Report | Score: 0 +

and now I did something and it's not swapping any gear at all although it loads my lua file just fine doesn't


/gs enable all

try that

Said all slots enabled but it's still not swapping

Then theres errors with your rules.

Post your GS
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 09:16:29
Link | Quote | Reply
 
best i can do is send it over skype or email it i can't click and drag it over (sorry in the army for a living)
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 09:29:24
Link | Quote | Reply
 
Cerberus.Conagh said: »
Carbuncle.Galmaximas said: »
Cerberus.Conagh said: »
Carbuncle.Galmaximas said: »
Quote | Reply | Report | Score: 0 +

and now I did something and it's not swapping any gear at all although it loads my lua file just fine doesn't


/gs enable all

try that

Said all slots enabled but it's still not swapping

Then theres errors with your rules.

Post your GS

well let me rephrase that I'm not sure how to post it here normally my friend recieves and sends it over skype.
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 10:32:07
Link | Quote | Reply
 
anyone want to walk me through posting my GS on here? I'm using a laptop that runs windows 8 if that helps at all
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-02-06 12:02:09
Link | Quote | Reply
 
Carbuncle.Galmaximas said: »
anyone want to walk me through posting my GS on here? I'm using a laptop that runs windows 8 if that helps at all
Click the following link and paste your GS in the big window. Hit Submit and post the link. http://pastebin.com/
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 12:13:32
Link | Quote | Reply
 
http://pastebin.com/cKs2kxTr
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 12:53:23
Link | Quote | Reply
 
Carbuncle.Galmaximas said: »


yeah as I said it loads fine shows no errors but it doesn't swap a single thing unsure why if anyone could assist I'd greatly appreciate it
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-02-06 14:30:50
Link | Quote | Reply
 
Carbuncle.Galmaximas said: »
Carbuncle.Galmaximas said: »


yeah as I said it loads fine shows no errors but it doesn't swap a single thing unsure why if anyone could assist I'd greatly appreciate it
I would be surprised if it loaded as is. Actually you have quite a few errors because you butchered it.

Lessee where do I begin?

Lines 24, 340 and 343: You have 3 instances of function get_sets() and 2 of them are intermixed in functions.
Line 312: sets.phalanx.engaged is a nil value because it's not tabled correctly. Same as Line 323; sets.enlight.engaged.

Speaking of Line 323, it's a sets container and doesn't belong in functions. In that line you have ring1"Defending Ring",ring2"Patricius Ring" which is a syntax error and you GS would never load like this.

You didn't mention you're using Mote's luas so Line 335 function buff_change shouldn't be in there.

Basically everywhere you edited is either an inproper syntax or doesn't belong where you put it. There's nothing wrong with experimenting but at least try to place things where they belong. Sets in sets and functions in functions.

I went ahead and fixed everything so here you go. http://pastebin.com/HA4ztTUH
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 14:36:12
Link | Quote | Reply
 
Odin.Quixacotl said: »
Carbuncle.Galmaximas said: »
Carbuncle.Galmaximas said: »


yeah as I said it loads fine shows no errors but it doesn't swap a single thing unsure why if anyone could assist I'd greatly appreciate it
I would be surprised if it loaded as is. Actually you have quite a few errors because you butchered it.

Lessee where do I begin?

Lines 24, 340 and 343: You have 3 instances of function get_sets() and 2 of them are intermixed in functions.
Line 312: sets.phalanx.engaged is a nil value because it's not tabled correctly. Same as Line 323; sets.enlight.engaged.

Speaking of Line 323, it's a sets container and doesn't belong in functions. In that line you have ring1"Defending Ring",ring2"Patricius Ring" which is a syntax error and you GS would never load like this.

You didn't mention you're using Mote's luas so Line 335 function buff_change shouldn't be in there.

Basically everywhere you edited is either an inproper syntax or doesn't belong where you put it. There's nothing wrong with experimenting but at least try to place things where they belong. Sets in sets and functions in functions.

I went ahead and fixed everything so here you go. http://pastebin.com/HA4ztTUH

thanks a ton and yeah I tried experimenting thinking i had a handle on things and I clearly did not sorry about that and thanks for explaning where i goofed up
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-02-06 15:05:22
Link | Quote | Reply
 
Actually I forgot to change idleSet to meleeSet in lines 372 and 376. Glad I caught it and fixed that. Guess we all make mistakes. XD http://pastebin.com/HA4ztTUH
 Carbuncle.Galmaximas
Offline
Server: Carbuncle
Game: FFXI
Posts: 88
By Carbuncle.Galmaximas 2015-02-06 15:22:40
Link | Quote | Reply
 
Odin.Quixacotl said: »
Actually I forgot to change idleSet to meleeSet in lines 372 and 376. Glad I caught it and fixed that. Guess we all make mistakes. XD http://pastebin.com/HA4ztTUH

thing is you can realize and catch your mistakes I destroy luas lol but yeah it works like a charm your line 480 was missing end or should i say my line 480 you were fixing lol
Offline
Posts: 10
By MarrocAdalwulf 2015-02-06 15:27:58
Link | Quote | Reply
 
So, I'm still trying to figure out what's wrong with my gearsets in my BRD lua files. I tried using Conagh's file, but it confused the hell out of me, and would force me to completely rework how I play BRD from the ground up. I'd rather not do that if I can help it. If someone could look over the coding for it, it's right here for the initial code, while I have a sidecar file with my gearsets here.

I'll admit, I'm not that great at working with this code, as I don't fully understand it yet. Most coding I've done would be HTML coding for websites, and very slight work on simple gaming designs, all several years ago, so I know I'm rusty at best. Any help would be much appreciated.
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-02-06 16:42:03
Link | Quote | Reply
 
MarrocAdalwulf said: »
So, I'm still trying to figure out what's wrong with my gearsets in my BRD lua files. I tried using Conagh's file, but it confused the hell out of me, and would force me to completely rework how I play BRD from the ground up. I'd rather not do that if I can help it. If someone could look over the coding for it, it's right here for the initial code, while I have a sidecar file with my gearsets here.

I'll admit, I'm not that great at working with this code, as I don't fully understand it yet. Most coding I've done would be HTML coding for websites, and very slight work on simple gaming designs, all several years ago, so I know I'm rusty at best. Any help would be much appreciated.
If you're using a sidecar for your gearsets then you have to include the function user_setup() in your sidecar. That's what's missing. Also, function user_setup() should be the exact copy as in your main lua.

Your sidecar should look like this:
Code
-------------------------------------------------------------------------------------------------------------------
-- User setup functions for this job.  Recommend that these be overridden in a sidecar file.
-------------------------------------------------------------------------------------------------------------------

-- Setup vars that are user-dependent.  Can override this function in a sidecar file.
function user_setup()
    state.OffenseMode:options('None', 'Normal')
    state.CastingMode:options('Normal', 'Resistant')
    state.IdleMode:options('Normal', 'PDT')

    brd_daggers = S{'Izhiikoh', 'Vanir Knife', 'Atoyac', 'Aphotic Kukri', 'Sabebus'}
    pick_tp_weapon()
    
    -- Adjust this if using the Terpander (new +song instrument)
    info.ExtraSongInstrument = 'Daurdabla'
    -- How many extra songs we can keep from Daurdabla/Terpander
    info.ExtraSongs = 2
    
    -- Set this to false if you don't want to use custom timers.
    state.UseCustomTimers = M(true, 'Use Custom Timers')
    
    -- Additional local binds
    send_command('bind ^` gs c cycle ExtraSongsMode')
    send_command('bind !` input /ma "Chocobo Mazurka" <me>')

    select_default_macro_book()
end

-- Define sets and vars used by this job file.
function init_gear_sets()
    -- gear here
    -- more gear
end
 Odin.Myhnegon
Offline
Server: Odin
Game: FFXI
user: Myhnegon
Posts: 33
By Odin.Myhnegon 2015-02-06 17:09:47
Link | Quote | Reply
 
Hello everyone,

i'm using Motenten's BRD lua and when i use showswaps, it seems like it isn't putting the grip in the sub slot at the midcast section (As aftercast tho). Precast is Dagger, then switching to staff and grip. Maybe it's too fast and can't put sub in in time? Any way around this?


Thx for ur help
First Page 2 3 ... 51 52 53 ... 182 183 184
Log in to post.