Gearswap Support Thread

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Support » Gearswap Support Thread
Gearswap Support Thread
First Page 2 3 ... 50 51 52 ... 180 181 182
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2015-01-28 10:03:10
Link | Quote | Reply
 
Uh. Are you sure you don't have any old equip commands in your macro? Like, this happens even if you cast from the menu or type /utsusemini?

That's the only reasonable explanation I can think of.
Offline
Posts: 45
By Careman 2015-01-30 07:08:11
Link | Quote | Reply
 
Hey!

How do I add sets/modes?

On my BLU I can press F9 to change between normal, acc, refresh and learning.
I'd like to add a treasure hunter mode to that.
I've figure out how to get the TH to show when I press F9, but not how to actually set up a set for it.

I use Kinematics lua.
https://github.com/Kinematics/GearSwap-Jobs/blob/master/BLU.lua
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-01-30 13:57:45
Link | Quote | Reply
 
Careman said: »
Hey!

How do I add sets/modes?

On my BLU I can press F9 to change between normal, acc, refresh and learning.
I'd like to add a treasure hunter mode to that.
I've figure out how to get the TH to show when I press F9, but not how to actually set up a set for it.

I use Kinematics lua.
https://github.com/Kinematics/GearSwap-Jobs/blob/master/BLU.lua
Code
function user_setup()
    state.OffenseMode:options('Normal', 'Acc', 'Refresh', 'Learning', 'TreasureHunter')
    state.WeaponskillMode:options('Normal', 'Acc')
    state.CastingMode:options('Normal', 'Resistant')
    state.IdleMode:options('Normal', 'PDT', 'Learning')

    -- Additional local binds
    send_command('bind ^` input /ja "Chain Affinity" <me>')
    send_command('bind !` input /ja "Efflux" <me>')
    send_command('bind @` input /ja "Burst Affinity" <me>')

    update_combat_form()
    select_default_macro_book()
end

-- Define sets and vars used by this job file.
function init_gear_sets()
    -- stuff

    sets.TreasureHunter = {ring1= "Gorney Ring", waist="Chaac Belt"}

    -- more stuff
end

-- Modify the default melee set after it was constructed.
function customize_melee_set(meleeSet)
    if state.OffenseMode.value == 'TreasureHunter' then
        meleeSet = set_combine(meleeSet, sets.TreasureHunter)
    end

    return meleeSet
end
Offline
Posts: 45
By Careman 2015-01-30 17:25:37
Link | Quote | Reply
 
Thank you very much Quixacotl!
Much appreciated!
 Sylph.Googlebonker
Offline
Server: Sylph
Game: FFXI
Posts: 20
By Sylph.Googlebonker 2015-01-30 20:25:22
Link | Quote | Reply
 
Hello!

Let's say I want macro book 1, macro set 1 to be a set of Cure macros.

CTRL 1:
/ma "Cure" <p0>
/backroot
CTRL 2:
/ma "Cure" <p1>
/backroot
CTRL 3:
/ma "Cure" <p2>
/backroot
CTRL 4:
/ma "Cure" <p3>
/backroot
CTRL 5:
/ma "Cure" <p4>
/backroot
CTRL 6:
/ma "Cure" <p5>
/backroot
CTRL 7:
/ma "Cure" <t>
/backroot
CTRL 8:
CTRL 9:
CTRL 0:
/backroot

I want to use the same macro book 1, macro set 1 for multiple jobs.

WHM hub is on macro book 2, macro set 2
BRD hub is on macro book 2, macro set 3
BLM hub is on macro book 2, macro set 4

I know that on the above 3 book/sets, I would use:
"/macro book 1
/macro set 1"
to get TO the cure macros.

How do I make an .lua file accept "/backroot" as a command to go back to a specific macro book/set?
Ex. When WHM.lua is loaded "/backroot" takes the macro book/set back to macro book 2, macro set 2.
When BRD.lua is loaded "/backroot" takes the macro book/set back to macro book 2, macro set 3.
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-01-30 23:18:21
Link | Quote | Reply
 
Assuming you meant Gearswap because you posted here, while GS can manage macros to a certain extent it is a gear-changing engine. You really should use the Yush addon for this which is a macro engine. Yush can do exactly what you're asking. Arcon gives examples how you can make a single command/keybind for multiple jobs.
 Leviathan.Alastar
Offline
Server: Leviathan
Game: FFXI
Posts: 6
By Leviathan.Alastar 2015-01-30 23:46:03
Link | Quote | Reply
 
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.
 Lakshmi.Bewolfe
Offline
Server: Lakshmi
Game: FFXI
Posts: 9
By Lakshmi.Bewolfe 2015-01-31 00:20:25
Link | Quote | Reply
 
I was trying to mess with a gearswap from BG's Gearswap Shop Thread @ http://pastebin.com/7tDdpebj.

There, they had some sets for Resolution and Dimidation..
Code
        sets.Resolution.Normal = {ammo="Ginsen",
                        head="Whirlpool Mask",neck="Breeze Gorget",ear1="Bladeborn Earring",ear2="Steelflash Earring",
                        body="Qaaxo Harness",hands="Futhark Mitons +1",ring1="Pyrosoul Ring",ring2="Epona's Ring",
                        back="Buquwik Cape",waist="Breeze Belt",legs="Manibozho Brais",feet="Qaaxo Leggings"}
       
        sets.Resolution.Accuracy = {ammo="Honed Tathlum",
                        head="Whirlpool Mask",neck="Breeze Gorget",ear1="Bladeborn Earring",ear2="Steelflash Earring",
                        body="Karmesin Vest",hands="Buremte Gloves",ring1="Pyrosoul Ring",ring2="Epona's Ring",
                        back="Buquwik Cape",waist="Breeze Belt",legs="Ighwa Trousers",feet="Qaaxo Leggings"}
       
 
        sets.Dimidiation = {}
        sets.Dimidiation.index = {'Normal','Accuracy'}
        Dimidiation_index = 1
       
        sets.Dimidiation.Normal = {ammo="Ginsen",
                        head="Uk'uxkaj Cap",neck="Light Gorget",ear1="Moonshade Earring",ear2="Brutal Earring",
                        body="Qaaxo Harness",hands="Futhark Mitons +1",ring1="Rajas Ring",ring2="Epona's Ring",
                        back="Atheling Mantle",waist="Windbuffet Belt",legs="Manibozho Brais",feet="Futhark Boots +1"}
       
        sets.Dimidiation.Accuracy = {ammo="Ginsen",
                        head="Whirlpool Mask",neck="Light Gorget",ear1="Moonshade Earring",ear1="Brutal Earring",
                        body="Karmesin Vest",hands="Buremte Gloves",ring1="Thundersoul Ring",ring2="Patricius Ring",
                        back="Evasionist's Cape",waist="Light Belt",legs="Ighwa Trousers",feet="Qaaxo Leggings"}


So I tried to input my own Shockwave WS Set, just by throwing it @ the end of that..
Code
	sets.Shockwave = {}
	sets.Shockwave.index = {'Normal','Accuracy'}
	Shockwave_index = 1
	
	sets.Shockwave.Normal = {ammo="Ginsen",
			head="Whirlpool Mask",neck="Aqua Gorget",ear1="Moonshade Earring",ear1="Brutal Earring",
			body="Emet Harness +1",hands="Buremte Gloves",ring1="Rajas Ring",ring2="Patricius Ring",
			back="Atheling Mantle",waist="Aqua Belt",legs="Ighwa Trousers",feet="Qaaxo Leggings"}
			
	sets.Shockwave.Accuracy = {ammo="Ginsen",
			head="Whirlpool Mask",neck="Aqua Gorget",ear1="Moonshade Earring",ear1="Brutal Earring",
			body="Emet Harness +1",hands="Buremte Gloves",ring1="Rajas Ring",ring2="Patricius Ring",
			back="Atheling Mantle",waist="Aqua Belt",legs="Ighwa Trousers",feet="Qaaxo Leggings"}


But this totally didn't work.. It doesn't seem that there are any errors, but as I watch my gear during ws's.. doesn't switch at all.. Is there something I"m doing wrong? :(
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-01-31 02:56:07
Link | Quote | Reply
 
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
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-01-31 03:34:55
Link | Quote | Reply
 
Lakshmi.Bewolfe said: »
I was trying to mess with a gearswap from BG's Gearswap Shop Thread @ http://pastebin.com/7tDdpebj.

There, they had some sets for Resolution and Dimidation..

So I tried to input my own Shockwave WS Set, just by throwing it @ the end of that..

But this totally didn't work.. It doesn't seem that there are any errors, but as I watch my gear during ws's.. doesn't switch at all.. Is there something I"m doing wrong? :(
It's because you forgot to add the check for spell, "Shockwave" in the precast function and you have no sets.WS to fall back on. You should also nest your spell checks correctly.
Code
function get_sets()
    sets.WS ={}
    sets.WS['Resolution'] = set_combine(sets.WS,{    })
    sets.WS['Requiescat'] = set_combine(sets.WS,{    })
    sets.WS['Dimidiation'] = set_combine(sets.WS,{    })
    sets.WS['Shockwave'] = set_combine(sets.WS, {    })
end

function precast(spell,action)
    if spell.type=="WeaponSkill" then
        if spell.english == "Resolution" then
            equip(sets.Resolution[sets.Resolution.index[Resolution_index]])
        elseif spell.english == "Requiescat" then
            equip(sets.Requiescat[sets.Requiescat.index[Requiescat_index]])
        elseif spell.english == "Shockwave" then
            -- Whatever here
        else
            equip(sets.WS)
        end
    end
end

Edit* A few of BG's GS examples are sorely out of date or just bad examples. Feel free to use mine. http://pastebin.com/0wkCq6Tc
 Leviathan.Alastar
Offline
Server: Leviathan
Game: FFXI
Posts: 6
By Leviathan.Alastar 2015-01-31 07:28:41
Link | Quote | Reply
 
Thank again! I'll try it out and see if I can get it to work.
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2015-01-31 13:28:33
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>

Never used autoexec before, but won't that just keep toggling back and forth each time you hit low HP?

Something like this should work fine on its own.
Code
windower.register_event('hpp change', function(new, old)
    if new<=20 then
        equip({head="Twilight Helm",body="Twilight Mail"})
        disable('head','body')
    else
        enable('head','body')
    end
end)


Odin.Quixacotl said: »
Lakshmi.Bewolfe said: »
I was trying to mess with a gearswap from BG's Gearswap Shop Thread @ http://pastebin.com/7tDdpebj.

There, they had some sets for Resolution and Dimidation..

So I tried to input my own Shockwave WS Set, just by throwing it @ the end of that..

But this totally didn't work.. It doesn't seem that there are any errors, but as I watch my gear during ws's.. doesn't switch at all.. Is there something I"m doing wrong? :(
It's because you forgot to add the check for spell, "Shockwave" in the precast function and you have no sets.WS to fall back on. You should also nest your spell checks correctly.
Code
function get_sets()
    sets.WS ={}
    sets.WS['Resolution'] = set_combine(sets.WS,{    })
    sets.WS['Requiescat'] = set_combine(sets.WS,{    })
    sets.WS['Dimidiation'] = set_combine(sets.WS,{    })
    sets.WS['Shockwave'] = set_combine(sets.WS, {    })
end

function precast(spell,action)
    if spell.type=="WeaponSkill" then
        if spell.english == "Resolution" then
            equip(sets.Resolution[sets.Resolution.index[Resolution_index]])
        elseif spell.english == "Requiescat" then
            equip(sets.Requiescat[sets.Requiescat.index[Requiescat_index]])
        elseif spell.english == "Shockwave" then
            -- Whatever here
        else
            equip(sets.WS)
        end
    end
end

Edit* A few of BG's GS examples are sorely out of date or just bad examples. Feel free to use mine. http://pastebin.com/0wkCq6Tc

Using spell.english to index the sets.WS table would allow you to minimize the code tremendously, while also creating a fluid structure so that he could add new sets whenever he wanted without amending the rules.
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-02-01 16:46:57
Link | Quote | Reply
 
I just used the above examples to emphasize the use of Autoexec and Gearswap. But your ideas are certainly a more efficient way to get it done.
Offline
Posts: 38
By Gavlin 2015-02-02 13:00:04
Link | Quote | Reply
 
Sorry if this is already posted someplace but I could not find it.

I am using mote/kin GS and can't figure out how to add the new blu

Spells into it. Simply adding them to the lists 'spell name', does

Not seem to work. Thanks
 Ragnarok.Worldslost
Offline
Server: Ragnarok
Game: FFXI
Posts: 82
By Ragnarok.Worldslost 2015-02-02 13:41:47
Link | Quote | Reply
 
Gavlin said: »
Sorry if this is already posted someplace but I could not find it.

I am using mote/kin GS and can't figure out how to add the new blu

Spells into it. Simply adding them to the lists 'spell name', does

Not seem to work. Thanks

For mote add spells to list in blu_magic_map section at top into the sets they belong
Offline
Posts: 801
By Crevox 2015-02-02 17:10:29
Link | Quote | Reply
 
Is there a better way to check if an item is in the inventory? This keeps coming as true even though the item isn't in my inventory (it's in my sack), giving me itemizer errors, telling me it's trying to put it away, but it can't find it in my inventory:

Code
if ((player.inventory["Balrahn's Ring"] or player.wardrobe["Balrahn's Ring"]) and not
(new_zone_id==75 or new_zone_id==77 or new_zone_id==55 or new_zone_id==56 or new_zone_id==69 or new_zone_id==63 or new_zone_id==66 or new_zone_id==74)) then
	send_command("put Balrahn's Ring sack")
end

I'm running an event to check this on zone change. I would take a guess this would happen because of a not fully loaded inventory set (still, why would it come as true if it doesn't even know?) but it also happens elsewhere when I try elsewhere (customize_idle_set).
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-02-02 23:34:19
Link | Quote | Reply
 
Crevox said: »
Is there a better way to check if an item is in the inventory? This keeps coming as true even though the item isn't in my inventory (it's in my sack), giving me itemizer errors, telling me it's trying to put it away, but it can't find it in my inventory:

Code
if ((player.inventory["Balrahn's Ring"] or player.wardrobe["Balrahn's Ring"]) and not
(new_zone_id==75 or new_zone_id==77 or new_zone_id==55 or new_zone_id==56 or new_zone_id==69 or new_zone_id==63 or new_zone_id==66 or new_zone_id==74)) then
	send_command("put Balrahn's Ring sack")
end

I'm running an event to check this on zone change. I would take a guess this would happen because of a not fully loaded inventory set (still, why would it come as true if it doesn't even know?) but it also happens elsewhere when I try elsewhere (customize_idle_set).
Line 1 is a syntax error so, in this case, it will always be true. "if (null) and..."
Line 2, new_zone_id is not a GS variable AFAIK. It is world_zone_id.

So essentially you're saying, "if (null) and (null) or (null) then..." - will always be true.
Try this instead.
Code
areas = {}
areas.TOAU = S{
    "Alzadaal Undersea Ruins",
    "Arrapago Remnants",
    "Bhaflau Remnants",
    "Hazhalm Testing Grounds",
    "Ilrusi Atoll",
    "Lebros Cavern",
    "Leujaoam Sanctum",
    "Nyzul Isle",
    "Periqia",
    "Mamool Ja Training Grounds",
    "Silver Sea Remnants",
    "Zhayolm Remnants"}

if not areas.TOAU:contains(world.area) then
    if player.inventory["Balrahn's Ring"] or player.wardrobe["Balrahn's Ring"] then
        send_command(put "Balrahn's Ring" sack)
    end
end

Not sure if itemizer can PUT anything from wardrobe to sack though.
 Bismarck.Alkalinescissor
Offline
Server: Bismarck
Game: FFXI
user: alkyalky
Posts: 21
By Bismarck.Alkalinescissor 2015-02-02 23:59:17
Link | Quote | Reply
 
hi im kind of new to gs im having trouble with my RNG lua it seems to be shooting in my mid acc set when i want it to be low acc sets...any ideas why this is happening=/
function init_gear_sets()
--------------------------------------
-- Precast sets
--------------------------------------

-- Precast sets to enhance JAs
sets.precast.JA['Bounty Shot'] = {hands="Sylvan Glovelettes +2"}
sets.precast.JA['Camouflage'] = {body="Orion Jerkin +1"}
sets.precast.JA['Scavenge'] = {feet="Orion Socks +1"}
sets.precast.JA['Shadowbind'] = {hands="Orion Bracers +1"}
sets.precast.JA['Sharpshot'] = {legs="Orion Braccae +1"}


-- Fast cast sets for spells

sets.precast.FC = {ear2="Loquacious Earring",hands="Thaumas Gloves",ring1="Prolix Ring"}

sets.precast.FC.Utsusemi = set_combine(sets.precast.FC, {neck="Magoraga Beads"})


-- Ranged sets (snapshot)

sets.precast.RA = {
head="Orion Beret +1",body="Sylvan Caban +2",hands="Iuitl Wristbands",waist="Impulse Belt",legs="Nahtirah Trousers",feet="Wurrukatte Boots",back="Lutian Cape"}
-- Wurrukatte Boots


-- Weaponskill sets
-- Default set for any weaponskill that isn't any more specifically defined
sets.precast.WS = {
head="Arcadian Beret +1",ear1="Vulcan's Pearl",ear2="Vulcan's Pearl",
body="Kyujutsugi",hands="Arcadian Bracers +1",ring1="Ifrit Ring +1",ring2="Ifrit Ring +1",
back="Sylvan Chlamys",waist=gear.ElementalBelt,legs="Nahtirah Trousers",feet="Orion Socks +1"}

sets.precast.WS.Acc = set_combine(sets.precast.WS, {body="Kyujutsugi",ring1="Hajduk Ring +1",
back="Lutian Cape",legs="Arcadian Braccae +1"})

-- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
sets.precast.WS.Coronach = set_combine(sets.precast.WS, {neck="Breeze Gorget",waist="Breeze Belt",})

sets.precast.WS['Last Stand'] = set_combine(sets.precast.WS, {
neck="Light Gorget",ear1="Moonshade Earring",ear2="Auster's Pearl",
ring1="Garuda Ring",ring2="Garuda Ring",back="Lutian Cape",waist="Light Belt"})

sets.precast.WS.Wildfire = set_combine(sets.precast.WS, {
head="Fugacity Beret",ear1="Friomisi Earring",ear2="Novio Earring",
body="Orion Jerkin +1",hands="Orion Bracers +1",ring1="Garuda Ring",ring2="Garuda Ring",
back="Argochampsa Mantle",waist="Yamabuki-no-obi",legs="Shneddick Tights +1",feet={name="Qaaxo Leggings", augments={'Attack+15','Mag.Atk.Bns+15','STR+12'}}})

sets.precast.WS['Namas Arrow'] = set_combine(sets.precast.WS.Coronach, {neck="Light Gorget",waist="Light Belt"})

sets.precast.WS["Jishnu's Radiance"] = set_combine(sets.precast.WS['Namas Arrow'], {})


--------------------------------------
-- Midcast sets
--------------------------------------

-- Fast recast for spells

sets.midcast.FastRecast = {
head="Orion Beret +1",ear1="Loquacious Earring",ring1="Prolix Ring",waist="Goading Belt",legs="Orion Braccae +1",feet="Orion Socks +1"}

sets.midcast.Utsusemi = {}

-- Ranged sets

sets.midcast.RA = {
head="Arcadian Beret +1",neck="Ocachi Gorget",ear1="Volley Earring",ear2="Tripudio Earring",
body="Kyujutsugi",hands="Seiryu's Kote",ring1="Rajas Ring",ring2="Hajduk Ring +1",
back="Lutian Cape",waist="Patentia Sash",legs="Nahtirah Trousers",feet="Orion Socks +1"}

sets.midcast.RA.Mid = set_combine(sets.midcast.RA,{neck="Gaudryi Necklace",ring1="Hajduk Ring",legs="Arcadian Braccae +1"})

sets.midcast.RA.Acc = set_combine(sets.midcast.RA.Mid,
{head="Umbani Cap",ear2="Clearview Earring",ring1="Hajduk Ring +1",waist="Elanid Belt"})

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)

sets.midcast.RA.Yoichinoyumi = sets.midcast.RA

sets.midcast.RA.Yoichinoyumi.Acc = sets.midcast.RA.Acc

--------------------------------------
-- Idle/resting/defense/etc sets
--------------------------------------

-- Sets to return to when not performing an action.

-- Resting sets
sets.resting = {head="Ocelomeh Headpiece +1",neck="Wiglen Gorget",ring1="Sheltered Ring",ring2="Paguroidea Ring"}
-- Kheper Jacket

-- Idle sets
sets.idle = {
head="Ocelomeh Headpiece +1",neck="Wiglen Gorget",ear1="Black Earring",ear2="Ethereal Earring",
body="Mekosu. Harness",hands="Buremte Gloves",ring1="Paguroidea Ring",ring2="Sheltered Ring",
back="Engulfer Cape +1",waist="Flume Belt",legs="Qaaxo Tights",feet="Skadi's Jambeaux +1"}
-- Kheper Jacket

sets.idle.Town = {
head="Orion Beret +1",neck="Wiglen Gorget",ear1="Volley Earring",ear2="Tripudio Earring",
body="Mekosu. Harness",hands="Seiryu's Kote",ring1="Hajduk Ring +1",ring2="Rajas Ring",
back="Engulfer Cape +1",waist="Flume Belt",legs="Nahtirah Trousers",feet="Skadi's Jambeaux +1"}

-- Defense sets
sets.defense.PDT = {
head="Iuitl Headgear +1",neck="Twilight Torque",ear1="Black Earring",ear2="Ethereal Earring",
body="Iuitl Vest +1",hands="Umuthi Gloves",ring1="Defending Ring",ring2="Dark Ring",
back="Repulse Mantle",waist="Flume Belt",legs="Qaaxo Tights",feet="Iuitl Gaiters +1"}

sets.defense.MDT = set_combine(sets.defense.PDT,{back="Engulfer Cape +1"})

sets.Kiting = {legs="Blood Cuisses",feet="Skadi's Jambeaux +1"}
sets.ExtraRegen = {head="Ocelomeh Headpiece +1"}


--------------------------------------
-- Engaged sets
--------------------------------------

sets.engaged = {
head="Whirlpool Mask",neck="Twilight Torque",ear1="Steelflash Earring",ear2="Bladeborn Earring",
body="Orion Jerkin +1", hands="Arcadian Bracers +1", ring1="Defending Ring",
back="Shadow Mantle",waist="Flume Belt",legs="Nahtirah Trousers",feet="Orion Socks +1"}

sets.engaged.Acc = {
head="Whirlpool Mask",neck="Asperity Necklace",ear1="Steelflash Earring",ear2="Bladeborn Earring",
body="Manibozho Jerkin",hands="Iuitl Wristbands",ring1="K'ayres Ring",ring2="Rajas Ring",
back="Letalis Mantle",waist="Windbuffet Belt",legs="Manibozho Brais",feet="Iuitl Gaiters"}

--------------------------------------
-- Custom buff sets
--------------------------------------

sets.buff.Barrage = set_combine(sets.midcast.RA.Acc, {hands="Orion Bracers +1",legs="Desultor Tassets"})
sets.buff.Camouflage = {body="Orion Jerkin +1"}
 Lakshmi.Bewolfe
Offline
Server: Lakshmi
Game: FFXI
Posts: 9
By Lakshmi.Bewolfe 2015-02-03 00:35:47
Link | Quote | Reply
 
Hopefully someone has done this before so its just an easy deal of letting me know whats up, but is there any easy way to make it so.. when u change to.. 'tp gear,', it will wear like, town idle gear, lockstyle onto that good looking stuff, and then goes to tp gear..?
 Ragnarok.Martel
Offline
Server: Ragnarok
Game: FFXI
Posts: 2894
By Ragnarok.Martel 2015-02-03 00:59:23
Link | Quote | Reply
 
usually, ppl just lockstyle whenever they zone. so you have your town gear look on the whole time.
Offline
Posts: 801
By Crevox 2015-02-03 01:58:54
Link | Quote | Reply
 
Quote:
Line 1 is a syntax error so, in this case, it will always be true. "if (null) and..."

How is this a syntax error? From what I read (one example source), it returns a value (true) if it finds it, or null otherwise. Not only that, it's not always true. It doesn't try to put it away every time I zone, only sometimes (usually a couple times after salvage zoning through other areas or something).

It's like the fact that the ring is in my inventory is cached or something.

Quote:
Line 2, new_zone_id is not a GS variable AFAIK. It is world_zone_id.

It is in the context I'm using it, which is a zone change event.
Code

In get_sets():
windower.raw_register_event('zone change', salvage_ring)

.. later..

function salvage_ring(new_zone_id, old_zone_id)
	if ((new_zone_id==75 or new_zone_id==77 or new_zone_id==55 or new_zone_id==56 or new_zone_id==69 or new_zone_id==63 or new_zone_id==66 or new_zone_id==74) and not (player.inventory["Balrahn's Ring"] or player.wardrobe["Balrahn's Ring"])) then
		send_command("get Balrahn's Ring")
	elseif ((player.inventory["Balrahn's Ring"] or player.wardrobe["Balrahn's Ring"]) and not (new_zone_id==75 or new_zone_id==77 or new_zone_id==55 or new_zone_id==56 or new_zone_id==69 or new_zone_id==63 or new_zone_id==66 or new_zone_id==74)) then
		send_command("put Balrahn's Ring sack")
	end
end


Quote:
Not sure if itemizer can PUT anything from wardrobe to sack though.

Haven't put it in my wardrobe at all, so that's not an issue here, though a hazard to watch out for and probably code around if I do. Also, was trying to avoid the string comparison, would rather probably just make a dataset for the zone IDs if I wanted to do that so I can use integers. I understand the series of "ors" on the zone IDs is a little messy, but that's not really the fault here.
 Cerberus.Rabies
Offline
Server: Cerberus
Game: FFXI
user: Rabies666
Posts: 57
By Cerberus.Rabies 2015-02-03 04:22:46
Link | Quote | Reply
 
Having trouble locking weapon while engaged on mage jobs, is there a quick alter to this code that could possibly fix my problem?
Code
	elseif player.status == 'Engaged' then
		disable('main','sub')
		equipSet = sets.TP


Currently it seems to disable my weapon slot before it equips my TP set, I tried putting the equipSet line on top but that didn't work.
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2015-02-03 04:40:07
Link | Quote | Reply
 
Well, first, even if it was somehow a syntax error and coming back null/nil, that would register as false, not true.

That's certainly not the issue, but I don't know what is. I have the following:
Code
function salvage_ring(new,old)
    if player.inventory["Twebuliij"] or player.wardrobe["Twebuliij"] then print(player.inventory["Twebuliij"]) print(player.wardrobe["Twebuliij"]) else print('false') end
end

windower.register_event('zone change', salvage_ring)


and I also added a command so that I may directly call the salvage_ring() function. To begin with, using the command will return the expected result every time, so the tables are definitely getting updated correctly.

However, moving it around and zoning several times will only print the same instance that it began with. If I then use the command again, it prints the correct result. Once I have done this, zoning will now print the last command-prompted result (as if I have somehow "updated" the variables). It keeps acting that way, only printing the same result from the last time I call the function using the command.

Changing the event to 'hp change' works fine--it prints the right variables on its own.

Changing the variable to player.hp also works fine from the zone change event.

I don't have a clue what could be causing this, but I'm just a weirdo who likes to read this thread; you probably want to submit a bug report to Windower.

Cerberus.Rabies said: »
Having trouble locking weapon while engaged on mage jobs, is there a quick alter to this code that could possibly fix my problem?
Code
	elseif player.status == 'Engaged' then
		disable('main','sub')
		equipSet = sets.TP


Currently it seems to disable my weapon slot before it equips my TP set, I tried putting the equipSet line on top but that didn't work.

equipSet = sets.TP is not the code that equips your gear, that occurs later (it'll say equip(equipSet)). If your weapons don't vary based on set, you could put

equip({main="your main",sub="your sub"})

before the disable command. Otherwise, the second least code-changing thing would be to add

if player.status=="Engaged" then disable('main','sub') end

after the appropriate equip(equipSet) line.

Bismarck.Alkalinescissor said: »
hi im kind of new to gs im having trouble with my RNG lua it seems to be shooting in my mid acc set when i want it to be low acc sets...any ideas why this is happening=/

Not willing to look into your question without seeing the rest of your file, or at least the RangedMode options, for possible clues. Use Pastebin or the code tags, as well, please.
 Ragnarok.Martel
Offline
Server: Ragnarok
Game: FFXI
Posts: 2894
By Ragnarok.Martel 2015-02-03 04:53:19
Link | Quote | Reply
 
Well. I dunno that this is the issue, but doesn't it seem like a back idea to perform inventory checks right after zoning? I mean, it takes for-freaking-ever for inv to load these days. I can't imagine trying to check an inv that hasn't fully loaded is going to go well. <,<

Maybe trigger a timer on zone, that when completed with first the command that calls the function? In other words, zone, wait 30 secs, then try it?
Offline
Posts: 801
By Crevox 2015-02-03 05:02:42
Link | Quote | Reply
 
Quote:
Well. I dunno that this is the issue, but doesn't it seem like a back idea to perform inventory checks right after zoning? I mean, it takes for-freaking-ever for inv to load these days. I can't imagine trying to check an inv that hasn't fully loaded is going to go well. <,<

Quote:
I'm running an event to check this on zone change. I would take a guess this would happen because of a not fully loaded inventory set (still, why would it come as true if it doesn't even know?) but it also happens elsewhere when I try elsewhere (customize_idle_set).

I'm aware of the potential hazard but it's not the issue here. It's coming as true even though the inventory isn't loaded and the item isn't even in my inventory (before or after the zone change).
 Cerberus.Rabies
Offline
Server: Cerberus
Game: FFXI
user: Rabies666
Posts: 57
By Cerberus.Rabies 2015-02-03 05:20:39
Link | Quote | Reply
 
Ragnarok.Flippant said: »
equipSet = sets.TP is not the code that equips your gear, that occurs later (it'll say equip(equipSet)). If your weapons don't vary based on set, you could put

equip({main="your main",sub="your sub"})

before the disable command. Otherwise, the second least code-changing thing would be to add

if player.status=="Engaged" then disable('main','sub') end

after the appropriate equip(equipSet) line.

Thanks this helped me track down the problem and make a temporary fix for it that'll do just fine for now.
 Bismarck.Alkalinescissor
Offline
Server: Bismarck
Game: FFXI
user: alkyalky
Posts: 21
By Bismarck.Alkalinescissor 2015-02-03 08:48:53
Link | Quote | Reply
 
Was hoping someone would help me out overnight my dude that hooked me up with his lua hasnt been on lately. Basically it will switch me to my high acc mode when its selected but my mid will be on for normal ra and mid ra toggles. Ideas? sorry if im not asking the right way i cook food not write code for a living..
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2015-02-03 12:21:29
Link | Quote | Reply
 
Ragnarok.Martel said: »
Well. I dunno that this is the issue, but doesn't it seem like a back idea to perform inventory checks right after zoning? I mean, it takes for-freaking-ever for inv to load these days. I can't imagine trying to check an inv that hasn't fully loaded is going to go well. <,<

Maybe trigger a timer on zone, that when completed with first the command that calls the function? In other words, zone, wait 30 secs, then try it?

Well as logical as that sounds, I didn't even think of that v_v When I am not broke, I will send you gummy worms.

I was assuming that the inventory table was being updated constantly, because each time I used the command, it came back with a new address; but it actually updates only when GS is prompted in one way or another, so the issue would only manifest itself if you were zoning several times without doing anything that would run GS in between zones. Immediately after zoning, it's unable to update the table, but you don't have to wait very long before it's okay (it'll work even before your inventory loads on the UI).
Code
function salvage_ring(new,old)
    send_command('wait 1; gs c t')
end
 
windower.register_event('zone change', salvage_ring)


works perfectly (the 't' command would then prompt the if/else set).

Bismarck.Alkalinescissor said: »
Was hoping someone would help me out overnight my dude that hooked me up with his lua hasnt been on lately. Basically it will switch me to my high acc mode when its selected but my mid will be on for normal ra and mid ra toggles. Ideas? sorry if im not asking the right way i cook food not write code for a living..

Please post the full file (on Pastebin or use the BBCode code tags).
 Bismarck.Alkalinescissor
Offline
Server: Bismarck
Game: FFXI
user: alkyalky
Posts: 21
By Bismarck.Alkalinescissor 2015-02-03 17:52:25
Link | Quote | Reply
 
http://pastebin.com/bWWqJ15Q
 Odin.Quixacotl
Offline
Server: Odin
Game: FFXI
user: Quixacotl
Posts: 170
By Odin.Quixacotl 2015-02-03 21:41:21
Link | Quote | Reply
 
Bismarck.Alkalinescissor said: »
hi im kind of new to gs im having trouble with my RNG lua it seems to be shooting in my mid acc set when i want it to be low acc sets...any ideas why this is happening=/

Bismarck.Alkalinescissor said: »
First, just eyeballing your lua, it has all your sets down at the bottom after the function blocks when it should be the other way around. I dunno if that matters or not but it definitely doesn't follow Mote's format the way he intended it. So there's no telling what may or may not happen.

Copy Kinematic's RNG lua. Drop in your own gear for the appropriate sets and it should work properly for you just like it does for me.
First Page 2 3 ... 50 51 52 ... 180 181 182
Log in to post.