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 ... 126 127 128 ... 183 184 185
 Siren.Firedevil
Offline
Server: Siren
Game: FFXI
user: Firedevil
Posts: 26
By Siren.Firedevil 2017-10-07 09:37:33
Link | Quote | Reply
 
I'm working on a GEO Lua and I keep getting the following error:

Gearswap: LUA runtime error: GearSwap/refresh.lua:174: GearsSwap: File failed to load:
>...dower4/addons/GearSwap/data/XXX/XXX_GEO.lua:50 attempt to index field 'precast' (a nil value)

The referenced line in my lua is below:
sets.precast.JA['Bolster'] = {body="Bagua Tunic +1"}

I have the Mote files included in the libs folder, so I'm not sure what is wrong with this.

Please help with these errors. It's driving me crazy having to use regular macros for my GEO! Thanks!

Edited for better clarity! :)
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 660
By Ragnarok.Flippant 2017-10-10 18:01:55
Link | Quote | Reply
 
Siren.Firedevil said: »
I'm working on a GEO Lua and I keep getting the following error:

Gearswap: LUA runtime error: Gearswap/refresh.lua:174: Gearswap: file failed to load.

This is a file that downloads with Gearswap and I have never messed with it, so I'm certainly not sure what this is about. The referenced line from refresh.lua is as follows:

174 error('GearSwap: File failed to load: \n'..plugin)

After this error, I get another one that says: attempt to index field 'precast' (a nil value).

The referenced line in my lua is below:
sets.precast.JA['Bolster'] = {body="Bagua Tunic +1"}

I have the Mote files included in the libs folder, so I'm not sure what is wrong with this.

Please help with these errors. It's driving me crazy having to use regular macros for my GEO! Thanks!

Sounds like something wrong with your set up of Mote's includes. Can you post your file? You can use the code tags on here or use a site like Pastebin.
[+]
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 660
By Ragnarok.Flippant 2017-10-10 18:07:31
Link | Quote | Reply
 
Asura.Seriweri said: »
This has been discussed before, but I couldn´t find a definite solution for it just with topic search, so...

About 95% of my unbridled/diffusion casts unequip empy feet too fast for them to add diffusion duration to it, being experienced mostly on mighty guard of course. I can´t tell yet if the other 5% happen during higher or lower latency than usual tho.

Not using motenten, but a custom one I snatched somewhere:
Code
sets.JA.Diffusion = {feet="Mirage Charuqs +2",}
[...]
function midcast(spell,act)
	if spell.english == 'Mighty Guard' then
		if buffactive['Diffusion'] then
			equip(sets.JA.Diffusion)
			add_to_chat(158,'if you can read this then charuqs should actually be equipped now kthx')				
		end
	end


As a workaround, I fiddled in /equip feet, gs disable feet, gs enable feet after cast into a macro, but it´s kinda bad to have to wait for the gs enable midfight.
Any ideas? Thx in advance.

My solution was generally to equip them during midcast/end of aftercast and then call my equip change function through the buff change function, when buff is gained. This involves creating an independent function that handles equipping your aftercast gear, which you would separately call from the aftercast function.
 Siren.Firedevil
Offline
Server: Siren
Game: FFXI
user: Firedevil
Posts: 26
By Siren.Firedevil 2017-10-11 11:24:12
Link | Quote | Reply
 
Thanks for your response! Before my response here, I just uninstalled Gearswap, deleting all files and re-downloaded it in case I did something to corrupt a file. I am still having the same errors. My full code is below:
Code
-------------------------------------------------------------------------------------------------------------------
-- Setup functions for this job.  Generally should not be modified.
-------------------------------------------------------------------------------------------------------------------
  
-- Initialization function for this job file.
function get_sets()
    mote_include_version = 2
  
    -- Load and initialize the include file.
    include('Mote-Include.lua')
end
  
-- Setup vars that are user-independent.  state.Buff vars initialized here will automatically be tracked.
function job_setup()
    indi_timer = ''
    indi_duration = 255
end
  
-------------------------------------------------------------------------------------------------------------------
-- 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','Accuracy','Dual')
    state.CastingMode:options('Normal','Accuracy')
    state.IdleMode:options('Normal', 'PDT', 'MDT')
      
    gear.default.obi_waist = "Refoccilation stone"
    gear.default.obi_back = "Seshaw Cape"
    gear.default.obi_ring = "Shiva Ring"
      
    select_default_macro_book()
      
end
 
lowtier = S{"Fire", "Fire II", "Stone", "Stone II", "Blizzard", "Blizzard II", "Aero", "Aero II", "Water", "Water II", "Thunder", "Thunder II", "Fira", "Blizzara", "Aerora", "Stonera", "Thundara", "Watera"}
hightier = S{"Fire III", "Fire IV", "Stone IV", "Stone III", "Blizzard IV", "Blizzard III", "Aero IV", "Aero III", "Water IV", "Water III", "Thunder IV", "Thunder III", "Fira II", "Blizzara II", "Aerora II", "Stonera II", "Thundara II", "Watera II"}
  
  
-- Define sets and vars used by this job file.
function init_gear_sets()

end
    --------------------------------------
    -- Precast sets
    --------------------------------------
  
    -- Precast sets to enhance JAs
    sets.precast.JA['Bolster'] = {body="Bagua Tunic +1"}
    sets.precast.JA['Life cycle'] = {body="Geomancy Tunic +1",
    head="Azimuth hood"
    }
    sets.precast.JA['Curative Recantation'] = {hands="Bagua Mitaines +1"}
    sets.precast.JA['Mending Halation'] = {legs="Bagua Pants +1"}
    sets.precast.JA['Radial Arcana'] = {feet="Bagua Sandals +1"}
    sets.precast.JA['Primal Zeal'] = {head="Bagua galero +1"}   
    sets.precast.JA['Cardinal Chant'] = {head="geomancy galero +1"}
  
  
    -- Fast cast sets for spells
  
    sets.precast.FC = {
	head="Merlinic Hood",
    body="Merlinic Jubbah",
    hands="Merlinic Dastanas",
    legs="Geo. Pants +1",
    feet="Merlinic Crackows",
    waist="Witful Belt",
    right_ear="Loquac. Earring",
    left_ring="Prolix Ring",
    back="Lifestream Cape",
}
  
    sets.precast.FC.Cure = set_combine(sets.precast.FC, {
    legs="Gyve Trousers",
    back="Pahtli Cape",
})
  
    sets.precast.FC['Enhancing Magic'] = set_combine(sets.precast.FC, {
    waist="Siegel Sash",
})  
  
      
    sets.precast.FC['Elemental Magic'] = set_combine(sets.precast.FC, {
    main="Nibiru Cudgel",
    hands="Bagua Mitaines +1",
    neck="Mizukage-no-Kubikazar",
    ear1="Barkarole earring"
})
  
    sets.precast.FC.Impact = set_combine(sets.precast.FC['Elemental Magic'], {head=empty,body="Twilight Cloak"})
      
      
    -- Weaponskill sets
    -- Default set for any weaponskill that isn't any more specifically defined
    sets.precast.WS = {
    ammo="Hasty Pinion +1", 
    head="telchine cap",
    body="helios jacket",
    hands="telchine Gloves",
    legs="telchine braconi",
    feet="telchine pigaches",
    neck="fotia Gorget",
    waist="fotia Belt",
    left_ear="Moonshade Earring",
    right_ear="Brutal Earring",
    left_ring="levia. Ring",
    right_ring="levia. Ring",
    back="Refraction Cape",
}
  
    -- Specific weaponskill sets.  Uses the base set if an appropriate WSMod version isn't found.
          
        sets.precast.WS['Flash Nova'] = set_combine(sets.precast.WS,{   
    ammo="Ghastly Tathlum +1",
    head="Helios Bandt",
    body="Merlinic Jubbah",
    hands="Hagondes Cuffs +1",
    legs="Hagondes Pants +1",
    feet="helios Boots",
    neck="Eddy Necklace",
    waist="yamabuki-no-obi",
    left_ear="Friomisi Earring",
    right_ear="Barkarole Earring",
    left_ring="Shiva Ring",
    right_ring="Shiva Ring",
    back="Nantosuelta's Cape",})
          
        sets.precast.WS['Black Halo'] = sets.precast.WS['Flash Nova']
      
              
    sets.precast.WS['Aeolian Edge'] = set_combine(sets.precast.WS['Flash Nova'],{back="Kaikias' cape",})    
  
    sets.precast.WS['Gust Slash'] =sets.precast.WS['Flash Nova']
              
    sets.precast.WS['Starlight'] = sets.precast.WS['Flash Nova']
  
    sets.precast.WS['Moonlight'] = sets.precast.WS['Flash Nova']
          
  
    --------------------------------------
    -- Midcast sets
    --------------------------------------
  
    -- Base fast recast for spells
    sets.midcast.FastRecast =set_combine(sets.midcast.fastcast) 
  
sets.midcast.Regen = set_combine(sets.midcast.fastcast, {
    main="Nibiru Cudgel",
    body="Merlinic Jubbah"})
      
    sets.midcast['Enhancing Magic']={
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    head="Umuthi Hat",
    hands="bagua mitaines +1",
    body={ name="Telchine Chas.", augments={'Mag. Acc.+12 "Mag.Atk.Bns."+12','"Conserve MP"+4','Enh. Mag. eff. dur. +4',}},
    legs="bagua Pants +1",
    feet="helios Boots",
    neck="Colossus's Torque",
    waist="Cascade Belt",
    left_ear="Andoaa Earring",
}
      
    sets.midcast.Refresh = set_combine(sets.midcast['Enhancing Magic'], {
    back="grapevine cape"})
  
    sets.midcast.Aquaveil = set_combine(sets.midcast['Enhancing Magic'], {
    waist="Emphatikos rope"})
  
    sets.midcast.Geomancy ={
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    range="Dunna",
    head="Azimuth hood",
    body="Bagua Tunic +1",
    hands="Geo. Mitaines +1",
    legs="azimuth tights",
    feet="azimuth gaiters",
    waist="Austerity Belt +1",
    left_ear="Barkarole Earring",
    right_ear="Gifted Earring",
    right_ring="Renaye Ring",
    back="Lifestream Cape",
}
      
    sets.midcast.Geomancy.Indi =set_combine(sets.midcast.Geomancy, {legs="bagua pants +1"})
  
  
    sets.midcast.Cure = {
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    head="Geomancy galero +1",
    legs="Gyve Trousers",
    feet="Regal Pumps +1",
    left_ear="Gifted Earring",
    left_ring="Sirona's Ring",
}
          
        sets.midcast.Stoneskin = set_combine(sets.midcast['Enhancing Magic'], {
    waist="siegel sash",
})  
              
    sets.midcast.Curaga = sets.midcast.Cure
  
    sets.midcast.Protectra = {ring1="Sheltered Ring"}
  
    sets.midcast.Shellra = {ring1="Sheltered Ring"}
  
        -- Custom Spell Classes
    sets.midcast['Enfeebling Magic'] = {
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    ammo="Memoria sachet",
    head="Artsieq Hat",
    body="Ischemia Chasu.",
    hands="azimuth gloves",
    legs="Mes'yohi slacks",
    feet="bagua sandals +1",
    neck="imbodla necklace",
    waist="yamabuki-no-obi",
    left_ear="Gwati Earring",
    right_ear="Enchntr. Earring +1",
    left_ring="Shiva Ring",
    right_ring="Shiva Ring",
    back="lifestream Cape",
}
  
    sets.midcast.IntEnfeebles = set_combine(sets.midcast['Enfeebling Magic'], {
      
})  
  
    sets.midcast.ElementalEnfeeble = sets.midcast['Enfeebling Magic']
  
    sets.midcast['Dark Magic'] = {
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    ammo="Ghastly Tathlum +1",
    head="Merlinic Hood",
    body="Geo. Tunic +1",
    hands="azimuth gloves",
    legs="Azimuth Tights",
    feet="Merlinic Crackows",
    neck="Aesir Torque",
    waist="Yamabuki-no-Obi",
    left_ear="Barkarole Earring",
    right_ear="Gwati Earring",
    left_ring="shiva Ring",
    right_ring="sangoma Ring",
    back="Nantosuelta's Cape",
}
          
        sets.midcast.Drain = set_combine(sets.midcast['Dark Magic'], {
    waist="Austerity Belt +1",
    left_ear="Abyssal Earring",
    right_ear="Hirudinea Earring",
})
      
    sets.midcast.Aspir = sets.midcast.Drain
      
  
  
    sets.midcast.Stun = sets.precast.FC
              
  
            sets.midcast.Bolster = {body="Bagua Tunic +1"}
        sets.midcast['Life Cycle'] = {body="Geo. Tunic +1",
    head="Azimuth hood"}
        sets.midcast['Mending Halation'] = {legs="Bagua Pants +1"}
        sets.midcast['Radial Arcana'] = {feet="Bagua Sandals +1"}
        sets.midcast.Bolster.Pet = {body="Bagua Tunic +1"}
        sets.midcast['Life Cycle'].Pet = {body="Geo. Tunic +1",
    head="Azimuth hood"}
        sets.midcast['Mending Halation'].Pet = {legs="Bagua Pants +1"}        sets.midcast.Bolster.Pet.Indi = {body="Bagua Tunic +1"}
        sets.midcast['Life Cycle'].Pet.Indi = {body="Geo. Tunic +1",
    head="Azimuth hood"}
        sets.midcast['Mending Halation'].Pet.Indi = {legs="Bagua Pants +1"}
  
          -- Elemental Magic sets
      
    sets.midcast['Elemental Magic']= {
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    ammo="ghastly tathlum +1",
    head="Merlinic Hood",
    body="Merlinic Jubbah",
    hands="Almaric Gages",
    legs="Merlinic Shalwar",
    feet="Merlinic Crackows",
    neck="Mizukage-no-Kubikazar",
    waist="Refoccilation Stone",
    left_ear="Friomisi Earring",
    right_ear="Barkarole Earring",
    left_ring="shiva Ring",
    right_ring="shiva Ring",
    back="Nantosuelta's Cape",
}
  
    sets.midcast['Elemental Magic']['Accuracy']=set_combine(sets.midcast['Elemental Magic'], {
    waist=gear.ElementalObi,
})
       sets.midcast.Impact = {
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    ammo="Ghastly Tathlum +1",
    head=empty,
    body="Twilight Cloak",
    hands="azimuth gloves",
    legs="Azimuth Tights",
    feet="Helios Boots",
    neck="Eddy Necklace",
    waist=gear.ElementalObi,
    left_ear="Gwati Earring",
    right_ear="Barkarole Earring",
    left_ring="Shiva Ring",
    right_ring="Shiva Ring",
    back="Nantosuelta's Cape",
}   
      
    --------------------------------------
    -- Idle/resting/defense/etc sets
    --------------------------------------
  
    -- Resting sets
    sets.resting = {
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    range="Dunna",
    body="Respite Cloak",
    hands="Bagua Mitaines +1",
    legs="Assid. Pants",
    feet="Geo. Sandals +1",
    neck="Twilight Torque",
    waist="Fucho-no-Obi",
    left_ear="Merman's Earring",
    right_ear="Merman's Earring",
    left_ring="Sheltered Ring",
    right_ring="Renaye Ring",
    back="Kumbira Cape",
}
  
  
    -- Idle sets
  
    sets.idle = sets.resting
  
    sets.idle.PDT = {
    main="Nibiru cudgel",
    sub="Avalon Shield",
        head="Hagondes Hat +1",
        neck="Twilight Torque",
        ear1="Merman's Earring",
        ear2="Merman's Earring",
        body="Hagondes Coat +1",
        hands="hagondes cuffs +1",
        ring1="shadow Ring",
        ring2="dark Ring",
        back="shadow mantle",
        waist="Flax Sash",
        legs="hagondes Pants +1",
        feet="hagondes sabots +1"}
          
        sets.idle.MDT = set_combine(sets.idle.PDT, {
    main="Nibiru Cudgel",
    sub="Avalon Shield",})    
  
    -- .Pet sets are for when Luopan is present.
    sets.idle.Pet = set_combine(sets.resting, {main="Nibiru Cudgel",
    sub="Avalon Shield",
    head="Azimuth hood",
    body={ name="Telchine Chas.", augments={'Pet: Accuracy+18 Pet: Rng. Acc.+18','Pet: "Regen"+2',}},
    legs="helios spats",
    hands={ name="Helios Gloves", augments={'Pet: Accuracy+19 Pet: Rng. Acc.+19','Pet: "Regen"+3',}},
    feet="Bagua Sandals +1",
    waist="Isa Belt",
    back="Lifestream Cape",
    ear1="Handler's Earring +1",
    ear2="Handler's Earring",
})
  
    sets.idle.PDT.Pet = set_combine(sets.idle.PDT, {main="Nibiru Cudgel",
    sub="Avalon Shield",
    head="Azimuth hood",
    body={ name="Telchine Chas.", augments={'Pet: Accuracy+18 Pet: Rng. Acc.+18','Pet: "Regen"+2',}},
      hands={ name="Helios Gloves", augments={'Pet: Accuracy+19 Pet: Rng. Acc.+19','Pet: "Regen"+3',}},
    legs="helios spats",
    feet="Bagua Sandals +1",
    waist="Isa Belt",
    back="Lifestream Cape",
    ear1="Handler's Earring +1",
    ear2="Handler's Earring",
})
  
    sets.idle.MDT.Pet = set_combine(sets.idle.MDT, {main="Nibiru Cudgel",
    sub="Avalon Shield",
    head="Azimuth hood +1",
    body={ name="Telchine Chas.", augments={'Pet: Accuracy+18 Pet: Rng. Acc.+18','Pet: "Regen"+2',}},
      hands={ name="Helios Gloves", augments={'Pet: Accuracy+19 Pet: Rng. Acc.+19','Pet: "Regen"+3',}},
    legs="helios spats",
    feet="Bagua Sandals +1",
    waist="Isa Belt",
    back="Lifestream Cape",
    ear1="Handler's Earring +1",
    ear2="Handler's Earring",
})
  
    -- .Indi sets are for when an Indi-spell is active.
    sets.idle.Indi = sets.resting
      
    sets.idle.PDT.Indi = sets.idle.PDT
      
    sets.idle.MDT.Indi = sets.idle.MDT
       
    sets.idle.PDT.Pet.Indi = sets.idle.PDT.Pet
      
    sets.idle.MDT.Pet.Indi = sets.idle.MDT.Pet
  
    sets.idle.Town = {
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    range="Dunna",
    head="Azimuth Hood",
    body="Azimuth Coat",
    hands="Azimuth Gloves",
    legs="Azimuth Tights",
    feet="Azimuth Gaiters",
    neck="Twilight Torque",
    waist="Fucho-no-Obi",
    left_ear="Merman's Earring",
    right_ear="Merman's Earring",
    left_ring="Sheltered Ring",
    right_ring="Renaye Ring",
    back="Lifestream Cape",
}
  
    sets.idle.Weak = sets.resting
  
    -- Defense sets
  
    sets.defense.PDT = sets.idle.PDT
  
    sets.defense.MDT = sets.idle.MDT
  
    sets.Kiting = {feet="Geo. Sandals +1"}
  
    sets.latent_refresh = {waist="Fucho-no-obi"}
      
      
  
  
    --------------------------------------
    -- Engaged sets
    --------------------------------------
  
    -- Variations for TP weapon and (optional) offense/defense modes.  Code will fall back on previous
    -- sets if more refined versions aren't defined.
    -- If you create a set with both offense and defense modes, the offense mode should be first.
    -- EG: sets.engaged.Dagger.Accuracy.Evasion
  
    -- Normal melee group
    sets.engaged = {
    main="Nibiru Cudgel",
    sub="Avalon Shield",
    ammo="Hasty Pinion +1",
    head="telchine cap",
    body="helios jacket",
    hands="telchine gloves",
    legs="telchine braconi",
    feet="telchine pigaches",
    neck="Asperity Necklace",
    waist="cetl Belt",
    left_ear="Steelflash Earring",
    right_ear="Bladeborn Earring",
    left_ring="rajas Ring",
    right_ring="k'ayres ring",
    back="Kayapa Cape",
}
  
    sets.engaged.Accuracy = set_combine(sets.engaged,{
    neck="Iqabi Necklace",
    right_ear="Zennaroi Earring",
    waist="Olseni Belt",
    left_ring="supershear EarRing",
    right_ring="beeline ring",
}   )   
  
    sets.engaged.Dual = set_combine(sets.engaged,{
    sub="Nibiru Cudgel",
    left_ear="Heartseeker Earring",
    right_ear="Dudgeon Earring",
    waist="shetal stone",
}   )
    --------------------------------------
    -- Custom buff sets
    --------------------------------------
  

 poison = 0
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks for standard casting events.
-------------------------------------------------------------------------------------------------------------------
function job_aftercast(spell, action, spellMap, eventArgs)
    if not spell.interrupted then
        if spell.english:startswith('Indi') then
            if not classes.CustomIdleGroups:contains('Indi') then
                classes.CustomIdleGroups:append('Indi')
            end
            send_command('@timers d "'..indi_timer..'"')
            indi_timer = spell.english
            send_command('@timers c "'..indi_timer..'" '..indi_duration..' down spells/00136.png')
        elseif spell.english == 'Sleep' or spell.english == 'Sleepga' then
            send_command('@timers c "'..spell.english..' ['..spell.target.name..']" 60 down spells/00220.png')
        elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II' then
            send_command('@timers c "'..spell.english..' ['..spell.target.name..']" 90 down spells/00220.png')
        end
    elseif not player.indi then
        classes.CustomIdleGroups:clear()
    end
end
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks for non-casting events.
-------------------------------------------------------------------------------------------------------------------
  
-- Called when a player gains or loses a buff.
-- buff == buff gained or lost
-- gain == true if the buff was gained, false if it was lost.
function job_buff_change(buff, gain)
    if player.indi and not classes.CustomIdleGroups:contains('Indi')then
        classes.CustomIdleGroups:append('Indi')
        handle_equipping_gear(player.status)
    elseif classes.CustomIdleGroups:contains('Indi') and not player.indi then
        classes.CustomIdleGroups:clear()
        handle_equipping_gear(player.status)
    end
    if buff == "poison" then
        if gain then
            poison = 1
            add_to_chat(255, '*-*-*-*-*-*-*-*-* [ Poisoned ] *-*-*-*-*-*-*-*-*')
        else
            poison = 0
            add_to_chat(255, '*-*-*-*-*-*-*-*-* [ Poison OFF ] *-*-*-*-*-*-*-*-*')
        end
    end
end
  
function job_state_change(stateField, newValue, oldValue)
    if stateField == 'Offense Mode' then
        if newValue == 'Dual' then
            disable('main','sub','range')
        else
            enable('main','sub','range')
        end
    end
end
 
-- Run after the general midcast() is done.
function job_post_midcast(spell, action, spellMap, eventArgs)
    if spell.skill == 'Elemental Magic' then
     
        -- this if for low tier
      if lowtier:contains(spell.name) then
        add_to_chat(204, '*-*-*-*-*-*-*-*-* [ Low TIER ] *-*-*-*-*-*-*-*-*')
        if buffactive.Poison then
            equip(sets.midcast['Elemental Magic'], {main="Nibiru Cudgel"})
        elseif spell.element == 'Earth' then
            equip(sets.midcast['Elemental Magic'], {neck="Quanpur Necklace"})
        elseif spell.element == 'Ice' then
            equip(sets.midcast['Elemental Magic'], {main="Nibiru Cudgel"})  
        elseif spell.element == 'Wind' then
            equip(sets.midcast['Elemental Magic'], {Main="Nibiru Cudgel"})
        end
          
  
        if spell.element == world.day_element or spell.element == world.weather_element then
            equip(sets.midcast['Elemental Magic'], {waist="Hachirin-No-Obi"})
        end
      else
        -- high tier
        add_to_chat(204, '*-*-*-*-*-*-*-*-* [ High TIER ] *-*-*-*-*-*-*-*-*')
        if buffactive.Poison then
            equip(sets.midcast['Elemental Magic']['Accuracy'], {main="Nibiru Cudgel"})
        elseif spell.element == 'Earth' then
            equip(sets.midcast['Elemental Magic']['Accuracy'], {neck="Quanpur Necklace"})
        elseif spell.element == 'Ice' then
            equip(sets.midcast['Elemental Magic']['Accuracy'], {main="Nibiru Cudgel"})  
        elseif spell.element == 'Wind' then
            equip(sets.midcast['Elemental Magic'], {Main="Nibiru Cudgel"})
        end
          
  
        if spell.element == world.day_element or spell.element == world.weather_element then
            equip(sets.midcast['Elemental Magic'], {waist="Hachirin-No-Obi"})
        end
     
      end
  
    end
end
  
-------------------------------------------------------------------------------------------------------------------
-- User code that supplements standard library decisions.
-------------------------------------------------------------------------------------------------------------------
  
function job_get_spell_map(spell, default_spell_map)
    if spell.action_type == 'Magic' then
        if spell.skill == 'Enfeebling Magic' then
            if spell.type == 'WhiteMagic' then
                return 'MndEnfeebles'
            else
                return 'IntEnfeebles'
            end
        elseif spell.skill == 'Geomancy' then
            if spell.english:startswith('Indi') then
                return 'Indi'
            end
            elseif spell.skill == 'Elemental Magic' then
        end
    end
end
  
function customize_idle_set(idleSet)
    if player.mpp < 51 then
        idleSet = set_combine(idleSet, sets.latent_refresh)
    end
    return idleSet
end
  
-- Called by the 'update' self-command.
function job_update(cmdParams, eventArgs)
    classes.CustomIdleGroups:clear()
    if player.indi then
        classes.CustomIdleGroups:append('Indi')
    end
end
  
-- Function to display the current relevant user state when doing an update.
function display_current_job_state(eventArgs)
    display_current_caster_state()
    eventArgs.handled = true
end
  
-- MAKE A MACRO : /tell <me> check
function open_coffer()
    CofferType = "Velkk Coffer"
    if player.inventory[CofferType] then
    NCoffer = player.inventory[CofferType].count
    bag = windower.ffxi.get_bag_info(0).count
    max = windower.ffxi.get_bag_info(0).max
    spots = max-bag
    if spots > 0 then
    add_to_chat(204, '*-*-*-*-*-*-*-*-* [ '..NCoffer..'x '..CofferType..' to open - Inventory('..bag..'/'..max..') ] *-*-*-*-*-*-*-*-*')
    local nextcommand = ""
    for i=1, spots do
        nextcommand = nextcommand .. 'input /item "'..CofferType..'" <me>; wait 2;'
    end
    nextcommand = nextcommand .. 'input /tell '..player.name..' check'
    send_command(nextcommand)
    else
        add_to_chat(204, '*-*-*-*-*-*-*-*-* [ Inventory('..bag..'/'..max..') ] *-*-*-*-*-*-*-*-*')
    end
    else
        add_to_chat(204, '*-*-*-*-*-*-*-*-* [ No '..CofferType..' in inventory ] *-*-*-*-*-*-*-*-*')
    end
end
  
  
windower.register_event('chat message', function(original, sender, mode, gm)
    local match
  
                if sender == player.name then
                    if original == "check" then
                        open_coffer()
                    end
                end
  
    return sender, mode, gm
end)
  
-------------------------------------------------------------------------------------------------------------------
-- Utility functions specific to this job.
-------------------------------------------------------------------------------------------------------------------
  
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
    set_macro_page(1, 1)
 end
Offline
Posts: 45
By harpy 2017-10-11 11:41:34
Link | Quote | Reply
 
anyone having an issue with organizer?
 Leviathan.Celebrindal
Online
Server: Leviathan
Game: FFXI
Posts: 3753
By Leviathan.Celebrindal 2017-10-14 17:33:56
Link | Quote | Reply
 
not sure what's going on with my Ranger Lua. No alterations made for over a month, yet ever since the update my Weapon Skill sets no longer equip. Preshot, Midshot, and all /ja related sets equip fine, but whether I'm engaged or not, no changing of gear on weaponskills. Again, I haven't made any changes recently, and this format of language was working fine for me for well over 8 months. Here is my current lua. Weapon skill sets start in line 372.

Edit- solved- found a missing line in my precast arguments. I often keep multiple files open in Notepad++ at once, and I clearly had the RNG lua on top instead of what I meant to be working on and deleted a necessary line in my WS rules.
 Carbuncle.Calout
Offline
Server: Carbuncle
Game: FFXI
user: Calout
Posts: 14
By Carbuncle.Calout 2017-10-22 17:19:08
Link | Quote | Reply
 
Looking for some help to add Mote's Treasure Hunter to Flippants Blu GS. I'm not sure what to do so any help would be grateful.
 Siren.Firedevil
Offline
Server: Siren
Game: FFXI
user: Firedevil
Posts: 26
By Siren.Firedevil 2017-10-24 13:15:08
Link | Quote | Reply
 
Ok, I posted my LUA a while back and got no response. Based on Flippant's comments I went looking for info on Mote's Include to see if mine was missing something. I've done a ton of reading the past few days and feel educated now. I'm a LUA newbie and have just been copying other files and editing in my gear.

Here's the thing: I was under the impression that the sets don't have to be redefined in the individual job file as long as you have Mote-Include. For example, sets.precast.JA = {}. Am I wrong? Do I still have to put sets.precast = {} and sets.precast.JA = {} in my LUA before I set up the gear? I've seen tons of LUAs for GEO out there and none of them seem to do that. Can anyone confirm for me, and I'll leave you guys alone? :) Thanks!
 Phoenix.Gaiarorshack
Offline
Server: Phoenix
Game: FFXI
user: MiavPigen
Posts: 1245
By Phoenix.Gaiarorshack 2017-10-29 13:51:46
Link | Quote | Reply
 
Is spellinteruption gear in precast or midcast or both ?
 
Offline
Posts:
By 2017-10-29 13:59:37
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
Offline
Posts: 20
By Havok16 2017-10-31 03:20:15
Link | Quote | Reply
 
Hello Guys

I'm struggling with an error in my bst.lua and only with bst.lua.
the error says

>Gearswap: Lua runtime error: Gearswap/flow.lua:102:
>User event error: ...6)Windower4/Addons/Gearswap/libs/organizer-lib.lua:101: atempt to get lenght of field '?'(a nil value)

My bst lua was working well, then i modified some gear like usualy with every other lua, but i get this error randomly. i cancelled lua and did a new one again. worked fine, modified again and got the error.
 Lakshmi.Elidyr
Offline
Server: Lakshmi
Game: FFXI
user: elii
Posts: 912
By Lakshmi.Elidyr 2017-10-31 09:03:41
Link | Quote | Reply
 
Havok16 said: »
Hello Guys

I'm struggling with an error in my bst.lua and only with bst.lua.
the error says

>Gearswap: Lua runtime error: Gearswap/flow.lua:102:
>User event error: ...6)Windower4/Addons/Gearswap/libs/organizer-lib.lua:101: atempt to get lenght of field '?'(a nil value)

My bst lua was working well, then i modified some gear like usualy with every other lua, but i get this error randomly. i cancelled lua and did a new one again. worked fine, modified again and got the error.

I don't know anything about organizer really. Might help to actually see what you modified.
Offline
Posts: 20
By Havok16 2017-10-31 10:55:15
Link | Quote | Reply
 
The fle is very long. how can i link it to here?
 Siren.Firedevil
Offline
Server: Siren
Game: FFXI
user: Firedevil
Posts: 26
By Siren.Firedevil 2017-10-31 12:07:05
Link | Quote | Reply
 
When you paste it in, use the code tag in the tool bar at the top right of the Reply section. The icon looks like a scroll. It re-formats the file to fit in a window with a scroll bar on the side for ease of viewing. Put your file text between the [ code][/code].
 Asura.Arico
Offline
Server: Asura
Game: FFXI
user: Tename
Posts: 535
By Asura.Arico 2017-11-03 15:50:06
Link | Quote | Reply
 
I know a lot of people have this, so it exists, but how do I make a separate file for all of my augs that percolates to all of my other gearswaps?
 Sylph.Dasanuffadat
Offline
Server: Sylph
Game: FFXI
Posts: 259
By Sylph.Dasanuffadat 2017-11-11 16:28:41
Link | Quote | Reply
 
Is it possible to code for Cardinal Chant directions?

The way my gear is currently, my best nuking head when a mob is to the east of me is the Geomancy Galeo (and by a fair margin). I'd like to be able to use that as much as possible.

I see target entity "spell.target", and target keys "x (east/west)" and "y (north/south)" are things but I don't know how to make them work.
 Bahamut.Ayasha
Online
Server: Bahamut
Game: FFXI
user: Ayasha
Posts: 95
By Bahamut.Ayasha 2017-11-14 18:25:51
Link | Quote | Reply
 
Install the TParty addon.
Offline
Posts: 765
By Tarage 2017-11-14 18:37:05
Link | Quote | Reply
 
Bahamut.Ayasha said: »
Install the TParty addon.

I posted in the wrong thread, but thanks.
 Lakshmi.Elidyr
Offline
Server: Lakshmi
Game: FFXI
user: elii
Posts: 912
By Lakshmi.Elidyr 2017-11-14 19:16:37
Link | Quote | Reply
 
Sylph.Dasanuffadat said: »
Is it possible to code for Cardinal Chant directions?

The way my gear is currently, my best nuking head when a mob is to the east of me is the Geomancy Galeo (and by a fair margin). I'd like to be able to use that as much as possible.

I see target entity "spell.target", and target keys "x (east/west)" and "y (north/south)" are things but I don't know how to make them work.

It is possible, if it doesn't exist already. I think they use a float to detect directions? Someone can correct me if I am wrong. Just have to measure out the directions and such from there, and build your logic off of that. Also I'm not sure I even understand how the cardinal works 100%. Based of your direction vs. mob or just direction in general?
 Asura.Arico
Offline
Server: Asura
Game: FFXI
user: Tename
Posts: 535
By Asura.Arico 2017-11-16 20:06:18
Link | Quote | Reply
 
Hello all

https://pastebin.com/1HyVnxZL

My gearswap for smn isn't swapping back the lucidity sash. I can't figure out for the life of me why. It's spelled right, but just not working.
Offline
Posts: 1157
By DaneBlood 2017-11-16 23:06:56
Link | Quote | Reply
 
How do i make one set automatic have empty slots equip with what is in another set ?
 Siren.Firedevil
Offline
Server: Siren
Game: FFXI
user: Firedevil
Posts: 26
By Siren.Firedevil 2017-11-17 07:33:42
Link | Quote | Reply
 
Quote:
Hello all

https://pastebin.com/1HyVnxZL

My gearswap for smn isn't swapping back the lucidity sash. I can't figure out for the life of me why. It's spelled right, but just not working.

Is Lucidity Sash in your Inventory or Wardrobes? If not, that's your problem. I just looked quickly and nothing stood out with a quick check of your code. In game, have you tried using //gs showswaps and //gs debug_mode together to see what's happening? I found several of my swapping problems that way.
[+]
 Asura.Azagarth
Offline
Server: Asura
Game: FFXI
user: Azagarth
Posts: 1326
By Asura.Azagarth 2017-11-25 22:43:16
Link | Quote | Reply
 
Not my lua, just grabbed one and added the macro part, anyone got an idea why it wont change to the right book etc?
 Ragnarok.Tira
Offline
Server: Ragnarok
Game: FFXI
Posts: 84
By Ragnarok.Tira 2017-11-26 12:46:43
Link | Quote | Reply
 
So, I've been able to get my lua to equip the Hachirin-no-Obi successfully during weaponskills that match the weather or day, but is there a way to tell my lua to not equip the obi if the weather and day oppose each other? This is what I'm currently working with: obi gearswap
 Ragnarok.Trixi
Offline
Server: Ragnarok
Game: FFXI
user: Trixi
Posts: 120
By Ragnarok.Trixi 2017-12-03 10:35:29
Link | Quote | Reply
 
Having issues getting my second duplicate ring to equip.

I later then changed where the rings are in the order of the midcast, but that didnt work. I then tried putting them in different bags, and that didnt work, and then BG suggested trying priorities, but that didnt work either.

The midcast rring will equip about 20% or less of the time, the rest of the time weatherspoon stays equipped.

Ive been testing with Prolix ring in storage, so midcast lring equips 100% of the time

Code
    sets.precast.FastCast.Default = {main="Lathi",sub="Vivid Strap",ranged="",ammo="Impatiens",
        head="Nahtirah Hat",neck="Stoicheion Medal",ear1="Loquacious Earring",ear2="Barkarole Earring",
	body="Royal Redingote",hands="Magavan Mitts",lring="Prolix Ring",rring="Weatherspoon Ring",
        back="Bane Cape",waist="Witful Belt",legs="Orvail Pants +1",feet="Merlinic Crackows"}
    
    sets.precast.FastCast['Elemental Magic'] = set_combine(sets.precast.FastCast.Default,{head="Wicce Petasos +1"})

    sets.midcast['Elemental Magic'] = {lring={name="Shiva Ring +1",bag="Inventory",priority=1},main="Lathi",sub="Niobid Strap",ranged="",ammo="Pemphredo Tathlum",
	head="Merlinic Hood",neck="Mizukage-no-Kubikazari",ear1="Friomisi Earring",ear2="Barkarole Earring",
	body="Count's Garb",hands="Amalric Gages",rring={name="Shiva Ring +1",bag="Inventory",priority=12},
	back="Toro Cape",waist="Yamabuki-no-Obi",legs="Merlinic Shalwar",feet="Merlinic Crackows"}

 Asura.Eiryl
Offline
Server: Asura
Game: FFXI
user: Eiryl
By Asura.Eiryl 2017-12-04 19:17:24
Link | Quote | Reply
 
I'm bad at gearswap rules

Can you give me the context to use HP/MP % rule?

IE: If hp <50% Equip sets.dt or mp <50% equip sets.refresh
First Page 2 3 ... 126 127 128 ... 183 184 185
Log in to post.