Item Search
     
BG-Wiki Search
Page 282 of 307 FirstFirst ... 232 272 280 281 282 283 284 292 ... LastLast
Results 5621 to 5640 of 6124
  1. #5621
    New Spam Forum
    Join Date
    Jun 2007
    Posts
    174
    BG Level
    3

    Quote Originally Posted by Sechs View Post
    The line was " for _,item in ipairs(bag) do", sorry.
    I dunno, I never managed to learn what "ipairs" do and how it works so I can't understand what's broken, but something has gotta be different somewhere in GS because that same custom validate.lua used to work flawlessly in december.


    THIS is the original post when I developed the changes.
    The current validate.lua I have is exactely the same, aside from the fact I also added wardrobe2.


    From what I remember I modified the "validate" function to handle multiple types of validation (by default it only handles "sets" and "inv" options).
    Then I modified the "validate_inventory" function to accept two parameters in entrance, one is the same as default, the second defines the specific bag to perform the validation on.
    I can't remember any other differences I created and it worked perfectly fine.


    I noticed a small difference in your own coding though.
    New
    display_list:map(function(item) msg.add_to_chat(120, windower.to_shift_jis((string.gsub(item, "^%l", string.upper))) ) end)

    Old
    display_list:map(function(item) msg.add_to_chat(120, (string.gsub(item, "^%l", string.upper)) ) end)
    I have an up to date version of your gear not in lua validate.lua I can pass along when I get home tonight. There was a change to that file and as a result it clobbered the old version and removed the changes you made. I reapplied them yesterday and got your functionality to work again.

  2. #5622
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    I would apreciate a pastebin of it if you have a working version!
    I was unaware other people were actually using that modded version I made several months ago.
    I admit I used this custom thing rarely, but when I do I found it very useful to "catch" random items you have in your repositories and that you no longer use in any of your jobs' lua.

    If other people really use it then maybe it could be considered to post these changes on github and make them official for release version? Byrth what do you think about it, what's your stance?
    Validate.lua has to be updated anyway, if I'm not wrong the "validate_sets" function only checks wardrobe and inventory so it has to be updated for wardrobe2 as well.

  3. #5623
    New Spam Forum
    Join Date
    Jun 2007
    Posts
    174
    BG Level
    3

    Quote Originally Posted by Sechs View Post
    I would apreciate a pastebin of it if you have a working version!
    I was unaware other people were actually using that modded version I made several months ago.
    I admit I used this custom thing rarely, but when I do I found it very useful to "catch" random items you have in your repositories and that you no longer use in any of your jobs' lua.

    If other people really use it then maybe it could be considered to post these changes on github and make them official for release version? Byrth what do you think about it, what's your stance?
    Validate.lua has to be updated anyway, if I'm not wrong the "validate_sets" function only checks wardrobe and inventory so it has to be updated for wardrobe2 as well.
    Sorry for the delay, got busy last night and didn't have time to upload it. Here is the new version that should work (it was for me yesterday): http://pastebin.com/wYLREKNV

  4. #5624
    Relic Weapons
    Join Date
    Dec 2009
    Posts
    317
    BG Level
    4
    FFXI Server
    Carbuncle

    I notice that whenever I use the Raptor mount I'll get the numbers 85 appearing in the windower console for some reason. Didn't see it when I used the chocobo instead.

  5. #5625
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    Working for me indeed, gonna check later to see where the error was.
    For the time being, thanks a lot Wheeldog!

  6. #5626
    trv
    trv is offline
    Melee Summoner
    Join Date
    Oct 2014
    Posts
    48
    BG Level
    1

    This site will probably help you find the error. https://www.diffchecker.com/

  7. #5627
    New Spam Forum
    Join Date
    Jun 2007
    Posts
    174
    BG Level
    3

    Quote Originally Posted by Sechs View Post
    Working for me indeed, gonna check later to see where the error was.
    For the time being, thanks a lot Wheeldog!
    I'm pretty sure the one line I really changed/fixed was this:

    Code:
    local extra_items =search_sets_for_items_in_bag(items.repository,filter)
    To this:

    Code:
    local extra_items =search_sets_for_items_in_bag(items[repository],filter)
    I had to do this to your previous version too because you want to pass the table value associated to the value of repository not the table value associated with the string "repository" (which doesn't exist).

  8. #5628
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    It's likely I had to do that change myself but I forgot about it, and when I tried again 2 days ago after the patch I used an older version =/

  9. #5629
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    I am having a problem with what I would call a spam of ghost actions being attempted while I play. It doesn't happen until 15+mins of play. The symptom is that eventually I can no longer interact with NPCs unless I spam the enter key. Once I do interact the message "You cannot use that command at this time." begins to spam my chat log very rapidly. I counted 6 lines of that message per second on average. Whatever this action is I have no idea what it is as my character does not try to perform any actions at all before or after interacting with the NPC. Is there a way for me to turn on a debug mode that'll let me see what this action is?

    If I /logout and log back in it'll go away until it builds up to critical mass again. After not much longer (15mins or so) it gets to the point where my ffxi starts stuttering and I have to relog if I want to perform well :/

    This only started happening post-April5th,2016 >.> All of my job.luas are the same as they were before the update.

    http://s18.postimg.org/ngwb2bdwp/ghost.png

  10. #5630
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Roland_J View Post
    I am having a problem with what I would call a spam of ghost actions being attempted while I play. It doesn't happen until 15+mins of play. The symptom is that eventually I can no longer interact with NPCs unless I spam the enter key. Once I do interact the message "You cannot use that command at this time." begins to spam my chat log very rapidly. I counted 6 lines of that message per second on average. Whatever this action is I have no idea what it is as my character does not try to perform any actions at all before or after interacting with the NPC. Is there a way for me to turn on a debug mode that'll let me see what this action is?

    If I /logout and log back in it'll go away until it builds up to critical mass again. After not much longer (15mins or so) it gets to the point where my ffxi starts stuttering and I have to relog if I want to perform well :/

    This only started happening post-April5th,2016 >.> All of my job.luas are the same as they were before the update.

    http://s29.postimg.org/clomo9wjr/img...407_173642.png
    are you using gearswap or a custom(none official) addon??

  11. #5631
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    I am just using plugins and addons.
    Spoiler: show
    luacore (author: Windower Dev Team, version: [2]2.0.4.2)
    chatmon (author: Aikar (dev), Yekyaa (maintainer), version: [3]1.10.0.4)
    config (author: Arcon, version: [4]2.0.1.2)
    delaymenot (author: Iryoku, version: [5]1.0.0.2)
    ffxidb (author: Zohno, version: [6]0.9.2.12)
    sandbox (author: Invader, version: [7]1.0.1.6)
    tickle (author: ragns, version: [8]1.1.2.4)
    timers (author: Ihm, version: [9]3.7.4.10)

    AEcho
    AzureSets
    BattleMod
    Cancel
    chars
    ChatLink
    ConsoleBG
    Distance
    DressUp
    enternity
    GearSwap
    instaLS
    Itemizer
    Logger
    Lottery
    PetTP
    PointWatch
    reive
    Remember
    Scoreboard
    Send
    Shortcuts
    timestamp
    TParty
    Translate
    Update


    It only happens on one account and not the other, too. One account is mainly blu, which isn't a motenten job.lua. My other account is whm, geo, blm, and sch, which are all motenten, and it seems to do it no matter what job I'm playing. I was just doing trials as geo and limbus for abc's as sch immediately after closing/relaunching ffxi (dc'd so it wasn't a /logout) and it started doing it once I warped into town after limbus :/

  12. #5632
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    the only way to know what addon is causing it is to unload the one by one when it happens and when it stops the last one unloaded is the one that causes it
    tho just to be safe wait for 5-10 seconds to unload the next one
    if that does not fix it do the same for plugins(except for luacore as it cant be unloaded)

  13. #5633
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    Ah, thank you for the unload method of testing. It must be my job.lua then, no doubt. I just did 1h worth of trials on geo again and no error message played on NPCs in town after I warped. I changed to WHM, did an Arch-Omega, warped to town, and error messages ensued. //lua u gearswap ended the error spam and let me talk to NPCs without spamming enter.

    Here is my whm.lua... It did not give these errors until after this recent update. Is there some code that needs to change in gearswap.lua? Or was certain code that I use made outdated and I need to update it? I'm guessing it's somewhere in mote's stuff. My user update function prints an error now, for example! When I press F12 if I'm not in town then Light Arts and Afflatus Solace activate (this is tied into mote's user-update via code in my whm.lua. functioned fine for many many months before the update). Now when I press F12 those JAs do activate but it also prints a 'attempt to index field 'Defense' (a nil value)' on 'local defMode = state.Defense.PhysicalMode' which is line 722.

    Spoiler: show
    -------------------------------------------------------------------------------------------------------------------
    -- Initialization function that defines sets and variables to be used.
    -------------------------------------------------------------------------------------------------------------------

    -- IMPORTANT: Make sure to also get the Mote-Include.lua file (and its supplementary files) to go with this.

    -- An F12 keypress, while out of town, will activate Light Arts and Afflatus Solace --

    --[[
    Custom commands for WHM/SCH:

    Shorthand versions for each strategem type that uses the version appropriate for
    the current Arts.
    In-game macro: /console gs c scholar xxx

    Light Arts Dark Arts

    gs c scholar light Light Arts/Addendum
    gs c scholar dark Dark Arts/Addendum
    gs c scholar cost Penury Parsimony
    gs c scholar speed Celerity Alacrity
    gs c scholar aoe Accession Manifestation

    gs c scholar addendum Addendum: White Addendum: Black
    --]]

    send_command('wait 6;input /lockstyleset 03')

    -- Keybinds
    --Numpad Keybinds
    -- CTRL Key Binds --
    send_command('bind ^%numpad+ input /ja "Light Arts" <me>')
    send_command('bind ^%numpadenter input /ja "Dark Arts" <me>')
    send_command('bind ^%numpad. input /ma "Aurorastorm" <me>')
    send_command('bind ^%numpad0 input /ma "Haste" <me>')
    send_command('bind ^%numpad1 gs c scholar cost')
    send_command('bind ^%numpad2 gs c scholar speed')
    send_command('bind ^%numpad3 gs c scholar aoe')
    send_command('bind ^%numpad4 input /ma "Aquaveil" <me>')
    send_command('bind ^%numpad5 input /ma "Stoneskin" <me>')
    send_command('bind ^%numpad6 input /ma "Blink" <me>')
    send_command('bind ^%numpad7 input /ma "Raise" <t>')
    send_command('bind ^%numpad8 input /ma "Raise II" <t>')
    send_command('bind ^%numpad9 input /ma "Raise III" <t>')
    send_command('bind ^%numpad/ input /ma "Arise" <t>')
    send_command('bind ^%numpad* input /ma "Reraise IV" <me>')
    send_command('bind ^%numpad- input /ja "Sublimation" <me>')
    -- ALT Key Binds --
    send_command('bind !%numpad+ input /ja "Addendum: White" <me>')
    send_command('bind !%numpadenter input /ja "Addendum: Black" <me>')
    send_command('bind !%numpad1 input /ma "Silena" <t>')
    send_command('bind !%numpad2 gs c scholar speed')
    send_command('bind !%numpad3 gs c scholar aoe')
    send_command('bind !%numpad4 input /ma "Cursna" <t>')
    send_command('bind !%numpad5 input /ma "Sacrifice" <t>')
    send_command('bind !%numpad6 input /ma "Poisona" <t>')
    send_command('bind !%numpad7 input /ma "Erase" <t>')
    send_command('bind !%numpad8 input /ma "Stona" <t>')
    send_command('bind !%numpad9 input /ma "Paralyna" <t>')
    send_command('bind !%numpad/ input /ma "Blindna" <t>')
    send_command('bind !%numpad* input /ma "Viruna" <t>')
    send_command('bind !%numpad0 input /ja "Divine Caress" <me>')
    send_command('bind !%numpad. input /ma "Haste" <t>')
    send_command('bind !%numpad- input /ma "Regen IV" <t>')
    -- WINDOWS Key Binds --
    send_command('bind @%numpad1 input /ma "Cure" <t>')
    send_command('bind @%numpad2 input /ma "Cure II" <t>')
    send_command('bind @%numpad3 input /ma "Cure III" <t>')
    send_command('bind @%numpad4 input /ma "Cure IV" <t>')
    send_command('bind @%numpad5 input /ma "Cure V" <t>')
    send_command('bind @%numpad7 input /ma "Curaga II" <t>')
    send_command('bind @%numpad8 input /ma "Curaga III" <t>')
    send_command('bind @%numpad9 input /ma "Curaga IV" <t>')
    send_command('bind f3 input /ma "Erase" <t>')


    --Main Keypad Keybinds
    send_command('bind ^` input /ma "Aurorastorm" <me>')
    send_command('bind ^c input /ja "Divine Caress" <me>')
    send_command('bind ^d input /ja "Dark Arts" <me>;wait 1.4;input /ja "Addendum: Black" <me>;wait 1.2;input /ma "Dispel" <t>')
    send_command('bind ^e input /ma "Esuna" <me>')
    send_command('bind ^s input /ja "Sacrosanctity" <me>')
    send_command('bind ^. input /ma "Protectra V" <me>')
    send_command('bind ^/ input /ma "Shellra V" <me>')
    send_command('bind ^; input /ma "Protect V" <t>')
    send_command('bind ^\' input /ma "Shell V" <t>')

    function user_unload()
    if binds_on_unload then
    binds_on_unload()
    end
    send_command('unbind @t')
    send_command('unbind ^`')
    send_command('unbind ^1')
    send_command('unbind ^2')
    send_command('unbind ^3')
    send_command('unbind ^%numpad0')
    send_command('unbind ^%numpad1')
    send_command('unbind ^%numpad2')
    send_command('unbind ^%numpad3')
    send_command('unbind ^c')
    send_command('unbind ^d')
    send_command('unbind ^e')
    send_command('unbind ^s')
    send_command('unbind ^.')
    send_command('unbind ^/')
    end

    -- Initialization function for this job file.
    function get_sets()
    -- Load and initialize the include file.
    mote_include_version = 2
    include('Mote-Include.lua')
    -- Load helper binds file --
    include('estbinds.lua')
    end

    -- Setup vars that are user-independent.
    function job_setup()
    state.Buff['Afflatus Solace'] = buffactive['Afflatus Solace'] or false
    state.Buff['Afflatus Misery'] = buffactive['Afflatus Misery'] or false
    end

    -- Setup vars that are user-dependent. Can override this function in a sidecar file.
    function user_setup()
    -- Options: Override default values
    options.OffenseModes = {'None', 'Normal'}
    options.DefenseModes = {'Normal'}
    options.WeaponskillModes = {'Normal'}
    options.CastingModes = {'Normal', 'Resistant', 'Dire'}
    options.IdleModes = {'Normal', 'PDT'}
    options.RestingModes = {'Normal'}
    options.PhysicalDefenseModes = {'PDT'}
    options.MagicalDefenseModes = {'MDT'}

    state.OffenseMode = 'None'


    -- Default macro set/book
    set_macro_page(4, 16)
    end


    -- Define sets and vars used by this job file.
    function init_gear_sets()
    --------------------------------------
    -- Start defining the sets
    --------------------------------------

    -- Precast Sets

    -- Fast cast sets for spells
    sets.precast.FC = {main="Queller rod",ammo="Sapience orb",
    head="Nahtirah Hat",neck="Voltsurge torque",ear1="Enchntr. earring +1",ear2="Loquacious Earring",
    body="Anhur Robe",hands="Gende. gages +1",ring1="Weather. ring",ring2="Prolix Ring",
    back="Swith Cape +1",waist="Witful Belt",legs="Artsieq hose",feet="Regal pumps +1"}

    sets.precast.FC['Enhancing Magic'] = set_combine(sets.precast.FC, {})

    sets.precast.FC.Stoneskin = set_combine(sets.precast.FC['Enhancing Magic'], {})

    sets.precast.FC.Arise = set_combine(sets.precast.FC, {legs="Ebers pant. +1"})
    sets.precast.FC.Raise = set_combine(sets.precast.FC, {legs="Ebers pant. +1"})

    sets.precast.FC['Healing Magic'] = set_combine(sets.precast.FC, {legs="Ebers Pant. +1"})

    sets.precast.FC.StatusRemoval = set_combine(sets.precast.FC, {legs="Ebers pant. +1"})

    sets.precast.FC.Cure = set_combine(sets.precast.FC['Healing Magic'], {main="Queller rod",ear2="Nourish. earring +1",legs="Ebers pant. +1"})

    sets.precast.FC.Curaga = sets.precast.FC.Cure

    -- Precast sets to enhance JAs
    sets.precast.JA.Benediction = {body="Piety Briault +1"}
    sets.precast.JA.Devotion = {}

    -- Waltz set (chr and vit)
    sets.precast.Waltz = {}


    -- Weaponskill sets

    -- Default set for any weaponskill that isn't any more specifically defined
    gear.default.weaponskill_neck = "Asperity Necklace"
    gear.default.weaponskill_waist = ""
    sets.precast.WS = {}

    sets.precast.WS['Flash Nova'] = {}


    -- Midcast Sets

    sets.midcast.FastRecast = {head="Nahtirah Hat",neck="Voltsurge torque",ear1="Enchntr. earring +1",ear2="Loquacious Earring",
    body="Anhur Robe",hands="Gende. gages +1",ring1="Weatherspoon ring",ring2="Prolix Ring",
    back="Swith Cape +1",waist="Witful Belt",legs="Artsieq hose",feet="Regal pumps +1"}

    -- Cure sets
    gear.default.obi_waist = "Pythia sash"
    gear.default.obi_weapon = "Queller rod"
    gear.default.grip = "Genbu's shield" -- not functioning --
    gear.default.obi_back = "Mending Cape"

    sets.midcast.CureSolace = {
    main=gear.ElementalWeapon,
    sub=gear.ElementalGrip,
    ammo="Esper stone +1",
    head="Gende. caubeen +1",
    neck="Incanter's torque",
    ear1="Glorious earring",
    ear2="Nourish. earring +1",
    body="Ebers bliaud +1",
    hands="Kaykaus cuffs",
    ring1="Kuchekula ring",
    ring2="Sirona's ring",
    back=gear.ElementalCape,
    waist=gear.ElementalObi,
    legs="Ebers pant. +1",
    feet="Kaykaus boots"}

    sets.midcast.Cure = {
    main=gear.ElementalWeapon,
    sub=gear.ElementalGrip,
    ammo="Esper stone +1",
    head="Gende. caubeen +1",
    neck="Incanter's torque",
    ear1="Glorious earring",
    ear2="Nourish. earring +1",
    body="Ebers bliaud +1",
    hands="Kaykaus cuffs",
    ring1="Kuchekula ring",
    ring2="Sirona's ring",
    back=gear.ElementalCape,
    waist=gear.ElementalObi,
    legs="Ebers pant. +1",
    feet="Kaykaus boots"}

    sets.midcast.Curaga = {
    main=gear.ElementalWeapon,
    sub=gear.ElementalGrip,
    ammo="Esper stone +1",
    head="Gende. caubeen +1",
    neck="Incanter's torque",
    ear1="Glorious earring",
    ear2="Nourish. earring +1",
    body="Ebers bliaud +1",
    hands="Kaykaus cuffs",
    ring1="Kuchekula ring",
    ring2="Sirona's ring",
    back=gear.ElementalCape,
    waist=gear.ElementalObi,
    legs="Ebers pant. +1",
    feet="Kaykaus boots"}

    sets.midcast.CureMelee = {main="Queller rod",
    head="Gende. caubeen +1",neck="Nodens gorget",ear1="Glorious earring",ear2="Nourishing earring +1",
    body="Ebers bliaud +1",hands="Kaykaus cuffs",ring1="Kuchekula ring",ring2="Sirona's ring",
    back="Mending Cape",waist=gear.ElementalObi,legs="Ebers pant. +1",feet="Kaykaus boots"}

    sets.midcast.Cursna = {main="Beneficus",ammo="Homiliary",
    head="Ebers cap +1",neck="Debilis Medallion",
    body="Ebers bliaud +1",hands="fanatic gloves",ring1="Haoma's Ring",ring2="Haoma's Ring",
    back="Mending Cape",legs="Theo. pant. +1",feet="Gende. galosh. +1"}

    sets.midcast.StatusRemoval = {
    head="Ebers cap +1",legs="Ebers Pant. +1"}

    -- 110 total Enhancing Magic Skill; caps even without Light Arts
    sets.midcast['Enhancing Magic'] = { main="Beneficus",ammo="Homiliary",
    head="Telchine cap",neck="Incanter's torque",
    body="Telchine chas.",
    legs="Telchine braconi",feet="Telchine pigaches",back="Mending Cape"}

    sets.midcast.Stoneskin = {head="Befouled crown",neck="Nodens gorget",body="Telchine chas.",legs="piety pantaln. +1",feet="Ebers duckbills"}

    sets.midcast.Aquaveil = {main="Beneficus",head="Befouled crown",body="Anhur robe",back="Mending Cape",legs="piety pantaln. +1",feet="Ebers duckbills"}

    sets.midcast.Auspice = {main="Beneficus",head="Befouled crown",body="Anhur robe",back="Mending Cape",legs="piety pantaln. +1",feet="Ebers duckbills"}
    sets.midcast.Aurorastorm = {main="Beneficus",head="Befouled crown",body="Anhur robe",back="Mending Cape",legs="piety pantaln. +1",feet="Ebers duckbills"}

    sets.midcast.BarElement = {
    main="Beneficus",
    sub="Genbu's Shield",
    ammo="Homiliary",
    head="Ebers cap +1",
    neck="Incanter's torque",
    body="ebers bliaud +1",
    hands="ebers mitts +1",
    back="Mending Cape",
    legs="Piety pantaln. +1",
    feet="Kaykaus boots"}

    sets.midcast.Regen = set_combine(sets.midcast['Enhancing Magic'], {main="Bolelabunga",
    body="Piety briault +1",hands="Ebers mitts +1",legs="Theo. pant. +1"})

    sets.midcast.Protectra = set_combine(sets.midcast['Enhancing Magic'], {})

    sets.midcast.Shellra = set_combine(sets.midcast['Enhancing Magic'], {"Piety pantaln. +1"})

    sets.midcast['Divine Magic'] = {}

    sets.midcast['Repose'] = {}

    sets.midcast['Elemental Magic'] = {main="Serenity",sub="Niobid strap",ammo="Ghastly tathlum",
    head="Helios band",neck="Mizu. Kubikazari",ear1="Friomisi earring",ear2="Static earring",
    body="Witching robe",hands="Fanatic gloves",ring1="Locus ring",ring2="Mujin band",
    back="Seshaw cape",waist="Hachirin-no-obi",legs="Gyve trousers",feet="Helios boots"}

    sets.midcast['Dark Magic'] = {}

    -- Custom spell classes
    sets.midcast.MndEnfeebles = {}

    sets.midcast.IntEnfeebles = {}


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

    -- Resting sets
    sets.resting = {
    main="Queller rod",
    sub="Genbu's shield",
    ammo="Homiliary",
    head="Befouled crown",
    neck="Loricate torque +1",
    ear1="Moonshade Earring",
    ear2="Nourishing earring +1",
    body="Ebers bliaud +1", --temp--
    hands="Serpentes Cuffs",
    ring1="Gelatinous ring +1",
    ring2="Defending Ring",
    back="Umbra cape",
    waist="Fucho-no-Obi",
    legs="Assid. Pants +1",
    feet="Serpentes Sabots"}


    -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
    sets.idle = {
    main="Queller rod",
    sub="Genbu's shield",
    ammo="Homiliary",
    head="Befouled crown",
    neck="Loricate torque +1",
    ear1="Glorious Earring",
    ear2="Moonshade Earring",
    body="Witching robe",
    hands="Gende. gages +1",
    ring2="Defending ring",
    ring1="Gelatinous ring +1",
    back="Umbra cape",
    waist="Fucho-no-Obi",
    legs="Assid. Pants +1",
    feet="Gende. galosh. +1"}

    sets.idle.PDT = { --50 PDT, 8 Refresh--
    main="Queller rod",
    sub="Genbu's shield",
    ammo="Homiliary",
    head="Gende. caubeen +1",neck="Loricate torque +1",ear1="Glorious Earring",ear2="Moonshade Earring",
    body="Witching robe",hands="Gende. gages +1",ring2="Defending ring",ring1="Gelatinous ring +1",
    back="Umbra cape",waist="Fucho-no-Obi",legs="Assid. Pants +1",feet="Gende. galosh. +1"}

    sets.idle.Town = {
    main="Queller rod",
    sub="Genbu's shield",
    ammo="Homiliary",
    head="Befouled crown",
    neck="Loricate torque +1",
    ear1="Glorious Earring",
    ear2="Moonshade Earring",
    body="Councilor's garb",
    hands="Serpentes Cuffs",
    ring2="Defending ring",
    ring1="Gelatinous ring +1",
    back="Umbra cape",
    waist="Fucho-no-Obi",
    legs="Assid. Pants +1",
    feet="Herald's Gaiters"}

    sets.idle.Weak = {
    main="Queller rod",
    sub="Genbu's shield",
    ammo="Homiliary",
    head="Befouled crown",
    neck="Loricate torque +1",
    ear1="Glorious Earring",
    ear2="Moonshade Earring",
    body="Ebers bliaud +1", --temp--
    hands="Serpentes Cuffs",
    ring2="Defending ring",
    ring1="Gelatinous ring +1",
    back="Umbra cape",
    waist="Fucho-no-Obi",
    legs="Assid. Pants +1",
    feet="Serpentes Sabots"}

    -- Defense sets

    sets.defense.PDT = {
    main="Queller rod",
    sub="Genbu's shield",
    ammo="Homiliary",
    head="Befouled crown",
    neck="Loricate torque +1",
    ear1="Moonshade Earring",
    ear2="Nourishing earring +1",
    body="Witching robe",
    hands="Serpentes Cuffs",
    ring2="Defending ring",
    ring1="Haoma's Ring",
    back="Umbra cape",
    waist="Fucho-no-Obi",
    legs="Assid. Pants +1",
    feet="Serpentes Sabots"}

    sets.defense.MDT = {
    main="Queller rod",
    sub="Genbu's shield",
    ammo="Homiliary",
    head="Befouled crown",
    neck="Loricate torque +1",
    ear1="Moonshade Earring",
    ear2="Nourishing earring +1",
    body="Ebers bliaud +1", --temp--
    hands="Serpentes Cuffs",
    ring2="Defending ring",
    ring1="Haoma's Ring",
    back="Umbra cape",
    waist="Fucho-no-Obi",
    legs="Assid. Pants +1",
    feet="Serpentes Sabots"}

    sets.Kiting = {feet="Herald's Gaiters"}

    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

    -- Basic set for if no TP weapon is defined.
    sets.engaged = {
    main="Queller rod",
    sub="Genbu's shield",
    ammo="Homiliary",
    head="Befouled crown",
    neck="Loricate torque +1",
    ear1="Glorious Earring",
    ear2="Moonshade Earring",
    body="Ebers bliaud +1", --temp--
    hands="Gende. gages +1",
    ring2="Defending ring",
    ring1="Gelatinous ring +1",
    back="Umbra cape",
    waist="Fucho-no-Obi",
    legs="Assid. Pants +1",
    feet="Gende. galosh. +1"}


    -- Buff sets: Gear that needs to be worn to actively enhance a current player buff.
    sets.buff['Divine Caress'] = {hands="Ebers mitts +1",back="Mending Cape"}

    -- Miscellaneous --
    sets.warpring = {ring2="Warp ring"}
    end

    -------------------------------------------------------------------------------------------------------------------
    -- Job-specific hooks that are called to process player actions at specific points in time.
    -------------------------------------------------------------------------------------------------------------------

    -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
    -- Set eventArgs.useMidcastGear to true if we want midcast gear equipped on precast.
    function job_precast(spell, action, spellMap, eventArgs)


    local map = spell_maps[spell.en]

    if map == 'Cure' and player.sub_job == "SCH" and not buffactive.Aurorastorm then
    add_to_chat(123,'Aurorastorm not active.')
    windower.play_sound('C:\\Users\\Shirley\\Documents \\Windower4\\addons\\GearSwap\\data\\wav\\Chime.wa v')
    end

    if map == 'Curaga' and player.sub_job == "SCH" and not buffactive.Aurorastorm then
    add_to_chat(123,'Aurorastorm not active.')
    windower.play_sound('C:\\Users\\Shirley\\Documents \\Windower4\\addons\\GearSwap\\data\\wav\\Chime.wa v')
    end

    if spell.skill == 'Healing Magic' then
    gear.default.obi_back = "Mending Cape"
    gear.default.obi_waist = "Pythia sash"
    else
    gear.default.obi_waist = "Eschan stone"
    gear.default.obi_back = "Toro Cape"
    end

    if state.Buff[spell.english] ~= nil then
    state.Buff[spell.english] = true
    end
    end

    function job_post_midcast(spell, action, spellMap, eventArgs)
    -- Apply Divine Caress boosting items as highest priority over other gear, if applicable.
    if spellMap == 'StatusRemoval' and buffactive['Divine Caress'] then
    equip(sets.buff['Divine Caress'])
    end
    end


    -- Return true if we handled the aftercast work. Otherwise it will fall back
    -- to the general aftercast() code in Mote-Include.
    function job_aftercast(spell, action, spellMap, eventArgs)
    if state.Buff[spell.english] ~= nil then
    state.Buff[spell.english] = not spell.interrupted or buffactive[spell.english]
    end
    end


    -------------------------------------------------------------------------------------------------------------------
    -- Customization hooks for idle and melee sets, after they've been automatically constructed.
    -------------------------------------------------------------------------------------------------------------------

    -- Custom spell mapping.
    function job_get_spell_map(spell, default_spell_map)
    if spell.action_type == 'Magic' then
    if (default_spell_map == 'Cure' or default_spell_map == 'Curaga') and player.status == 'Engaged' then
    return "CureMelee"
    elseif default_spell_map == 'Cure' and state.Buff['Afflatus Solace'] then
    return "CureSolace"
    elseif spell.skill == "Enfeebling Magic" then
    if spell.type == "WhiteMagic" then
    return "MndEnfeebles"
    else
    return "IntEnfeebles"
    end
    end
    end
    end


    function customize_idle_set(idleSet)
    if player.mpp < 51 then
    idleSet = set_combine(idleSet, sets.latent_refresh)
    end
    return idleSet
    end


    -------------------------------------------------------------------------------------------------------------------
    -- General hooks for other 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 state.Buff[buff] ~= nil then
    state.Buff[buff] = gain
    end
    end


    -------------------------------------------------------------------------------------------------------------------
    -- User code that supplements self-commands.
    -------------------------------------------------------------------------------------------------------------------

    -- Called by the 'update' self-command.
    function job_update(cmdParams, eventArgs)
    if cmdParams[1] == 'user' then
    local needsArts =
    player.sub_job:lower() == 'sch' and
    not buffactive['Light Arts'] and
    not buffactive['Addendum: White'] and
    not buffactive['Dark Arts'] and
    not buffactive['Addendum: Black']

    if not buffactive['Afflatus Solace'] and not buffactive['Afflatus Misery'] then
    if needsArts then
    send_command('@input /ja "Afflatus Solace" <me>;wait 1.2;input /ja "Light Arts" <me>')
    else
    send_command('@input /ja "Afflatus Solace" <me>')
    end
    end
    end
    end

    -- Called for direct player commands.
    function job_self_command(cmdParams, eventArgs)
    if cmdParams[1]:lower() == 'scholar' then
    handle_strategems(cmdParams)
    eventArgs.handled = true
    end
    end

    -- Handle notifications of general user state change.
    function job_state_change(stateField, newValue, oldValue)
    if stateField == 'OffenseMode' then
    if newValue == 'Normal' then
    disable('main','sub')
    else
    enable('main','sub')
    end
    elseif stateField == 'Reset' then
    if state.OffenseMode == 'None' then
    enable('main','sub')
    end
    end
    end

    function handle_strategems(cmdParams)
    -- cmdParams[1] == 'scholar'
    -- cmdParams[2] == strategem to use
    if not cmdParams[2] then
    add_to_chat(123,'Error: No strategem command given.')
    return
    end

    local currentStrats = get_current_strategem_count()
    local newStratCount = currentStrats - 1
    local strategem = cmdParams[2]:lower()

    if currentStrats == 0 then
    add_to_chat(122, '***Out of strategems! Canceling...***')
    return
    end

    if strategem == 'light' then
    if buffactive['light arts'] then
    send_command('input /ja "Addendum: White" <me>')
    add_to_chat(122, '***Current Charges Available: ['..newStratCount..']***')
    elseif buffactive['addendum: white'] then
    add_to_chat(122,'Error: Addendum: White is already active.')
    elseif buffactive['dark arts'] or buffactive['addendum: black'] then
    send_command('input /ja "Light Arts" <me>')
    add_to_chat(122, '***Changing Arts! Current Charges Available: ['..currentStrats..']***')
    else
    send_command('input /ja "Light Arts" <me>')
    end
    elseif strategem == 'dark' then
    if buffactive['dark arts'] then
    send_command('input /ja "Addendum: Black" <me>')
    add_to_chat(122, '***Current Charges Available: ['..newStratCount..']***')
    elseif buffactive['addendum: black'] then
    add_to_chat(122,'Error: Addendum: Black is already active.')
    elseif buffactive['light arts'] or buffactive['addendum: white'] then
    send_command('input /ja "Dark Arts" <me>')
    add_to_chat(122, '***Changing Arts! Current Charges Available: ['..currentStrats..']***')
    else
    send_command('input /ja "Dark Arts" <me>')
    end
    elseif buffactive['light arts'] or buffactive['addendum: white'] then
    if strategem == 'cost' then
    send_command('@input /ja Penury <me>')
    elseif strategem == 'speed' then
    send_command('@input /ja Celerity <me>')
    elseif strategem == 'aoe' then
    send_command('@input /ja Accession <me>')
    elseif strategem == 'power' then
    send_command('@input /ja Rapture <me>')
    elseif strategem == 'duration' then
    send_command('@input /ja Perpetuance <me>')
    elseif strategem == 'accuracy' then
    send_command('@input /ja Altruism <me>')
    elseif strategem == 'enmity' then
    send_command('@input /ja Tranquility <me>')
    elseif strategem == 'skillchain' then
    add_to_chat(122,'Error: Light Arts does not have a skillchain strategem.')
    elseif strategem == 'addendum' then
    send_command('@input /ja "Addendum: White" <me>')
    else
    add_to_chat(123,'Error: Unknown strategem ['..strategem..']')
    end
    elseif buffactive['dark arts'] or buffactive['addendum: black'] then
    if strategem == 'cost' then
    send_command('@input /ja Parsimony <me>')
    elseif strategem == 'speed' then
    send_command('@input /ja Alacrity <me>')
    elseif strategem == 'aoe' then
    send_command('@input /ja Manifestation <me>')
    elseif strategem == 'power' then
    send_command('@input /ja Ebullience <me>')
    elseif strategem == 'duration' then
    add_to_chat(122,'Error: Dark Arts does not have a duration strategem.')
    elseif strategem == 'accuracy' then
    send_command('@input /ja Focalization <me>')
    elseif strategem == 'enmity' then
    send_command('@input /ja Equanimity <me>')
    elseif strategem == 'skillchain' then
    send_command('@input /ja Immanence <me>')
    elseif strategem == 'addendum' then
    send_command('@input /ja "Addendum: Black" <me>')
    else
    add_to_chat(123,'Error: Unknown strategem ['..strategem..']')
    end
    else
    add_to_chat(123,'No arts has been activated yet.')
    end
    end

    -- Gets the current number of available strategems based on the recast remaining
    -- and the level of the sch.
    function get_current_strategem_count()
    -- returns recast in seconds.
    local allRecasts = windower.ffxi.get_ability_recasts()
    local stratsRecast = allRecasts[231]

    local maxStrategems = 2

    local fullRechargeTime = 2*110

    local currentCharges = math.floor(maxStrategems - maxStrategems * stratsRecast / fullRechargeTime)

    return currentCharges
    end

    -- Function to display the current relevant user state when doing an update.
    -- Return true if display was handled, and you don't want the default info shown.
    function display_current_job_state(eventArgs)
    local defenseString = ''
    if state.Defense.Active then
    local defMode = state.Defense.PhysicalMode
    if state.Defense.Type == 'Magical' then
    defMode = state.Defense.MagicalMode
    end

    defenseString = 'Defense: '..state.Defense.Type..' '..defMode..', '
    end

    local meleeString = ''
    if state.OffenseMode == 'Normal' then
    meleeString = 'Melee: Weapons locked, '
    end

    add_to_chat(122,'Casting ['..state.CastingMode..'], '..meleeString..'Idle ['..state.IdleMode..'], '..defenseString..
    'Kiting: '..on_off_names[state.Kiting])

    eventArgs.handled = true
    end

    -------------------------------------------------------------------------------------------------------------------
    -- Utility functions specific to this job.
    -------------------------------------------------------------------------------------------------------------------

  14. #5634
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    first make sure that you do not have some stuck keys on your keyboard or something like that

    then there are only 2 functions that could be causing the error(as far as i can tell)
    job_update
    handle_strategems

    to test these just comment them out to see which the error comes from ,to comment out a lot of lines put --[[ in front and ]] at the end, then you need to figure out what part of the code is causing it(this will take time)

  15. #5635
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    I might have found my error. What I did find stopped the error I get on F12 key presses.

    I had changed mote_include_version to 2 in a half-hearted attempt to upgrade my whm.lua and get that pesky "your job.lua file is out of date" message to go away. Changing it back to version 1 stopped this error. I'll play around some more on whm and see if the error spam starts happening again. Hopefully this is the root of that problem, too. This job.lua was working perfectly with version 1 of mote include; I might not even bother upgrading it if it's gonna be this pesky.

    Unfortunately I had decided to try upgrading it right around the same time as the version update and so it was hard for me to tell that this was the culprit at first. Assuming this is the entire culprit. that is. We'll see.

  16. #5636
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    I have found sometimes that when I get silenced, I have it set to use echoes (Ive had this kind of code a long time and it never acted like this before, didnt even spam it). but occasionally it will spam it, which I understand (and can accept) but alot of times it will successfully start using the item a couple times in the spam usage of it, but not actually work. its like the echo doesnt get fully used. I did update some stuff in that part of the code and I got it much better, and it doesnt happen as much. but when i first started having that happen it would spam enuf to lag the shit out of me (like tons of memory gets used or something)

    I write my own luas tho so no Motes. I am going to be starting from scratch again though soon. much better code with what I have learned to do lately.

  17. #5637
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Trumpy View Post
    I have found sometimes that when I get silenced, I have it set to use echoes (Ive had this kind of code a long time and it never acted like this before, didnt even spam it). but occasionally it will spam it, which I understand (and can accept) but alot of times it will successfully start using the item a couple times in the spam usage of it, but not actually work. its like the echo doesnt get fully used. I did update some stuff in that part of the code and I got it much better, and it doesnt happen as much. but when i first started having that happen it would spam enuf to lag the shit out of me (like tons of memory gets used or something)

    I write my own luas tho so no Motes. I am going to be starting from scratch again though soon. much better code with what I have learned to do lately.
    i recommend you find a timer to wait a set time till it allows you to use another echoes
    then (but in mot sure if it will work) put a check in aftercast to see if the item was interupted if it was re send the command

  18. #5638
    Relic Weapons
    Join Date
    Dec 2009
    Posts
    317
    BG Level
    4
    FFXI Server
    Carbuncle

    Findall doesn't seem to be able to find the new ambuscade equipment on slip 23, and still getting the numbers 85 appear on console when using raptor mount.

  19. #5639
    Melee Summoner
    Join Date
    Jun 2013
    Posts
    26
    BG Level
    1
    FFXI Server
    Ragnarok

    For the error of gearswap printing the 85 as a temporal fix you can edit the statuses.lua in the resources and add this line at the end:

    Code:
    [85] = {id=85,en="Mount"},

  20. #5640
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Quote Originally Posted by dlsmd View Post
    i recommend you find a timer to wait a set time till it allows you to use another echoes
    then (but in mot sure if it will work) put a check in aftercast to see if the item was interupted if it was re send the command
    Aftercasts were pretty cool until bout a year or so ago. Then code would be spotty on what would work and what wouldnt. If I changed a variable, or made a custom timer in aftercast it seems to usually work but I started have trouble with other things that I used to do all the time. Cause of that I tried to keep most code out of aftercast. I cant even really remember things I had issues with cause I found otherways to deal with what I needed, many of which turned out better. I believe most the problems I had were with the interupted check itself.

    I'm not a genius coder or anything. im pretty subpar actually and Im sure if you saw my code you would be workin all day on it lol. I have no ideas about how to set timers within gearswap. I imagine it would be kinda like that code that prevents spell spamming where it prevents spells after trying to cast one, which is cool in theory but i found it blockin casts for up to 5-10 seconds and it was horrible for me. I remember that from a couple years back but I dont remember what it was called. My current solution and its one i been using alot lately is something like this... When i get silenced, i have it send a self command. that command checks if im silenced then uses echo drops. after the drop it is sent again after a certain amoutn of seconds, like 5-7 or however long an echo drop takes and then a couple more seconds maybe, I dont remember exactly. If im not silenced it does nothing. this way if it attempts an echo and is prevented either by throwback/movement or im casting or something, it will try again in the alloted time. and if it works that second check will just do nothing. I think any problem i have now with spammage is because i might have another addon or something also tryin to use echos, so i need to go thru those or something. like aecho i think does use a echo when silenced. I can also add a job check in the code and make it universal for all my jobs. that way its not trying to use echos when im a monk or whatever.

    My post was more directed at Roland J who was having spamming issues. ive for the most part fixed those issues for myself.

    ============================

    @Findall the slips.lua in the libs folder prolly needs updating then.

Page 282 of 307 FirstFirst ... 232 272 280 281 282 283 284 292 ... LastLast

Similar Threads

  1. Service and Support
    By Ribeye in forum FFXI: Everything
    Replies: 8
    Last Post: 2009-10-17, 18:23
  2. Windows vista and FFXI problem
    By Takeno in forum FFXI: Everything
    Replies: 1
    Last Post: 2007-07-26, 13:36
  3. Windows Vista and Windower
    By divisortheory in forum FFXI: Everything
    Replies: 35
    Last Post: 2006-06-23, 04:19