Item Search
     
BG-Wiki Search
Page 142 of 302 FirstFirst ... 92 132 140 141 142 143 144 152 192 ... LastLast
Results 2821 to 2840 of 6036

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

  1. #2821
    Nidhogg
    Join Date
    Jul 2008
    Posts
    3,746
    BG Level
    7
    FFXIV Character
    Seraphus Highwynn
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    I actually got it to work by doing:

    function pet_midcast(spell,action)
    if string.find(spell.english,'Healing Breath') then
    equip(sets.Pet['Restoring Breath'])
    end
    end
    Another question is how can I get mekira oto working? I tried going back 20-30 pages and found a script but it gives me errors. It was this:
    Code:
    function get_sets()
        mekira_days = T{}
        mekira_days.Stardiver = S{"Earthsday", "Lightsday", "Darksday"}
    
        headgear_if = T{true = "Mekira-Oto +1", false = "Otomi Helm"}
        ws_headgear = {name="Otomi Helm"}
    
        set.precast.WS = {head=ws_headgear}
    end
    
    
    function precast()
        if spell.type== 'WeaponSkill' then
            ws_headgear.name = headgear_if[mekira_days:contains(spell.english) and mekira_days[spell.english]:contains(world.day)]
    
            equip(set.precast.WS)
        end
    end
    I also tried copying Bokura's from his drk.lua but that didn't work either...

  2. #2822
    Sea Torques
    Join Date
    Jun 2012
    Posts
    570
    BG Level
    5
    FFXI Server
    Asura
    WoW Realm
    The Scryers

    Are you using a self created .lua?

    Either way I would do it different, something like

    Make your normal ws set w/ your normal head gear. Then I would add another code to precast or midcast
    Code:
    If spell.type == "weaponskill" and spell.element == world.day then
        equip( mekira head )
    End
    And would put that code after the precast/midcast for ws.

  3. #2823
    Nidhogg
    Join Date
    Jul 2008
    Posts
    3,746
    BG Level
    7
    FFXIV Character
    Seraphus Highwynn
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    I'm using someone else's as a template. I think for WS rules they have this:

    Code:
    function precast(spell,action)
            if spell.type == "WeaponSkill" then
                    
                            equipSet = sets.WS
                            if equipSet[spell.english] then
                                    equipSet = equipSet[spell.english]
                            end
                            if equipSet[AccArray[AccIndex]] then
                                    equipSet = equipSet[AccArray[AccIndex]]
                            end
                            if equipSet[AttArray[AttIndex]] then
                                    equipSet = equipSet[AttArray[AttIndex]]
                            end
                            if player.tp > 2999 or buffactive.Sekkanoki then -- Equip Kokou's Earring When You Have 300 TP or Sekkanoki --
                                    equipSet = set_combine(equipSet,{ear1="Flame Pearl"})
                            end
                            if spell.english == "Drakesbane" and string.find(spell.target.name,'Dynamis Lord') then -- Equip Phorcys Korazin When You Use Drakesbane On DL & ADL --
                                    equipSet = set_combine(equipSet,{body="Phorcys Korazin"})
                            end
                            equip(equipSet)
    Do I just paste your code under that?

  4. #2824
    Smells like Onions
    Join Date
    Aug 2014
    Posts
    8
    BG Level
    0

    Hi, I'm trying to modify the Skill up script that is linked in the first post of the Shop thread so that it can do Enfeebling magic, but this is my first foray into GearSwap and having an issue.

    I can get it so that I can start the cycle, repeat until I'm out of MP, rest to full, and stand back up, but after I get up it doesn't do anything. I have to manually start the cycle over again.

    Can anyone point me to where I'm going wrong?

    Thanks!

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

    thats because it was never designed to do any spells that require you to be attacking a mob this is so i can post it on the windower site

    if you want to skill up one of thoes skills use http://www.ffevo.net/files/file/153-gambot-v3-alpha/
    the only thing that does not work in the above is weapon skills because of the fact that the dev has not been around sence before the tp changed from 100 to 1000

  6. #2826
    Smells like Onions
    Join Date
    Aug 2014
    Posts
    8
    BG Level
    0

    I understand, but is that really the thing holding me back here? I have it working fine (initiate the cycle, cast until I'm out of mp, rest until full, then stand back up), but I just can't get it to restart the cycle after standing.

    I am not actively engaged with the mob (a Colo. Reive) while doing this, so my weapon isn't out. I feel like I'm just missing a piece of code to tell it to reinitialize the cycle, because everything else is working. But maybe I'm wrong..

    Thanks!

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

    Quote Originally Posted by dlsmd View Post
    you always put the check in precast

    [CUT]
    Tried to remove my "modified" version of your original code (thanks for the clarification btw, I understand the need of putting it into midcast now) and put this new version inside.
    But I still get the old error I used to get with the original one on this line:

    coroutine.schedule(function () casting = false end, (spell.cast_time/4+.5))

    Error is: "filename: linexxx: attempt to perform arithmetic on field 'cast_time' (a nil value)"
    I think this is because there's a line that you created that's not working, this one:

    if not windower.wc_match(spell.type, 'JobAbility|WeaponSkill') then

    It was a line to exclude the following line from being executed unless the spell.type was NOT a Jobability or Weaponskill.
    Well, for some reason it seems it's not working, and that's why I get the arithmetic error.
    How can I fix this line to make it correctly exclude JAs and WSs?




    EDIT:
    nevermind found a way to fix it.
    It wasn't working on Runes because their spell.type is "rune", not "JobAbility".
    I changed spell.type to spell.prefix and created the following line

    if spell.prefix ~= '/jobability' and spell.prefix ~= '/weaponskill' then

    now it seems to be working

  8. #2828
    Gave 5$ to bg and all I could think of was this lousy title.
    -____-

    Join Date
    Jul 2008
    Posts
    1,695
    BG Level
    6

    Straight to the point; I tried for like 20 mins but my brain just shuts off, refuses information. I had spellcast down, but this one just puts a giant "?" in my face.

    I'm looking for someone who would do them for me. I don't require anything fancy, but I can't even get the base down, so me doing it myself is just not happening. I need a file for BST - PLD and SAM, but since i'm asking for charity work, BST is most desired. (Yes, I did check for templates but no, i'm still stumped WHERE to input MY gear.)

    I'm sorry if doing this is usually frowned upon. If it is I can try to spare a few dollars to paypal you.

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

    Quote Originally Posted by Sechs View Post
    Tried to remove my "modified" version of your original code (thanks for the clarification btw, I understand the need of putting it into midcast now) and put this new version inside.
    But I still get the old error I used to get with the original one on this line:

    coroutine.schedule(function () casting = false end, (spell.cast_time/4+.5))

    Error is: "filename: linexxx: attempt to perform arithmetic on field 'cast_time' (a nil value)"
    I think this is because there's a line that you created that's not working, this one:

    if not windower.wc_match(spell.type, 'JobAbility|WeaponSkill') then

    It was a line to exclude the following line from being executed unless the spell.type was NOT a Jobability or Weaponskill.
    Well, for some reason it seems it's not working, and that's why I get the arithmetic error.
    How can I fix this line to make it correctly exclude JAs and WSs?




    EDIT:
    nevermind found a way to fix it.
    It wasn't working on Runes because their spell.type is "rune", not "JobAbility".
    I changed spell.type to spell.prefix and created the following line

    if spell.prefix ~= '/jobability' and spell.prefix ~= '/weaponskill' then

    now it seems to be working
    thats a simple fix
    Code:
    function precast(spell)
    	if casting or petcasting then
    		cancel_spell()
    		return
    	end
    	...
    end
    function midcast (spell))
    	casting = true
    	if spell.cast_time then
    		coroutine.schedule(function () casting = false end, (spell.cast_time/4+.5))
    	else
    		coroutine.schedule(function () casting = false end, 1)
    	end
    	...
    end
    function aftercast (spell)
    	...
    	casting = false
    end
    function pet_midcast(spell)
    	petcasting = true
    	if spell.cast_time then
    		coroutine.schedule(function () petcasting = false end, (spell.cast_time/4+.5))
    	else
    		coroutine.schedule(function () petcasting = false end, 1)
    	end
    	...
    end
    function pet_aftercast(spell)
    	...
    	petcasting = false
    end

  10. #2830
    Melee Summoner
    Join Date
    Jan 2008
    Posts
    31
    BG Level
    1

    I've just tried to upgrade my gearswap files, and I've hit a brick wall...

    I've followed the simple way outlined on https://github.com/Kinematics/GearSw...wiki/Upgrading , however now I'm finding that not all my gear is switching?

    For example, Fast Cast gear isn't being used, nor is elemental magic when I'm nukeing as SMN sub SCH. Here is my file within the data/username/gear folder
    http://pastebin.com/PfXbzLec

    Do I need to manually change the gear within the new .lua file I redownloaded and put into data/username now for this to work?
    Job file .lua file = http://pastebin.com/kmyMDLGW

    Sorry if I'm missing something really blatant...

    Edit* Sorry forgot to mention, I'm using Mote's job files
    Edit2* Also noticed that now I'm seeing "Magic command appears improperly formatted." when typing out the usual '/ma ss'. Tested it on a char that isn't using GS and it doesn't display that, so I don't think its spellcast.

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

    i have tried to use mots include setup but i was in the same boat as you so i started my own include setup

  12. #2832
    Nidhogg
    Join Date
    Jul 2008
    Posts
    3,746
    BG Level
    7
    FFXIV Character
    Seraphus Highwynn
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    This is a minor annoyance but whenever I use an enchanted item like Vocation Ring or Warp Cudgel I get this error in red all over my screen:

    Code:
     Gearswap has detected an error in the user function aftercast. Line 615: attempt to call method 'starts with' (a nil value)
    This is the only time I ever see this error, when I'm using a charged item.
    my lines 614 and 615 are this:
    Code:
    614:  function aftercast(spell,action)
    615:       if not spell.type:startswith('PetCommand') then
    616:                status_change(player.status)
    And the purpose of the above code is to prevent GS from aftercasting into TP gear when I activate a pet command like Restoring Breath.

  13. #2833
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by Astaro View Post
    I've just tried to upgrade my gearswap files, and I've hit a brick wall...

    I've followed the simple way outlined on https://github.com/Kinematics/GearSw...wiki/Upgrading , however now I'm finding that not all my gear is switching?

    For example, Fast Cast gear isn't being used, nor is elemental magic when I'm nukeing as SMN sub SCH. Here is my file within the data/username/gear folder
    http://pastebin.com/PfXbzLec

    Do I need to manually change the gear within the new .lua file I redownloaded and put into data/username now for this to work?
    Job file .lua file = http://pastebin.com/kmyMDLGW

    Sorry if I'm missing something really blatant...

    Edit* Sorry forgot to mention, I'm using Mote's job files
    You should not need to change anything in the newly downloaded file in data/username. All of your own gear should remain in data/username/gear.

    Turn on debug mode (//gs debugmode). Try to cast a spell. It will print out which gear sets it's attempting to equip by default. Make sure those are the gear sets you'd expect it to use (eg: sets.precast.FC), and that those gear sets have been defined.

    After checking that, turn on showswaps as well (//gs showswaps), then trigger a simple spell cast process (eg: //stone) without targeting anything. check what gear is and is not equipped (showswaps shows what is, debugmode shows what was not), and compare it with expected gear.


    Quote Originally Posted by Astaro View Post
    Edit2* Also noticed that now I'm seeing "Magic command appears improperly formatted." when typing out the usual '/ma ss'. Tested it on a char that isn't using GS and it doesn't display that, so I don't think its spellcast.
    Check to make sure Shortcuts is loaded? 'ss' isn't a valid spell name, so it would only work if you're using Shortcuts' aliases, or you bound an alias to that explicitly in your Windower setup.

  14. #2834
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by Ophannus View Post
    This is a minor annoyance but whenever I use an enchanted item like Vocation Ring or Warp Cudgel I get this error in red all over my screen:

    Code:
     Gearswap has detected an error in the user function aftercast. Line 615: attempt to call method 'starts with' (a nil value)
    This is the only time I ever see this error, when I'm using a charged item.
    my lines 614 and 615 are this:
    Code:
    614:  function aftercast(spell,action)
    615:       if not spell.type:startswith('PetCommand') then
    616:                status_change(player.status)
    And the purpose of the above code is to prevent GS from aftercasting into TP gear when I activate a pet command like Restoring Breath.
    :startswith() is a class function for strings. If spell.type is nil, spell.type:startswith() isn't a valid function call. For this to work correctly, you'd instead use
    Code:
    if spell.type and not spell.type:startswith('PetCommand') then
    Though I'd then note that checking for "starts with" 'PetCommand' is a nonsensical approach. There's no such thing as a spell type "PetCommandXXXX". It either -is- 'PetCommand' or it is not. Thus the proper test should be

    Code:
    if spell.type == 'PetCommand' then
    Note that in this case we don't have to check for the existence of spell.type; if spell.type is nil, then the comparison evaluates to false, as expected.

  15. #2835
    Nidhogg
    Join Date
    Jul 2008
    Posts
    3,746
    BG Level
    7
    FFXIV Character
    Seraphus Highwynn
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Code:
    if spell.type == 'PetCommand' then
    What's the inverse of this? I need to stick a 'not' in there I think. Because whether my code is sloppy code or not, the code I had, for some reason works, in that it allows aftercast for all actions except pet commands. When I have that code, when I use Restoring Breath, I will switch to Pet_Midcast gear until PetAftercast, which then I switch to regular aftercast. That is what I want.

    When I use your code, it doesn't do that because I think it's doing the opposite.
    Code:
    function aftercast(spell,action)
     if not spell.type:startswith('PetCommand') then
    status_change(player.status)
    I think your code is telling GS that if the spell=Petcommand, then to swap; the idea is if it's a petcommand, i don't want it to swap.
    Code:
    if spell.type == 'PetCommand' then
    for some reason the sloppy code I posted works but gives me that error when I use items >.<

  16. #2836
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    What's the inverse of this?
    Woops.

    Code:
    if spell.type ~= 'PetCommand' then

  17. #2837
    Nidhogg
    Join Date
    Jul 2008
    Posts
    3,746
    BG Level
    7
    FFXIV Character
    Seraphus Highwynn
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    -edit-

    Thanks, awesome!

  18. #2838
    Blue Magic is Best Magic
    Join Date
    Jul 2007
    Posts
    8,215
    BG Level
    8

    Quote Originally Posted by Byrthnoth View Post
    Yeah, I have to explicitly add new UL spells. I'll put it on -dev now, but I'll need to make sure that my version of gearswap is actually functional and synced before I push it live.
    Any update to this? or is there a way we can manually add them ourselves?

  19. #2839
    Nidhogg
    Join Date
    Jul 2008
    Posts
    3,746
    BG Level
    7
    FFXIV Character
    Seraphus Highwynn
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Last question for now Mote:

    I have this as you said:

    Code:
    function aftercast(spell,action)
        if spell.type ~= 'PetCommand' then
    but I'm still learning GS and the correct syntax, if I wanted to add another term to that line, do i just add an 'or'?

    like would this work:
    Code:
    function aftercast(spell,action)
        if spell.type ~= 'PetCommand' or if spell.type ~= 'HealingBreath' then
    Reason is PetCommand applies to Restoring or Smiting Breath, but when I cast a spell to activate Healing Breath it will swap like 4x for Precast/aftercast/petmidcast/petaftercast and during the midst of all that, Wyvern HP gear goes on and off and the potency gets all screwed up. So I was wondering if I stick Healing Breath into that code in addition to Pet Command if it will work just as well as it does for pet command breaths(which currently works flawlessly with the code you gave me.) =D

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

    Quote Originally Posted by Ophannus View Post
    Last question for now Mote:

    I have this as you said:

    Code:
    function aftercast(spell,action)
        if spell.type ~= 'PetCommand' then
    but I'm still learning GS and the correct syntax, if I wanted to add another term to that line, do i just add an 'or'?

    like would this work:
    Code:
    function aftercast(spell,action)
        if spell.type ~= 'PetCommand' or if spell.type ~= 'HealingBreath' then
    Reason is PetCommand applies to Restoring or Smiting Breath, but when I cast a spell to activate Healing Breath it will swap like 4x for Precast/aftercast/petmidcast/petaftercast and during the midst of all that, Wyvern HP gear goes on and off and the potency gets all screwed up. So I was wondering if I stick Healing Breath into that code in addition to Pet Command if it will work just as well as it does for pet command breaths(which currently works flawlessly with the code you gave me.) =D
    HealingBreath is not a skill type

    here are all the spell.type
    JobAbility
    PetCommand
    CorsairRoll
    Samba
    Waltz
    Jig
    Step
    Flourish1
    Flourish2
    Flourish3
    Scholar
    Effusion
    Rune
    Ward
    CorsairShot
    BloodPactWard
    BloodPactRage
    Monster
    WeaponSkill
    MonsterSkill
    WhiteMagic
    BlackMagic
    SummonerPact
    Ninjutsu
    BardSong
    Geomancy
    BlueMagic
    Trust

    and spell.skill
    Hand-to-Hand
    Dagger
    Sword
    Great Sword
    Axe
    Great Axe
    Scythe
    Polearm
    Katana
    Great Katana
    Club
    Staff
    Archery
    Marksmanship
    Throwing
    Divine Magic
    Healing Magic
    Enhancing Magic
    Enfeebling Magic
    Elemental Magic
    Dark Magic
    Summoning Magic
    Ninjutsu
    Singing
    Blue Magic

    and spell.action_type
    Ability
    Magic

Page 142 of 302 FirstFirst ... 92 132 140 141 142 143 144 152 192 ... LastLast

Similar Threads

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