Item Search
     
BG-Wiki Search
Page 258 of 302 FirstFirst ... 208 248 256 257 258 259 260 268 ... LastLast
Results 5141 to 5160 of 6036

Thread: Gearswap Help Thread!     submit to reddit submit to twitter

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

    Quote Originally Posted by Treize Kordero View Post
    Well this turned out to be harder than I expected. Can't even get a box to display at all when trying to make my own code. I also can't find any information on the syntax needed for creating a button that can a execute command.
    this is the oldest version of my display that i have as an example(it will probably cause a crap ton of errors tho)
    http://pastebin.com/vzL4w2ht
    -function initialize --creates the display
    -function grab_switches --grabs the switches(the things in initialize surrounded with {}) max one per line
    -function updatedisplay --updates the display switches to the latest data(from grab_switches)
    -function mouse --a windower mouse control interface
    -function menu_commands --use the switches from grab_switches to send command

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

    Quote Originally Posted by Byrthnoth View Post
    The easiest way to figure out how to do things is to open another addon that can already do it and see how it works. I believe there's an addon called Nostrum that uses clickable buttons?
    Nostrum was hard to understand for me

  3. #5143
    Relic Weapons
    Join Date
    Aug 2010
    Posts
    335
    BG Level
    4
    FFXI Server
    Asura

    Quote Originally Posted by dlsmd View Post
    this is the oldest version of my display that i have as an example(it will probably cause a crap ton of errors tho)
    http://pastebin.com/vzL4w2ht
    -function initialize --creates the display
    -function grab_switches --grabs the switches(the things in initialize surrounded with {}) max one per line
    -function updatedisplay --updates the display switches to the latest data(from grab_switches)
    -function mouse --a windower mouse control interface
    -function menu_commands --use the switches from grab_switches to send command
    Thanks for this info. I'll try it again once I get time.

  4. #5144
    Smells like Onions
    Join Date
    Apr 2016
    Posts
    4
    BG Level
    0

    Having some issues getting a simple melee lua to work. Been working with someone from FFXIAH for a week to get this going, with some success, but now it simply won't work at all.

    Forum won't let me post links yet, so I put the lua in a spoiler.
    Spoiler: show

    function get_sets()

    -- This set will be equipped when idle
    sets.aftercast = {}
    sets.Idle = {
    main="Eminent Lance",
    sub="Pole Grip",
    ammo="Thew Bomblet",
    head="Twilight Helm",
    body="Twilight Mail",
    hands="Lncr. Vmbrc. +1",
    legs="Lncr. Cuissots +1",
    feet="Lncr. Schynbld. +1",
    waist="Goading Belt",
    back="Atheling Mantle",
    neck="Orochi Nodowa",
    left_ear="Brutal Earring",
    right_ear="Kemas Earring",
    left_ring="Dark Ring",
    right_ring="Dark Ring",
    }


    -- This set will be equipped when engaging the enemy
    sets.TP = {
    main="Eminent Lance",
    sub="Pole Grip",
    ammo="Thew Bomblet",
    head="Espial Cap",
    body="Espial Gambison",
    hands="Espial Bracers",
    legs="Espial Hose",
    feet="Espial Socks",
    waist="Goading Belt",
    back="Atheling Mantle",
    neck="Chivalrous Chain",
    left_ear="Brutal Earring",
    right_ear="Kemas Earring",
    left_ring="Rajas Ring",
    right_ring="Heed Ring",
    }

    -- This set will be equipped before Drakesbane used
    sets.precast = {}
    sets.precast.Drakesbane = {
    main="Eminent Lance",
    sub="Pole Grip",
    ammo="Thew Bomblet",
    head="Espial Cap",
    body="Espial Gambison",
    hands="Espial Bracers",
    legs="Espial Hose",
    feet="Espial Socks",
    waist="Warwolf Belt",
    back="Atheling Mantle",
    neck="Agasaya's Collar",
    left_ear="Brutal Earring",
    right_ear="Kemas Earring",
    left_ring="Rajas Ring",
    right_ring="Spiral Ring",
    }
    end


    function aftercast(spell, action)
    if player.status =='Idle' then
    equip(sets.Idle)
    elseif player.status == 'Engaged' then
    equip(sets.TP)
    end
    end

    function precast(spell,action)
    if spell.english == 'Drakesbane' then
    equip(sets.precast.Drakesbane)
    end
    end



    What I want it to do is equip a TP set when engaging a mob, equip a WS set before WS, back to TP set after the WS is done, then to an Idle set when disengaging.

  5. #5145
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Eretai View Post
    Having some issues getting a simple melee lua to work. Been working with someone from FFXIAH for a week to get this going, with some success, but now it simply won't work at all.

    Forum won't let me post links yet, so I put the lua in a spoiler.
    ...

    What I want it to do is equip a TP set when engaging a mob, equip a WS set before WS, back to TP set after the WS is done, then to an Idle set when disengaging.
    if that all you want to do your doing it wrong
    try this
    Code:
    function get_sets()
    
        -- This set will be equipped when idle
        sets.Idle = {
        main="Eminent Lance",
        sub="Pole Grip",
        ammo="Thew Bomblet",
        head="Twilight Helm",
        body="Twilight Mail",
        hands="Lncr. Vmbrc. +1",
        legs="Lncr. Cuissots +1",
        feet="Lncr. Schynbld. +1",
        waist="Goading Belt",
        back="Atheling Mantle",
        neck="Orochi Nodowa",
        left_ear="Brutal Earring",
        right_ear="Kemas Earring",
        left_ring="Dark Ring",
        right_ring="Dark Ring",
        }
    
    
        -- This set will be equipped when engaging the enemy
        sets.Engaged = {
        main="Eminent Lance",
        sub="Pole Grip",
        ammo="Thew Bomblet",
        head="Espial Cap",
        body="Espial Gambison",
        hands="Espial Bracers",
        legs="Espial Hose",
        feet="Espial Socks",
        waist="Goading Belt",
        back="Atheling Mantle",
        neck="Chivalrous Chain",
        left_ear="Brutal Earring",
        right_ear="Kemas Earring",
        left_ring="Rajas Ring",
        right_ring="Heed Ring",
        }
    
        -- This set will be equipped before Drakesbane used
        sets.precast = {}
        sets.precast.Drakesbane = {
        main="Eminent Lance",
        sub="Pole Grip",
        ammo="Thew Bomblet",
        head="Espial Cap",
        body="Espial Gambison",
        hands="Espial Bracers",
        legs="Espial Hose",
        feet="Espial Socks",
        waist="Warwolf Belt",
        back="Atheling Mantle",
        neck="Agasaya's Collar",
        left_ear="Brutal Earring",
        right_ear="Kemas Earring",
        left_ring="Rajas Ring",
        right_ring="Spiral Ring",
        }
    end
    
    function status_change(new,old)
        if sets[new] then
            equip(sets[new])
        end
    end
    
    function aftercast(spell)
        if sets[player.status] then
            equip(sets[player.status])
        end
    end
    
    function precast(spell)
        if spell.english == 'Drakesbane' then
            equip(sets.precast.Drakesbane)
        end
    end

  6. #5146
    Smells like Onions
    Join Date
    Apr 2016
    Posts
    4
    BG Level
    0

    Quote Originally Posted by dlsmd View Post
    if that all you want to do your doing it wrong
    try this
    FINALLY! YES!
    It works perfectly! Tested it with //gs showswaps active and everything changes out the way it should!
    Thank you so much! Been working on getting this thing to work for a week xD

  7. #5147
    Smells like Onions
    Join Date
    Apr 2016
    Posts
    4
    BG Level
    0

    Quote Originally Posted by Eretai View Post
    FINALLY! YES!
    It works perfectly! Tested it with //gs showswaps active and everything changes out the way it should!
    Thank you so much! Been working on getting this thing to work for a week xD
    Took that fixed lua, and changed it around to work for my roommate's THF. Now I am trying to add a function to equip her Utsusemi casting -% set, but it doesn't seem to work.

    Here is the set (for now):
    Spoiler: show

    -- This set will be equipped when casting Utsusemi
    sets.precast = {}
    sets.Utsusemi = {
    neck="Magoraga Beads",
    }


    And here is the function (or so I thought):
    Spoiler: show

    function precast(spell)
    if spell.english == 'Utsusemi' then
    equip(sets.precast.Utsusemi)
    end
    end



    Here is the full lua, in case:
    Spoiler: show

    function get_sets()

    -- This set will be equipped when idle
    sets.Idle = {
    main="Eminent Dagger",
    sub="Pukulatmuj",
    range="Raider's Boomerang",
    head="Espial Cap",
    body="Espial Gambison",
    hands="Espial Bracers",
    legs="Espial Hose",
    feet="Espial Socks",
    waist="Nusku's Sash",
    back="Amemet Mantle +1",
    neck="Agasaya's Collar",
    left_ear="Brutal Earring",
    right_ear="Suppanomimi",
    left_ring="Heed Ring",
    right_ring="Rajas Ring",
    }

    -- This set will be equipped when casting Utsusemi
    sets.precast = {}
    sets.Utsusemi = {
    neck="Magoraga Beads",
    }


    -- This set will be equipped when engaging the enemy
    sets.Engaged = {
    main="Eminent Dagger",
    sub="Pukulatmuj",
    range="Raider's Boomerang",
    head="Espial Cap",
    body="Espial Gambison",
    hands="Espial Bracers",
    legs="Espial Hose",
    feet="Espial Socks",
    waist="Nusku's Sash",
    back="Amemet Mantle +1",
    neck="Agasaya's Collar",
    left_ear="Brutal Earring",
    right_ear="Suppanomimi",
    left_ring="Heed Ring",
    right_ring="Rajas Ring",
    }

    -- This set will be equipped before Evisceration used
    sets.precast = {}
    sets.precast.Evisceration = {
    main="Eminent Dagger",
    sub="Pukulatmuj",
    range="Raider's Boomerang",
    head="Espial Cap",
    body="Espial Gambison",
    hands="Espial Bracers",
    legs="Espial Hose",
    feet="Espial Socks",
    waist="Raider's Belt",
    back="Amemet Mantle +1",
    neck="Agasaya's Collar",
    left_ear="Brutal Earring",
    right_ear="Suppanomimi",
    left_ring="Heed Ring",
    right_ring="Rajas Ring",
    }
    end

    function status_change(new,old)
    if sets[new] then
    equip(sets[new])
    end
    end

    function aftercast(spell)
    if sets[player.status] then
    equip(sets[player.status])
    end
    end

    function precast(spell)
    if spell.english == 'Utsusemi' then
    equip(sets.precast.Utsusemi)
    end
    end

    function precast(spell)
    if spell.english == 'Evisceration' then
    equip(sets.precast.Evisceration)
    end
    end


    What did I do wrong? Assuming its a tiny error somewhere that I'm overlooking.

  8. #5148
    BG Content
    Join Date
    Sep 2011
    Posts
    707
    BG Level
    5
    FFXIV Character
    Modoru D'kkoru
    FFXIV Server
    Hyperion
    FFXI Server
    Siren

    Think you have to specify the spell, not just 'Utsusemi'.

    Take this as an example:

    Code:
    if spell.skill == 'Ninjutsu' then
            equip(sets.precast.Fastcast)
            if windower.wc_match(spell.name,'Utsusemi*') then
                equip(sets.precast.Utsusemi)
            end
    Similarly, use Byrth's example code to go on:

    Code:
    function midcast(spell)
    	if string.find(spell.english,'Utsusemi') then
    		equip(sets.Utsusemi)
    	end
    end

  9. #5149
    Smells like Onions
    Join Date
    Apr 2016
    Posts
    4
    BG Level
    0

    Quote Originally Posted by Modoru View Post
    Think you have to specify the spell, not just 'Utsusemi'.

    Take this as an example:

    Code:
    if spell.skill == 'Ninjutsu' then
            equip(sets.precast.Fastcast)
            if windower.wc_match(spell.name,'Utsusemi*') then
                equip(sets.precast.Utsusemi)
            end
    Similarly, use Byrth's example code to go on:

    Code:
    function midcast(spell)
    	if string.find(spell.english,'Utsusemi') then
    		equip(sets.Utsusemi)
    	end
    end
    Neither of those worked :/
    Even had //gs showswaps on to check.

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

    Quote Originally Posted by Eretai View Post
    Took that fixed lua, and changed it around to work for my roommate's THF. Now I am trying to add a function to equip her Utsusemi casting -% set, but it doesn't seem to work.

    Here is the set (for now):
    Spoiler: show

    -- This set will be equipped when casting Utsusemi
    sets.precast = {}
    sets.Utsusemi = {
    neck="Magoraga Beads",
    }


    And here is the function (or so I thought):
    Spoiler: show

    function precast(spell)
    if spell.english == 'Utsusemi' then
    equip(sets.precast.Utsusemi)
    end
    end



    Here is the full lua, in case:
    ...
    What did I do wrong? Assuming its a tiny error somewhere that I'm overlooking.
    the issue is you can only have one function with the same name so do it like this
    Code:
    function get_sets()
        -- This set will be equipped when idle
        sets.Idle = {
        main="Eminent Dagger",
        sub="Pukulatmuj",
        range="Raider's Boomerang",
        head="Espial Cap",
        body="Espial Gambison",
        hands="Espial Bracers",
        legs="Espial Hose",
        feet="Espial Socks",
        waist="Nusku's Sash",
        back="Amemet Mantle +1",
        neck="Agasaya's Collar",
        left_ear="Brutal Earring",
        right_ear="Suppanomimi",
        left_ring="Heed Ring",
        right_ring="Rajas Ring",
        }
    
        -- This set will be equipped when casting Utsusemi
        sets.precast = {}
        sets.Utsusemi = {
        neck="Magoraga Beads",
        }
    
    
        -- This set will be equipped when engaging the enemy
        sets.Engaged = {
        main="Eminent Dagger",
        sub="Pukulatmuj",
        range="Raider's Boomerang",
        head="Espial Cap",
        body="Espial Gambison",
        hands="Espial Bracers",
        legs="Espial Hose",
        feet="Espial Socks",
        waist="Nusku's Sash",
        back="Amemet Mantle +1",
        neck="Agasaya's Collar",
        left_ear="Brutal Earring",
        right_ear="Suppanomimi",
        left_ring="Heed Ring",
        right_ring="Rajas Ring",
        }
    
        -- This set will be equipped before Evisceration used
        sets.precast = {}
        sets.precast.Evisceration = {
        main="Eminent Dagger",
        sub="Pukulatmuj",
        range="Raider's Boomerang",
        head="Espial Cap",
        body="Espial Gambison",
        hands="Espial Bracers",
        legs="Espial Hose",
        feet="Espial Socks",
        waist="Raider's Belt",
        back="Amemet Mantle +1",
        neck="Agasaya's Collar",
        left_ear="Brutal Earring",
        right_ear="Suppanomimi",
        left_ring="Heed Ring",
        right_ring="Rajas Ring",
        }
    end
    
    function status_change(new,old)
        if sets[new] then
            equip(sets[new])
        end
    end
    
    function aftercast(spell)
        if sets[player.status] then
            equip(sets[player.status])
        end
    end
    
    function precast(spell)
        if spell.name:startswith("Utsusemi") then
            equip(sets.precast.Utsusemi)
        elseif spell.english == 'Evisceration' then
            equip(sets.precast.Evisceration)
        end
    end
    here is some useful info in case you need it http://pastebin.com/GLdhjSuR

  11. #5151
    Hydra
    Join Date
    Sep 2012
    Posts
    118
    BG Level
    3

    The problem is there is no spell called "Utsusemi". There are a few ways in addition to the ways Modoru already said to detect

    Code:
    if S{"Utsusemi: Ichi", "Utsusemi: Ni", "Utsusemi: San"}:contains (spell.name) then
    
    or
    
    if spell.name:startswith("Utsusemi") then

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

    Quote Originally Posted by Shadowmeld View Post
    The problem is there is no spell called "Utsusemi". There are a few ways in addition to the ways Modoru already said to detect

    Code:
    if S{"Utsusemi: Ichi", "Utsusemi: Ni", "Utsusemi: San"}:contains (spell.name) then
    
    or
    
    if spell.name:startswith("Utsusemi") then
    i missed that one oops so thx
    and my point is still valid as well
    --updated my previous post

  13. #5153
    Smells like Onions
    Join Date
    Apr 2016
    Posts
    1
    BG Level
    0

    Is there something i can add into my LUA or an addon for windower that will auto turn your toon when a mob puts dread spikes up and keep it turned until the effect is gone?

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

    Quote Originally Posted by Niatnuom View Post
    Is there something i can add into my LUA or an addon for windower that will auto turn your toon when a mob puts dread spikes up and keep it turned until the effect is gone?
    no the closest you can find is gaze_check

  15. #5155
    Old Merits
    Join Date
    Sep 2010
    Posts
    1,094
    BG Level
    6
    FFXI Server
    Ragnarok

    Does anyone know if the buff data displayed when you target a party member is exposed to luacore? and if so, where?

  16. #5156
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Martel View Post
    Does anyone know if the buff data displayed when you target a party member is exposed to luacore? and if so, where?
    partybuffs
    but im not sure of the layout off hand

  17. #5157
    Old Merits
    Join Date
    Sep 2010
    Posts
    1,094
    BG Level
    6
    FFXI Server
    Ragnarok

    Quote Originally Posted by dlsmd View Post
    partybuffs
    but im not sure of the layout off hand
    Is that part of another table? I get nil when trying to call it.

  18. #5158
    Puppetmaster
    Join Date
    Jul 2005
    Posts
    70
    BG Level
    2

    Noob with Gearswap asking about skillup.lua

    So I recently started messing around with Gearswap. One of the things I wanted to try was skilling up while I was in the midst of writing on smn. It's going to take...a while. It works fine until I get to Alexander then it says I need to be in Astral Flow.

    I've tried adding Alexander to skipped spells but it doesn't seem to actually skip anything. Any suggestions?

  19. #5159
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    as i said i dont know the layout
    but this will tell you
    Code:
    for i, v in pairs(partybuffs) do
        print(i,v)--print to windower console
    end
    can you please let me know the results

  20. #5160
    BG Content
    Join Date
    Jul 2007
    Posts
    22,368
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Within the user environment, it should be accessed through the party or alliance[1] tables. (the party table is the alliance[1] table)

    party[0].buffactive, party[1].buffactive, alliance[1][2].buffactive, etc.

Page 258 of 302 FirstFirst ... 208 248 256 257 258 259 260 268 ... LastLast

Similar Threads

  1. Replies: 6547
    Last Post: 2014-07-08, 22:45