Item Search
     
BG-Wiki Search
Page 252 of 302 FirstFirst ... 202 242 250 251 252 253 254 262 ... LastLast
Results 5021 to 5040 of 6036

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

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

    Quote Originally Posted by maxplayer View Post
    Did you want my full lua? I dont have a code started for it. Im not the best when it comes to LUA code just yet. I dont use mote-includes though. and I cant post URLs just yet either lol

    Also: the LUA is on Pastebin right now
    UEj81mKK
    do you want it in but precast and midcast or just one of them??
    and if you want it automated what are the triggers

  2. #5022
    Smells like Onions
    Join Date
    Jul 2014
    Posts
    7
    BG Level
    0

    Quote Originally Posted by dlsmd View Post
    do you want it in but precast and midcast or just one of them??
    and if you want it automated what are the triggers
    I want it to be where any type of magic I cast goes into my sets.midcast.interruption. IE Bluemagic, Healing, Enhancing. ect. But only when I turn a toggle on. Its only for a few select fights. so I dont always need it to be Active. I am not sure where Interruption needs to be to take effect. I cant figure out if its precast or midcast or for the full cast. so I guess until I can figure out when Interruption takes place Both pre and midcast.

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

    Quote Originally Posted by maxplayer View Post
    I want it to be where any type of magic I cast goes into my sets.midcast.interruption. IE Bluemagic, Healing, Enhancing. ect. But only when I turn a toggle on. Its only for a few select fights. so I dont always need it to be Active. I am not sure where Interruption needs to be to take effect. I cant figure out if its precast or midcast or for the full cast. so I guess until I can figure out when Interruption takes place Both pre and midcast.
    here is a quick and dirty way to do it(with one command for each mid/pre cast)
    Code:
    --add these to the top of your getsets() (interruption set default is off)
    midcast_interruption = false
    precast_interruption = false
    
    --new commands are "mid-interrup" = midcast interruption set, "pre-interrup" = precast interruption set
    
    function precast(spell)
        ...
        elseif spell.action_type == 'Magic' then
            if precast_interruption then
                equip(sets.midcast.interruption)
                return
            end
        ....
    end
    function midcast(spell)
        if spell.action_type == 'Magic' then
            if midcast_interruption then
                equip(sets.midcast.interruption)
                return
            end
            ....
    end
    function self_command(command)
        ...
        elseif command == 'mid-interrup' then
            midcast_interruption = not midcast_interruption
            send_command('@input /echo ----- Magic midcast interruption set to '..(midcast_interruption and "ON" or "OFF")..' -----')
        elseif command == 'pre-interrup' then
            precast_interruption = not precast_interruption
            send_command('@input /echo ----- Magic precast interruption set to '..(precast_interruption and "ON" or "OFF")..' -----')
        end
    end

  4. #5024
    Smells like Onions
    Join Date
    Jul 2014
    Posts
    7
    BG Level
    0

    Thank you. I am currently trying to farm a spell. But Ill check to see if it works when I get done. I appreciate the help!

  5. #5025
    Smells like Onions
    Join Date
    Jul 2014
    Posts
    7
    BG Level
    0

    alright, So I have been toying around with it. I have it where its semi-working. I get the Precast interruption is ON or OFF working in /echo. But //gs showswaps is not showing it change to my set. Any idea?

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

    its because the set name is sets.midcast.interrupt not sets.midcast.interruption my bad

  7. #5027
    Smells like Onions
    Join Date
    Jul 2014
    Posts
    7
    BG Level
    0

    even with the change to that, I cant find the right way to code the Pre-cast and Mid-cast. I dont know where to place it in those categories. I am sorry for the trouble lol. I have a feeling that there are different actions being done in the midcast and precast sections that overwrites the interruption. but I am not smart enough in LUA code to fix it myself.

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

    Quote Originally Posted by maxplayer View Post
    even with the change to that, I cant find the right way to code the Pre-cast and Mid-cast. I dont know where to place it in those categories. I am sorry for the trouble lol. I have a feeling that there are different actions being done in the midcast and precast sections that overwrites the interruption. but I am not smart enough in LUA code to fix it myself.
    the ... = first part of the code .... the rest of the code look at you original code and you will see where it goes
    example:
    Code:
     function midcast(spell)
         if spell.action_type == 'Magic' then
             equip(sets.midcast[spell.english])
             if spell.english:startswith('Cure') then
                 if spell.target.name == player.name then
                     equip(sets.midcast.selfcure)
                 else
                     equip(sets.midcast.cure)
                 end
             end
         end
     end
    with my code added in
    Code:
     function midcast(spell)
         if spell.action_type == 'Magic' then
             equip(sets.midcast[spell.english])
             if spell.english:startswith('Cure') then
                if midcast_interruption then
                    equip(sets.midcast.interruption)
                    return
                end
                 if spell.target.name == player.name then
                     equip(sets.midcast.selfcure)
                 else
                     equip(sets.midcast.cure)
                 end
             end
         end
     end

  9. #5029
    Hydra
    Join Date
    Jan 2008
    Posts
    113
    BG Level
    3

    Having an issue getting Marsyas to pre-equip when /honormarch typed. Tried the Impact type route but using Mote's v2 gearswap I am assuming it's not defined somewhere somehow.

    Also, how does one add these new spells into timers addon like Honor March?

    Tried doing the same kind of thing with Mote's impact rule but no dice.

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

    Quote Originally Posted by Reposado View Post
    Having an issue getting Marsyas to pre-equip when /honormarch typed. Tried the Impact type route but using Mote's v2 gearswap I am assuming it's not defined somewhere somehow.

    Also, how does one add these new spells into timers addon like Honor March?

    Tried doing the same kind of thing with Mote's impact rule but no dice.
    Try replacing helper_functions.lua with this:
    https://www.dropbox.com/s/vzum8rq9lv...tions.lua?dl=0

  11. #5031
    Hydra
    Join Date
    Jan 2008
    Posts
    113
    BG Level
    3

    Was that for the durations? Still showing up as 2:30 when it's lasting 3 minutes, not a huge deal, but I still cannot get gearswap to even cast honor march. Keeps throwing ghorn in precast. I don't know how to fix this. Mote made it for me when I finished Daur. Sigh..

  12. #5032
    RIDE ARMOR
    Join Date
    Dec 2015
    Posts
    11
    BG Level
    1

    Hello ! I'm using the command //gs validate to see if i have all gears the lua use in my inventory, but it doesn't check my wardrobe. Same problem with //gs validate inv.

    Is it possible to fix that problem. With wardrobe2 incoming, most of my stuff will be in wardrobe1+2 so it will be more difficult to use these commands.

    Thanks

  13. #5033
    Old Merits
    Join Date
    Jun 2007
    Posts
    1,038
    BG Level
    6
    FFXI Server
    Asura
    WoW Realm
    Emerald Dream

    When I hit F10 for my PDT gear, what do I press to swap out of it? Hitting it again or hitting the button for my offensive set doesn't seem to change me out of it?

  14. #5034
    E. Body
    Join Date
    May 2008
    Posts
    2,083
    BG Level
    7
    FFXI Server
    Siren

    Assuming it's a PDT lock, I'd have to actually see your lua to give you an answer. If it happens to be a Mote one, then I think that uses alt+F12.

  15. #5035
    Old Merits
    Join Date
    Jun 2007
    Posts
    1,038
    BG Level
    6
    FFXI Server
    Asura
    WoW Realm
    Emerald Dream

    Quote Originally Posted by Kyte View Post
    Assuming it's a PDT lock, I'd have to actually see your lua to give you an answer. If it happens to be a Mote one, then I think that uses alt+F12.
    That works,thank you

  16. #5036
    E. Body
    Join Date
    Sep 2008
    Posts
    2,055
    BG Level
    7

    Pretty much clueless when it comes to this stuff, got myself a BLM Lua off XIAH and running into some problems.

    Pastebin here: http://pastebin.com/jYQFBTRM

    1. It leaves me in my nuking gear after I'm done casting and doesn't go into an Idle set unless I rest
    2. The Magic Burst Toggle that came with the sheet isn't working. I added a Spaekona Coat +1 toggle in myself and that works fine though.
    3. As far as I can tell the Twilight Cape/Obi functions aren't working either.
    4. Wondering how to write a function to lock my back slot when I turn on the Capacity toggle.

    Those are the things I've noticed so far. Would appreciate any help.

  17. #5037
    Hydra
    Join Date
    Sep 2012
    Posts
    118
    BG Level
    3

    You've downloaded one of THE most complex files out there for gearswap. In order to really deal with your issue, you would also have to find and post all of the other "includes" lua files that accompany your file.

    1. your idle sets all start with nameofidleset = {main={sub = "subitem", etc.}}
    Try deleting "main={" and one of the "}" at the end and see if that fixes your idle problems.
    2. Don't see the logic that deals with setting the magic burst or the spaekona states
    3. Do you have Hachirin-no-Obi? There is a set sets.midcast.Bonus that is set to equip the Hachirin-no-Obi and Twilight Cape in the event that weather/day element matches the element of the spell. Found in the function job_midcast starting on line 387
    4. whereever the logic for the toggle is it would be similar to
    Code:
    if (state.Capacity.value) then
     equip({back="CapacityCape"})
     disable('back')
    else
     enable('back')
    end

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

    Quote Originally Posted by Shadowmeld View Post
    You've downloaded one of THE most complex files out there for gearswap. In order to really deal with your issue, you would also have to find and post all of the other "includes" lua files that accompany your file.
    no he is only using motes default include and organizer-lib both are part of gearswap's default install
    i can tell because there are only 2 lines with
    include(?????)
    one for Mote-Include.lua and one for organizer-lib

    if i knew more about motes include i would try to help
    but here is the best i can do
    1. you do not have any aftercast equips except for Mana Wall
    2. if you did not see it here it is (you cant have 2 functions named the same the later one will overwrite all the previous ones)
    Code:
    function job_post_midcast(spell, action, spellMap, eventArgs)
        if spell.skill == 'Elemental Magic' and state.MagicBurst.value then
            equip(sets.magic_burst)
        end
    end
    
    function job_post_midcast(spell, action, spellMap, eventArgs)
        if spell.skill == 'Elemental Magic' and state.Spaekona.value then
            equip({body="Spae. Coat +1"})
        end
    end
    3. as far as i can tell it should be working (you can verify by using the command "gs show_swaps")
    4. just as Shadowmeld said is a good way

  19. #5039
    Hydra
    Join Date
    Sep 2012
    Posts
    118
    BG Level
    3

    I would still say that anything using the Mote-Include.lua is probably one of the most complex luas out there, but I didn't know that his includes were part of the gearswap framework now. That is nice. I'll have to look them up when I get home and see if I can find out what his issue is with #2 then.

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

    Quote Originally Posted by Shadowmeld View Post
    I would still say that anything using the Mote-Include.lua is probably one of the most complex luas out there, but I didn't know that his includes were part of the gearswap framework now. That is nice. I'll have to look them up when I get home and see if I can find out what his issue is with #2 then.
    i know and mine is the most complex one that i have ever seen
    and #2 is in my post above

Page 252 of 302 FirstFirst ... 202 242 250 251 252 253 254 262 ... LastLast

Similar Threads

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