Item Search
     
BG-Wiki Search
Page 220 of 307 FirstFirst ... 170 210 218 219 220 221 222 230 270 ... LastLast
Results 4381 to 4400 of 6124
  1. #4381
    E. Body
    Join Date
    Nov 2008
    Posts
    2,048
    BG Level
    7
    FFXI Server
    Bismarck

    Quote Originally Posted by dlsmd View Post
    if it was before the update today then you will have to wait till its updated to see if it still exists
    and if it does the errors should look like this

    Code:
    09:38:21 > GearSwap: Lua error (runtime)
    09:38:21 >   GearSwap/flow.lua:300: 
    09:38:21 > GearSwap has detected an error in the user function file_unload:
    09:38:21 > ...\/addons/GearSwap/data/<player name>/includes/Extras.lua:40: attempt to index field 'weapon' (a nil value)
    if you look at the forth line you will see ware the error is located

    but your issue is something with an equip(set1,set2,set3,…) somewhere in your code
    same error, here is what is in the windower console:
    //addons/Gearswap/flow.lua:140: attempt to call global 'priority_order' (a nil value)

    like i said, this just popped up this past weekend.

  2. #4382
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Snprphnx View Post
    same error, here is what is in the windower console:
    //addons/Gearswap/flow.lua:140: attempt to call global 'priority_order' (a nil value)

    like i said, this just popped up this past weekend.
    come here so that we do not clog this thread with this issue http://www.bluegartr.com/threads/119...18#post6289718
    and post your lua to past bin and i take a look at it
    if your using something like this sets.nohead = {head={name="empty",priority=1},lring={name="Angha ring",priority=2}}
    it could be that you are reversing a equip order like main/sub which could cause an error
    or you put priority_order= when it should be priority=

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

    Given how Apnea's Latent Checker doess't work anymore, have there ever been plans to release something similar as a Windower Addon?

  4. #4384
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Apnea's latent checker does still work, but not in the same way that it used to.

    Unequip the weapon, open the program, select the weapon.
    Go back to FFXI, move the item to another bag.
    Now the LatentChecker will show the latent.


    SE stopped sending the latent count with normal item update packets to avoid people being able to see how many WSs they had left (idk why). However, they do still accidentally send it in the packet that should blank a given inventory slot when you move the item away. That's why this trick works.

    As far as a plan for release it as a windower addon, it would be hard to make an addon that could do what I described above (which is what it would have to do), but the extdata library does currently include this information if you can figure out how to use it.

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

    I knew about that trick Byrth (altough I didn't know the reason behind it, thanks!), but it doesn't work anymore.
    It just doesn't see the weapons, not just the points.

  6. #4386
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Oh, that's an inventory structure problem then. I no longer own any breakable weapons, so I can't test anything in Lua. The code would look something like:
    Code:
    extdata = require 'extdata'
    res = require 'resources'
    
    target_item = 'Kodachi of trials'
    index = false
    
    for i,v in pairs(windower.ffxi.get_items().inventory) do
        if v.id and res.items[v.id] and (res.items[v.id].en:lower() == target_item:lower() or res.items[v.id].enl:lower() == target_item:lower()) then
            print('found the item')
            index = i
            break
        end
    end
    
    windower.register_event('load',function ()
        windower.packets.inject_outgoing(0x29,string.char(0x29,6,0,0,1,0,0,0,0,5,index,0x52))
        coroutine.sleep(2)
        print(extdata.decode(windower.ffxi.get_items().inventory[index]).ws_points)
    end)
    It requires that you write the name of the equipment that you're interested in when it says 'Name', that it be unequipped, and that you have at least 1 inventory spot open in your satchel.

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

    missing a closing parethesys on the windower.packets.inject_outgoing line.

    When I load it with the item unequipped in my inventory (with the right name written in the lua) I get an error "Lua Error (unknown: 1) - attempt to yield across metamethod/C-call boundary"

  8. #4388
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Okay, I changed it. Try that.

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

    Still get the same c-call boundary error when I attempt to load it with free space in my satchels and the item unequipped in my inventory

  10. #4390
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Okay, one more try.

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

    It appearently works, and returns value in the Console after like 1 second.
    I love it, thanks.
    Should consider releasing it as an official addon

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

    Quote Originally Posted by Sechs View Post
    It appearently works, and returns value in the Console after like 1 second.
    I love it, thanks.
    Should consider releasing it as an official addon
    you could also check to see which of them is in your inventory(you can only hold one at a time) then automatically move it and move it back the out put the amount of ws's you have done

    i think this might work
    Code:
    _addon.name = 'LatentChecker'
    _addon.author = 'Byrth'
    _addon.command = 'latentchecker'
    _addon.commands = {'lc'}
    _addon.version = '1.0'
    
    extdata = require 'extdata'
    res = require 'resources'
    
    index = false
    function find_item(target_item)
        for i,v in pairs(windower.ffxi.get_items().inventory) do
            if v.id and res.items[v.id] and (res.items[v.id].en:lower() == target_item:lower() or res.items[v.id].enl:lower() == target_item:lower()) then
                print('found the item')
                index = i
                run_check()
                break
            end
        end
    end
    
    function run_check()
        windower.packets.inject_outgoing(0x29,string.char(0x29,6,0,0,1,0,0,0,0,5,index,0x52))
        coroutine.sleep(2)
        print(extdata.decode(windower.ffxi.get_items().inventory[index]).ws_points)
    end)
    
    windower.register_event('addon command', function(command, ...)
        command = command or 'help'
        args = L{...}
        local trial_weapons = {'Axe of Trials','Gun of Trials','Sword of Trials','Knuckles of Trials','Spear of Trials','Scythe of Trials','Sapara of Trials',
        'Bow of Trials','Club of Trials','Pole of Trials ','Pick of Trials','Dagger of Trials','Tachi of Trials','Kodachi of Trials'}
        if command == 'run' then
            for i,v in pairs(trial_weapons) do
                find_item(v)
            end
        end
    
    end)

  13. #4393
    Hydra
    Join Date
    Nov 2007
    Posts
    132
    BG Level
    3

    Definitely should release this as an add-on.

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

    There are more trial weapons btw! The ones used for Mythic WS for instance (which are the ones I'm using right now). Dunno which more, I guess the level 70 ones (Destroyers, Senjunrikio etc) but I doubt anybody cares for those lol

  15. #4395
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    this is the one byrth started i added ware you can put in what bag you want to use and ware it will unequip (before checking) and retrieve the item back after it checks it
    it also has the mythic weapons(not sure if these will work)
    Code:
    _addon.name = 'LatentChecker'
    _addon.author = 'Byrth,Smd111'
    _addon.command = 'latentchecker'
    _addon.commands = {'lc'}
    _addon.version = '1.0'
    
    extdata = require 'extdata'
    res = require 'resources'
    bag = 'Satchel'
    bag_id = 0
    unequip = true
    for i,v in pairs(res.bags) do
        if v.en == bag:lower():gsub("^%l", string.upper) then
            bag_id = i
        end
    end
    function find_item(target_item)
        for i,v in pairs(windower.ffxi.get_items().inventory) do
            if v.id and res.items[v.id] and (res.items[v.id].en:lower() == target_item:lower() or res.items[v.id].enl:lower() == target_item:lower()) then
                windower.packets.inject_outgoing(0x29,string.char(0x29,6,0,0,1,0,0,0,0,5,i,0x52))
                coroutine.sleep(2)
                print('Weapon Skills Done = '..extdata.decode(windower.ffxi.get_items().inventory[i]).ws_points)
                coroutine.sleep(2)
                get_back_item(target_item)
                break
            end
        end
    end
    function get_back_item(target_item)
        for i,v in pairs(windower.ffxi.get_items()[bag:lower()]) do
            if v.id and res.items[v.id] and (res.items[v.id].en:lower() == target_item:lower() or res.items[v.id].enl:lower() == target_item:lower()) then
                windower.packets.inject_outgoing(0x29,string.char(0x29,6,0,0,1,0,0,0,bag_id,0,i,0x52))
                print('Done')
                break
            end
        end
    end
    windower.register_event('addon command', function(command, ...)
        command = command or 'help'
        args = L{...}
        local trial_weapons = {"Axe of Trials","Gun of Trials","Sword of Trials","Knuckles of Trials","Spear of Trials","Scythe of Trials","Sapara of Trials",
        "Bow of Trials","Club of Trials","Pole of Trials ","Pick of Trials","Dagger of Trials","Tachi of Trials","Kodachi of Trials","Sturdy Axe","Burning Fists",
        "Werebuster","Mage's Staff","Vorpal Sword","Swordbreaker","Brave Blade","Death Sickle","Double Axe","Dancing Dagger","Killer Bow","Windslicer","Sasuke Katana",
        "Radiant Lance","Scepter Staff","Wightslayer","Quicksilver","Inferno Claws","Main Gauche","Elder Staff"}
        if command == 'run' then
            print('Starting')
            if unequip then
                windower.ffxi.set_equip(0, 0, 0)
            end
            for i,v in pairs(trial_weapons) do
                find_item(v)
            end
        end
    end)
    all you need to do is type in lc run or latentchecker run
    you can change unequip to false so it wont try to unequip your main hand

    if byrth is ok with what i have done with his post he can release it

    Quote Originally Posted by Sechs View Post
    Dunno which more, I guess the level 70 ones (Destroyers, Senjunrikio etc) but I doubt anybody cares for those lol
    thats a different kind of latent effect that what this is looking for
    and i think that one is server side only

  16. #4396
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    You need to add a check that makes sure there is space in both bags (and perhaps searches for other bags to transfer to if there isn't), but otherwise I'd say that's good.

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

    Release! Release! Release!
    Sorry for sounding conceited, but I'm pretty confident a lot of people would apreciate such an addon

  18. #4398
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Byrthnoth View Post
    You need to add a check that makes sure there is space in both bags (and perhaps searches for other bags to transfer to if there isn't), but otherwise I'd say that's good.
    added

    Code:
    _addon.name = 'LatentChecker'
    _addon.author = 'Byrth,Smd111'
    _addon.command = 'latentchecker'
    _addon.commands = {'lc'}
    _addon.version = '1.0'
    
    extdata = require 'extdata'
    res = require 'resources'
    bag = 'Satchel'
    bag_id = 5
    unequip = true
    function check_space()
        for i,v in pairs(res.bags) do
            if v.access == "Everywhere" and v.en ~= "Inventory" and windower.ffxi.get_items(v.id).max ~= windower.ffxi.get_items(v.id).count then
                bag = v.en:lower():gsub("^%l", string.upper)
                bag_id = i
                break
            end
        end
    end
    function find_item(target_item)
        if windower.ffxi.get_items(bag_id).max == windower.ffxi.get_items(bag_id).count then
            check_space()
        end
        for i,v in pairs(windower.ffxi.get_items().inventory) do
            if v.id and res.items[v.id] and (res.items[v.id].en:lower() == target_item:lower() or res.items[v.id].enl:lower() == target_item:lower()) then
                windower.packets.inject_outgoing(0x29,string.char(0x29,6,0,0,1,0,0,0,0,bag_id,i,0x52))
                coroutine.sleep(2)
                print('Weapon Skills Done = '..extdata.decode(windower.ffxi.get_items().inventory[i]).ws_points)
                coroutine.sleep(2)
                get_back_item(target_item)
                break
            end
        end
    end
    function get_back_item(target_item)
        for i,v in pairs(windower.ffxi.get_items()[bag:lower()]) do
            if v.id and res.items[v.id] and (res.items[v.id].en:lower() == target_item:lower() or res.items[v.id].enl:lower() == target_item:lower()) then
                windower.packets.inject_outgoing(0x29,string.char(0x29,6,0,0,1,0,0,0,bag_id,0,i,0x52))
                print('Done')
                break
            end
        end
    end
    
    windower.register_event('addon command', function(command, ...)
        command = command or 'help'
        args = L{...}
        local trial_weapons = {"Axe of Trials","Gun of Trials","Sword of Trials","Knuckles of Trials","Spear of Trials","Scythe of Trials","Sapara of Trials",
        "Bow of Trials","Club of Trials","Pole of Trials ","Pick of Trials","Dagger of Trials","Tachi of Trials","Kodachi of Trials","Sturdy Axe","Burning Fists",
        "Werebuster","Mage's Staff","Vorpal Sword","Swordbreaker","Brave Blade","Death Sickle","Double Axe","Dancing Dagger","Killer Bow","Windslicer","Sasuke Katana",
        "Radiant Lance","Scepter Staff","Wightslayer","Quicksilver","Inferno Claws","Main Gauche","Elder Staff"}
        if command == 'run' then
            print('Starting')
            if unequip then
                windower.ffxi.set_equip(0, 0, 0)
            end
            for i,v in pairs(trial_weapons) do
                find_item(v)
            end
        end
    end)
    --edit--
    added a to have it check to find any of these bags Satchel,Sack,Case,Wardrobe have an open slot to move and retreve the item how ever if you have any items in your lot box and thay drop in to your inventory and fill it up it wont retrieve the weapon back

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

    I pushed a new version of Scoreboard to -dev this morning. It should fix the Daken issues as well as some other issues people have reported in the last few months.

    Longer explanation:
    Suji took a very object-oriented approach when designing scoreboard, which makes it fairly easy to update as long as you aren't changing the way its objects relate to one another. I wasn't doing that, but when I went in to look at how he was parsing the action packet it seemed less than ideal and not very robust (hence not catching Daken). In order to make it more robust (and, consequently, catch Daken), I chose to move most of the action packet processing out of scoreboard and into the actions library.

    In the actions library I have implemented something similar to the way GearSwap and Battlemod dissect the action packet, but I tried to do so while maintaining Suji's object oriented approach (and probably did it poorly). Anyway, the bottom line is that it should be more reliable and opens a lot of doors for scoreboard in the long run (in terms of parsing healing, parsing-by-WS, etc.) but currently relies on a lot of code that hasn't been tested a lot. I did something like 80% of the implementation this morning while soloing merit points in Kamihr Drifts on Dancer and then left it running while I did a JP Incursion run and didn't notice anything too strange.

    Oh yeah, if you heal a monster now (for instance, if it absorbs physical damage), then that much damage will be subtracted from your current total. Also, drains should count as damage but only up to the value that you see in your log.


    I'd appreciate it if you guys could give it a shot and tell me if it works:
    Put this in ..windower/addons/scoreboard: https://www.dropbox.com/s/ntau2bs7m0...board.lua?dl=0
    Put this in ..windower/addons/libs: https://www.dropbox.com/s/vul8fdbfdl...tions.lua?dl=0


    PS. We also do know about the add_to_chat bug and are working to try and figure out why it occurs.

  20. #4400
    CoP Dynamis
    Join Date
    Jul 2007
    Posts
    270
    BG Level
    4
    FFXI Server
    Asura

    Any suggestions for making this check the equipped weapon if its in either inventory or wardrobe and not just one?
    Code:
    local weapon = res.items[windower.ffxi.get_items().inventory[windower.ffxi.get_items().equipment.main].id].english

Page 220 of 307 FirstFirst ... 170 210 218 219 220 221 222 230 270 ... 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