Item Search
     
BG-Wiki Search
Page 177 of 302 FirstFirst ... 127 167 175 176 177 178 179 187 227 ... LastLast
Results 3521 to 3540 of 6036

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

  1. #3521
    RIDE ARMOR
    Join Date
    Dec 2014
    Posts
    12
    BG Level
    1

    Hello, i have problem in my WHM&THF Gearswap, Please Help me out!

    for my whm Gearswap when i cast Cursna it swap to haste set and not Cursna set.

    My WHM GS:
    pastebin.com/v1FgQ7fn

    ------------------
    For my THF Gearswap when i do sneak attack the gears will be locked on SA gears all fight and i cant Toggle betwen AccArray = {"LowACC","MidACC","HighACC"}
    so just SA gears all fight, i Deleted this part

    sets.JA["Sneak Attack"] = {
    head="Pill. Bonnet +1",
    body="Pillager's Vest +1",
    hands="Raider's Armlets +2",
    legs="Pill. Culottes +1",
    feet="Plun. Poulaines +1"}
    sets.JA["Trick Attack"] = set_combine(sets.JA["Sneak Attack"],{hands="Pill. Armlets +1"})

    and tested the gs w/o it it worked fine but wont swap to SA gears if i do SA so please help me

    My THF Gearswap: pastebin.com/kdame8QX

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

    Quote Originally Posted by KLoOoSH View Post
    Hello, i have problem in my WHM&THF Gearswap, Please Help me out!

    for my whm Gearswap when i cast Cursna it swap to haste set and not Cursna set.

    My WHM GS:
    pastebin.com/v1FgQ7fn

    ------------------
    For my THF Gearswap when i do sneak attack the gears will be locked on SA gears all fight and i cant Toggle betwen AccArray = {"LowACC","MidACC","HighACC"}
    so just SA gears all fight, i Deleted this part

    sets.JA["Sneak Attack"] = {
    head="Pill. Bonnet +1",
    body="Pillager's Vest +1",
    hands="Raider's Armlets +2",
    legs="Pill. Culottes +1",
    feet="Plun. Poulaines +1"}
    sets.JA["Trick Attack"] = set_combine(sets.JA["Sneak Attack"],{hands="Pill. Armlets +1"})

    and tested the gs w/o it it worked fine but wont swap to SA gears if i do SA so please help me

    My THF Gearswap: pastebin.com/kdame8QX
    both of your files are a mess of many different coders and styles but in you whm file there are at lest 2 thing that are stopping you gear from equipping correctly but i would have to read it out to figure out whats going on and the easiest way to fix it and that will take time as tomorrow is xmas

    give me time and ill look in to it some more

  3. #3523
    RIDE ARMOR
    Join Date
    Dec 2014
    Posts
    12
    BG Level
    1

    Take your time : )
    and please feel free to fix any mistake i dont know about it
    coz am using this whm gearswap since 6months and i didnt knew that is my Cursna set wasn't working.... ; ;

  4. #3524
    RIDE ARMOR
    Join Date
    Dec 2014
    Posts
    12
    BG Level
    1

    Another Mistake in WHM GS Divine Caress Set is not working when i do Divine Caress JA its swap Yagrush only w/o the hands&back
    -- Divine Caress Set --
    sets['Divine Caress'] = {
    main="Yagrush",
    hands="Orison Mitts +2",
    back="Mending Cape"}

  5. #3525
    Old Merits
    Join Date
    Aug 2007
    Posts
    1,088
    BG Level
    6
    FFXI Server
    Ragnarok

    Just want to make sure this won't crash me:

    Code:
    if buffactive["Last Resort"] and (((buffactive.March == 1 or buffactive.March == 2) and (buffactive[33] or buffactive.Embrava or buffactive[580])) or (buffactive[33] and (buffactive[580] or buffactive.embrava))) and equipSet["HighHaste"] then
    	equipSet = equipSet["HighHaste"]
    end
    Basically want to say if I have last resort on and (either 1 or 2 march and either haste 2 (I know it can't tell haste or haste II but that's fine), embrava, or geo haste) or (haste 1 and geo haste or embrava), I would want high haste gear. I think I have the bracket on correctly but just want to make sure that this won't crash me.

    Unless anyone got something better?

    Thank you

  6. #3526
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    You shouldn't crash regardless, and it looks fine to me, although you can simplify it a bit. I'm not sure what equipSet["HighHaste"] returns or why you assign it to its parent container... that seems a bit weird, but I don't know the rest of your code or the library you use, but the logic itself looks fine. Is there a difference between 33 and 580 Haste?

  7. #3527
    Old Merits
    Join Date
    Aug 2007
    Posts
    1,088
    BG Level
    6
    FFXI Server
    Ragnarok

    From what i understand, 33 is haste spell like haste and haste II, 580 is geo haste.

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

    Quote Originally Posted by Nameless View Post
    Just want to make sure this won't crash me:

    Code:
    if buffactive["Last Resort"] and (((buffactive.March == 1 or buffactive.March == 2) and (buffactive[33] or buffactive.Embrava or buffactive[580])) or (buffactive[33] and (buffactive[580] or buffactive.embrava))) and equipSet["HighHaste"] then
    	equipSet = equipSet["HighHaste"]
    end
    Basically want to say if I have last resort on and (either 1 or 2 march and either haste 2 (I know it can't tell haste or haste II but that's fine), embrava, or geo haste) or (haste 1 and geo haste or embrava), I would want high haste gear. I think I have the bracket on correctly but just want to make sure that this won't crash me.

    Unless anyone got something better?

    Thank you
    this should be all you need
    if buffactive["Last Resort"] and ((buffactive.March) and (buffactive.Haste or buffactive.Embrava)) and equipSet["HighHaste"] then

  9. #3529
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    Quote Originally Posted by dlsmd View Post
    this should be all you need
    if buffactive["Last Resort"] and ((buffactive.March) and (buffactive.Haste or buffactive.Embrava)) and equipSet["HighHaste"] then
    That's not equivalent to what he wanted. It will be false if he has just Haste + Embrava or just Haste + Geo-Haste.

  10. #3530
    Smells like Onions
    Join Date
    Dec 2014
    Posts
    3
    BG Level
    0

    Okay, so I've been using gearswap for about a week or two now, maybe longer, and I've run into a few snags here and there, but I've been able to fix it by carefully checking the lines and such.

    Unfortunately, I've run into a problem that I can't seem to fix no matter what I do. I'm using the template for my DRK here: pastebin.c/AFH4mx4k and have followed Kinematic's instructions to
    update it, like I did with my DRG (which works without any hassle), but I keep getting this error:

    Spoiler: show
    GearSwarp: Lua runtime error: gearswap/flow.lua:300:
    Gearswap has detected an error in the user function status_change:
    ...amsWindower4/addons/gearswap/libs/Mote-Include.lua:878: attempt to index field '?' (a nil value)


    I've never had this issue before, so I'm not entirely sure what the issue is, and I only get it so far with my DRK sets. If you want an example of my current lines and whatnot, then here
    is my lua script: pastebin.c/LWW8rnda

    Any help would be highly appreciated.

    EDIT: I should also mention that it has a similar error, but replaces status_change with aftercast or something like that when I try to cast spells, too. It'll partially change my gear, but generally does nothing.

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

    Quote Originally Posted by Arcon View Post
    That's not equivalent to what he wanted. It will be false if he has just Haste + Embrava or just Haste + Geo-Haste.
    thats exacly what is there
    with out March and Haste or embrava its not going to activate that way he has it
    and 'geo haste' and 'haste' have the same name Haste so it does not matter
    if buffactive["Last Resort"] and
    (((buffactive.March == 1 or buffactive.March == 2) and (buffactive[33] or buffactive.Embrava or buffactive[580])) or (buffactive[33] and (buffactive[580] or buffactive.embrava)))
    and equipSet["HighHaste"] then

    and the way lua or works
    (a or b or c or d)
    as long as one of them is true it will be true and it will also be true even if more then one is true
    in (or)
    true or true = true
    true or false = true
    false or true = true
    false or false = false

    so actually it only need to be this
    Code:
    if buffactive["Last Resort"] and (buffactive.March or buffactive.Haste or buffactive.Embrava) and equipSet["HighHaste"] then

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

    Quote Originally Posted by KLoOoSH View Post
    Hello, i have problem in my WHM&THF Gearswap, Please Help me out!

    for my whm Gearswap when i cast Cursna it swap to haste set and not Cursna set.

    My WHM GS:
    pastebin.com/v1FgQ7fn

    ------------------
    For my THF Gearswap when i do sneak attack the gears will be locked on SA gears all fight and i cant Toggle betwen AccArray = {"LowACC","MidACC","HighACC"}
    so just SA gears all fight, i Deleted this part

    sets.JA["Sneak Attack"] = {
    head="Pill. Bonnet +1",
    body="Pillager's Vest +1",
    hands="Raider's Armlets +2",
    legs="Pill. Culottes +1",
    feet="Plun. Poulaines +1"}
    sets.JA["Trick Attack"] = set_combine(sets.JA["Sneak Attack"],{hands="Pill. Armlets +1"})

    and tested the gs w/o it it worked fine but wont swap to SA gears if i do SA so please help me

    My THF Gearswap: pastebin.com/kdame8QX
    on your whm issue
    the main issue is that you have no precast set for Cursna so it defaults to the fast cast set and in midcast you have Cursna in your na rules so it will never equip the midcast Cursna set on line 511
    if you remove it from here you will never equip your na set when using Cursna but if you dont it will never equip your Cursna set
    but you can add
    Code:
     if spell.english == "Cursna" then
                    equipSet = set_combine(equipSet,sets.Midcast.Cursna)
                end
    at line 514 and it should fix most of your issues

    to fix the thf issue remove lines 318 - 323
    this is most likely causing your issue because if you try to use Sneak Attack or Trick Attack and it gets stopped you have no way to turn them off unless you use them again
    but you also have code in your buff_change function so its not needed in your precast function

    if you still want me to rewrite you files i can but it wont be for almost 3 days i have to head out of town

  13. #3533
    Melee Summoner
    Join Date
    Jan 2010
    Posts
    29
    BG Level
    1
    FFXI Server
    Caitsith

    2 part request i cant seem to get this cure to AoE cure rule to work, also what would i have to take and keep from AutoRA to make it function inside my BLU lua for Dart spam. I changed all /ra <t> to /ma "GD" <t> but it only shoots once and stops. Im trying to not have to change the code everytime i want to use for ranged vs magic jobs. If possible could i get it to stop at a dropped buff instead of 1000% TP

    Cure Rule only seems to look for and then break when I write it as job_precast and stops at "if not" line.
    -- Cure Upgrade
    function precast(spell)
    if T{"Pollen","Magic Fruit"}:contains(spell.name) and AutoAga == 1 then
    if not party_index_lookup(spell.target.name) then
    return
    end
    local target_count = 0
    local total_hpp_deficit = 0
    for i=1,party.count do
    if party[i].hpp<80 and party[i].status_id ~= 2 and party[i].status_id ~= 3 then
    target_count = target_count + 1
    total_hpp_deficit = total_hpp_deficit + (100 - party[i].hpp)
    end
    end
    if target_count > 1 then
    cancel_spell()
    if total_hpp_deficit / target_count > Curaga_benchmark then
    send_command('input /ma "White Wind" '..spell.target.name..';')
    else
    send_command('input /ja "Diffusion" <me>;wait 1;input /ma "Regeneration" '..spell.target.name..';')
    end
    end
    end
    end
    AutoAga = 1
    Curaga_benchmark = 40
    Broken Lockstyle i just seen as well if not asking to much
    function windower.register_event(new,old)
    if ('zone change') then
    send_command ('wait 4; gs equip idle_set; input /lockstyle on')
    end
    end
    Thanks for any help and i use mote lua if that matters

  14. #3534
    Old Merits
    Join Date
    Aug 2007
    Posts
    1,088
    BG Level
    6
    FFXI Server
    Ragnarok

    Have the following problem. I have the below rule to save a macro spot. So instead of having both seigan and third eye, I just have third eye in my macro bar, and when I do third eye without seigan, it will cast seigan first then third eye. However, this works in spellcast but in gearswap it works but when my Seigan is on recast, it will keep trying to cast it over and over nonstop even though I just put the comment once. Is there a way for it to stop looping and just cast third eye if seigan is on cooldown? Thank you.

    Code:
    	elseif spell.english == "Third Eye" and not buffactive.Seigan then -- Change Seigan To Third Eye if Seigan Is On --
    		cancel_spell()
    		send_command('input /ja "Seigan" <me>')
    		send_command('@wait 0.5;input /ja "Third Eye" <me>')

  15. #3535
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Maybe these things can help you with your seigan issue...

    spell.recast number Number representing the base recast time of the spell. Obtained from resources.
    spell.recast_id number Number representing the spell's timer ID, which can be used with the LuaCore get_spell_recasts() function to determine the current spell recast.

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

    Quote Originally Posted by Nameless View Post
    Have the following problem. I have the below rule to save a macro spot. So instead of having both seigan and third eye, I just have third eye in my macro bar, and when I do third eye without seigan, it will cast seigan first then third eye. However, this works in spellcast but in gearswap it works but when my Seigan is on recast, it will keep trying to cast it over and over nonstop even though I just put the comment once. Is there a way for it to stop looping and just cast third eye if seigan is on cooldown? Thank you.

    Code:
        elseif spell.english == "Third Eye" and not buffactive.Seigan then -- Change Seigan To Third Eye if Seigan Is On --
            cancel_spell()
            send_command('input /ja "Seigan" <me>')
            send_command('@wait 0.5;input /ja "Third Eye" <me>')
    use this
    elseif spell.english == "Third Eye" and windower.ffxi.get_ability_recasts()[139] < 1 and not buffactive.Seigan then

  17. #3537
    Melee Summoner
    Join Date
    Feb 2006
    Posts
    43
    BG Level
    1
    FFXI Server
    Ragnarok

    Hi! I'm just about done making the transition to Gearswap from Spellcast after returning to the game a couple of months ago, but there's one thing I can't seem to figure out.

    For BRD, I had it set up so that my in-game song macros were all like this: /ma "Valor Minuet V" <t>, and that I would auto-target myself when casting buffs. In Spellcast, the code looked like this:
    Code:
            <if type="BardSong">
                <if NotBuffActive="Pianissimo" advanced='"$Pianissimo"="No"'>
                    <if NotSpellTargetType="SELF" ValidTarget="SELF">
                        <changetarget target="&lt;me&gt;" />
                    </if>
                </if>
    The benefit of this was that I could be targeting another player, NPC or monster and not lose the target even if I needed to cast buffs on myself. And with this code and my <t> macros, I could target other players with my buffs after using Pianissimo manually.

    I have not been able to recreate this in Gearswap on my own. Does anyone have an idea of how I could make it work?

  18. #3538
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    I didn't test this:
    Code:
    pretarget = function(spell)
        if spell.type == 'BardSong' and spell.targets == S{'Self'} and spell.target.raw == '<t>' and not buffactive.pianissimo then
            change_target('<me>')
        end
    end

  19. #3539
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    Quote Originally Posted by dlsmd View Post
    so actually it only need to be this
    Code:
    if buffactive["Last Resort"] and (buffactive.March or buffactive.Haste or buffactive.Embrava) and equipSet["HighHaste"] then
    This is what he said:
    Quote Originally Posted by Nameless View Post
    Basically want to say if I have last resort on and (either 1 or 2 march and either haste 2 (I know it can't tell haste or haste II but that's fine), embrava, or geo haste) or (haste 1 and geo haste or embrava), I would want high haste gear.
    I interpret this the following way:
    Code:
    His: "Last Resort" and ((at least one "March" and ("Haste" or "Haste II" or "Embrava" or "GEO-Haste")) or ("Haste" and ("GEO-Haste" or "Embrava")))
    The "Last Resort" case is the only case of interest here, so let's assume that's a given. And merging Haste and Haste II simplifies to this:
    Code:
    His: ("March" and ("Haste" or "Embrava" or "GEO-Haste")) or ("Haste" and ("GEO-Haste" or "Embrava"))
    This is the first one you suggested:
    Code:
    Yours1: "March" and ("Haste" or "Embrava")
    This is the second one you suggested:
    Code:
    Yours2: "March" or "Haste" or "Embrava"
    Assume he has just Haste and GEO-Haste. His would result in true, your second would as well, but your first would not, so it's not the same, hence it's out.

    Now assume he has just Haste. His would be false, your first would also be false, but your second one would be true, so it's different as well, and out again.

    Neither of the two match what he suggested.

    Edit:
    While just "Haste" will match both GEO-Haste and regular Haste you cannot tell them apart that way, so it's still useful to use IDs for it.

  20. #3540
    Melee Summoner
    Join Date
    Feb 2006
    Posts
    43
    BG Level
    1
    FFXI Server
    Ragnarok

    Quote Originally Posted by Arcon View Post
    I didn't test this:
    Code:
    pretarget = function(spell)
        if spell.type == 'BardSong' and spell.targets == S{'Self'} and spell.target.raw == '<t>' and not buffactive.pianissimo then
            change_target('<me>')
        end
    end
    I copied your suggestion and pasted it into my file and gave it a try, but unfortunately it didn't work - thanks for trying, though!

    It's annoying because it's just songs that are being uncooperative. I have healing macros that use Shortcuts and are just /cure4, for example - if I don't target anything, I cast Cure IV on myself, and if I target another player, it casts Cure IV on them. Doing the same with songs and a macro like /valorminuet5 works in the sense that I can sing without having to target myself, but if I then use Pianissimo and target someone else, I still cast on myself.

Page 177 of 302 FirstFirst ... 127 167 175 176 177 178 179 187 227 ... LastLast

Similar Threads

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