Item Search
     
BG-Wiki Search
Page 111 of 302 FirstFirst ... 61 101 109 110 111 112 113 121 161 ... LastLast
Results 2201 to 2220 of 6036

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

  1. #2201
    RIDE ARMOR
    Join Date
    Jan 2010
    Posts
    24
    BG Level
    1
    FFXI Server
    Leviathan

    Meh that has always happened to me since i started using that utility Falkirk, it always works fine so I just don't worry about it.

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

    refine_waltz() got moved to the global user_precast function. You don't need to define it in your job_precast anymore.

  3. #2203
    New Spam Forum
    Join Date
    Dec 2009
    Posts
    158
    BG Level
    3
    FFXI Server
    Quetzalcoatl

    Ok, thanks! :D

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

    Quote Originally Posted by wigmasterflex
    Is this some how causing my BLM issue? Basically my BLM is casting in sets.midcast.FastRecast no matter what spell I use so my damage is absolutely garbage, however my SCH works perfectly fine so that should mean this code isn't the culprit? I don't know. This also happened (or I noticed cause I don't BLM much) randomly like 2 weeks ago too.
    Not likely the blm problem, though it sort of relates. Basically, all jobs now get that set up as the default base set for all magic spells. However that's set before either the job_precast or default precast handling functions are called, so if your blm file is doing custom work it will overwrite the FastRecast, and regardless, the default set selection will also overwrite the FastRecast set.

    It's almost certainly an issue with custom spell mapping not matching your set definitions. I did make a recent change to blm to define custom spell maps rather than custom classes, since that handles various issues better. Have you updated the blm file recently?

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

    @wigmasterflex:

    I built in some extra debug tracing code into the main include. Get Mote-Include and Mote-SelfCommands (the latter because it uses a changed variable in Mote-Include) from my Mote-Libs repository, to replace the default versions in GearSwap/libs, and turn on debugmode (//gs debugmode).

    Each time you take an action that would have the include construct a default gear set for you, it will display what gear set was actually selected. Hopefully that will help track down issues where the gear set selected isn't matching what you think it -ought- to be equipping.

    Note that there may be bugs in this rewrite since I had to adjust the set selection code a little in order to record what it was doing. Keep copies of the original Include/SelfCommands as backup. If you encounter any problems, let me know. Meanwhile, it will likely be pushed to dev in the next day or two.

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

    World's most beloved disciple needs help from his teachers again! <3
    Finished my SMN LUA, I'm gonna test it tonight but for now I wanted to check a couple of things which I've been doing for the first time here
    I've cut lot of parts from the LUA to keep only the lines I wanted you guys to check

    Spoiler: show
    Code:
    function get_sets()
    	spell_maps = {
    		['Poison Nails']='physical', ['Moonlit Charge']='physical', ...
    		['Meteorite']='magicTP', ['Holy Mist']='magicTP', ...
    		['Searing Light']='magicnoTP', ['Howling Moon']='magicnoTP', ...
    		['Lunar Cry']='debuff', ['Lunar Roar']='debuff', ...
    		['Shining Ruby']='skill', ['Glittering Ruby']='skill', ...
    		['Healing Ruby']='healing', ['Healing Ruby II']='healing', ...}
    
    ...
    
    	sets.midcast.bp.physical = {}
    	sets.midcast.bp.magicTP = {}
    	sets.midcast.bp.magicnoTP = set_combine(sets.midcast.bp.magicTP, {})
    	sets.midcast.bp.skill = {}
    	sets.midcast.bp.debuff = set_combine(sets.midcast.bp.skill, {})
    	sets.midcast.bp.healing = {]
    
    ...
    
    function pet_midcast(spell)
    	spell_map = spell_maps[spell.english]
    	if sets.midcast.bp[spell_map] then
    		equip(sets.midcast.bp[spell_map])
    	end
    end
    
    function aftercast(spell,action)
    	if pet.isvalid then
    		equip(sets.idle.avatar)
    	else
    		equip(sets.idle)
    	end
    end
    
    function pet_aftercast(spell,action)
    	if pet.isvalid then
    		equip(sets.idle.avatar)
    	else
    		equip(sets.idle)
    	end
    end
    
    function buff_change(name, gain)
    	if pet.isvalid and name == 'Sleep' then
    		if gain then
    			equip({neck='Sacrifice Torque'})
    		else
    			equip({neck="Caller's Pendant"})
    		end
    	end
    end
    
    function pet_change(pet, gain)
    	if gain then
    		equip(sets.idle.avatar)
    	else
    		equip(sets.idle)
    	end
    end



    My questions:
    1. Is pet_midcast gonna work? Since it's inside that specific function it should take as input the PET's ongoing ability/spell, and check that into the spell mapping I created and then equipping the related midcast set on master according to the predefined category that spell/action falls into. Correct?
    2. Pet_aftercast is kinda the same as Aftercast. That means useless redundancy. Is there any way I can call the function "Aftercast" from within the pet_aftercast one? That way I would save a few lines of redundant code.
    3. Do you think the buff_change thing is gonna work? (I don't even have a Sacri torque atm, hard to find one on AH =/)
    4. Did I use the pet_change function correctly?


    Another last question now. Since I have a mild form of colour-blindness, I usually have to check the gameday from the ingame command to know which Spirit to summon when I want to use Elemental Siphon.
    I remember in my old Spellcast (which I haven't been using for ages... I think like the whole last year I've been using Windower scripts on SMN) there was a custom smart function that whenever called was summoning the correct spirit according to day/weather.
    I really have no clue how I could possibly do this in GS.
    Anybody mind posting the necessary code and, hopefully, add some explanations too so I can understand how it works?

  7. #2207
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    I am not smart enuf to figure out the gearswap way but here is the spellcast code for the elemental siphon code if it helps anyone come up with the gearswap version. I basically took someone elses spellcast and altered to fit my needs, I didnt write any of this.

    Code:
    <variables clear = "yes">
            <!--Set this to True before casting a spirit will check for best Spirit to Elemental Siphon-->
            <var name = "ES">1</var>
            <!--Variables for Elemental Spirit Names used for changespells for Elemental Siphon-->
            <var name = "Light">Light</var>
            <var name = "Dark">Dark</var>
            <var name = "Fire">Fire</var>
            <var name = "Earth">Earth</var>
            <var name = "Wind">Air</var>
            <var name = "Water">Water</var>
            <var name = "Ice">Ice</var>
            <var name = "Thunder">Thunder</var>
    	</variables>
    
    <!--checks if your using an Elemental Siphon macro-->
                <if Spell = "*Spirit" advanced = '"$ES"="1"'>
                    <if advanced = '"%Weather"="%WeatherElement x2"'>
                        <action type = "ChangeSpell" Spell = "$%WeatherElement Spirit"/>
                    </if>
                    <else>
                        <action type = "ChangeSpell" Spell = "$%DayElement Spirit"/>
                    </else>
                    <action Type = "Command" when = "aftercast">wait 1.5; input /ja "Elemental Siphon" &lt;me&gt;</action>
                </if>
    
    <!--Equips Smn Skill gear to maximise mp gained -->
            <if spell = "Elemental Siphon">
                <action type = "equip" when = "Precast" set = "Siphon"/>
                <action type = "command" When = "Aftercast">wait 1.5; input /pet release &lt;me&gt;</action>
            </if>
    Also in this spell cast they had things like this code to set up aliases i guess for each avatar when summoned (and when released to reset those aliases) so you could make one macro bar with 7 macros using the aliases to do different pacts depending on the avatar used. How would one go about this in gearswap?

    Code:
    <if Spell = "Carbuncle">
    				<action type = "equip" when = "PreCast" set = "Fastcast"/>				
                    <action type = "Command">alias Pact input /pet "Meteorite" &lt;lastst&gt;</action>
    				<action type = "Command">alias Nuke input /pet "Holy Mist" &lt;lastst&gt;</action>
                    <action type = "Command">alias Buff input /pet "Soothing Ruby" &lt;me&gt;;input /echo Party Erase</action>
                    <action type = "Command">alias Debuff input /pet "Poison Nails" &lt;lastst&gt;</action>
    				<action type = "Command">alias Heal input /pet "Healing Ruby II" &lt;me&gt;;input /echo Party Healing</action>
    				
    				<action type = "Command">alias VWProc input /pet "Holy Mist" &lt;t&gt;</action>
                    <action type = "Command">alias atkPact /;</action>
                </if>
    
    <if Spell = "Release">
                <action Type = "Var" cmd = "set Avatar Standard"/>
                <action type = "Command">alias Pact /;</action>
    			<action type = "Command">alias Nuke /;</action>
    			<action type = "Command">alias Buff /;</action>
    			<action type = "Command">alias Debuff /;</action>
    			<action type = "Command">alias Heal /;</action>
    			<action type = "Command">alias VWProc /;</action>
                <action type = "Command">alias atkPact /;</action>
            </if>

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

    Quote Originally Posted by Trumpy View Post
    I am not smart enuf to figure out the gearswap way but here is the spellcast code for the elemental siphon code if it helps anyone come up with the gearswap version. I basically took someone elses spellcast and altered to fit my needs, I didnt write any of this.

    Code:
    <variables clear = "yes">
            <!--Set this to True before casting a spirit will check for best Spirit to Elemental Siphon-->
            <var name = "ES">1</var>
            <!--Variables for Elemental Spirit Names used for changespells for Elemental Siphon-->
            <var name = "Light">Light</var>
            <var name = "Dark">Dark</var>
            <var name = "Fire">Fire</var>
            <var name = "Earth">Earth</var>
            <var name = "Wind">Air</var>
            <var name = "Water">Water</var>
            <var name = "Ice">Ice</var>
            <var name = "Thunder">Thunder</var>
    	</variables>
    
    <!--checks if your using an Elemental Siphon macro-->
                <if Spell = "*Spirit" advanced = '"$ES"="1"'>
                    <if advanced = '"%Weather"="%WeatherElement x2"'>
                        <action type = "ChangeSpell" Spell = "$%WeatherElement Spirit"/>
                    </if>
                    <else>
                        <action type = "ChangeSpell" Spell = "$%DayElement Spirit"/>
                    </else>
                    <action Type = "Command" when = "aftercast">wait 1.5; input /ja "Elemental Siphon" &lt;me&gt;</action>
                </if>
    
    <!--Equips Smn Skill gear to maximise mp gained -->
            <if spell = "Elemental Siphon">
                <action type = "equip" when = "Precast" set = "Siphon"/>
                <action type = "command" When = "Aftercast">wait 1.5; input /pet release &lt;me&gt;</action>
            </if>
    Also in this spell cast they had things like this code to set up aliases i guess for each avatar when summoned (and when released to reset those aliases) so you could make one macro bar with 7 macros using the aliases to do different pacts depending on the avatar used. How would one go about this in gearswap?

    Code:
    <if Spell = "Carbuncle">
    				<action type = "equip" when = "PreCast" set = "Fastcast"/>				
                    <action type = "Command">alias Pact input /pet "Meteorite" &lt;lastst&gt;</action>
    				<action type = "Command">alias Nuke input /pet "Holy Mist" &lt;lastst&gt;</action>
                    <action type = "Command">alias Buff input /pet "Soothing Ruby" &lt;me&gt;;input /echo Party Erase</action>
                    <action type = "Command">alias Debuff input /pet "Poison Nails" &lt;lastst&gt;</action>
    				<action type = "Command">alias Heal input /pet "Healing Ruby II" &lt;me&gt;;input /echo Party Healing</action>
    				
    				<action type = "Command">alias VWProc input /pet "Holy Mist" &lt;t&gt;</action>
                    <action type = "Command">alias atkPact /;</action>
                </if>
    
    <if Spell = "Release">
                <action Type = "Var" cmd = "set Avatar Standard"/>
                <action type = "Command">alias Pact /;</action>
    			<action type = "Command">alias Nuke /;</action>
    			<action type = "Command">alias Buff /;</action>
    			<action type = "Command">alias Debuff /;</action>
    			<action type = "Command">alias Heal /;</action>
    			<action type = "Command">alias VWProc /;</action>
                <action type = "Command">alias atkPact /;</action>
            </if>
    A simple way to do both of them, use GS Self_commands, (from a macro /console gs c >>Command<<)
    1. something like if command == "Siphon" then.... Summon the Elemental corresponding to the day you are, then use Siphon, not sure if GS can check if they are 2x Weather up, but if can, then check first if 2x Weather are up, then summon that elemental if not, summon elemental corresponding the "dayelement"

    2. Instead making alias(thing you could do everytime you summon a avatar), make a selfcommand something like
    if command == Nuke then, check the avatar you have summoned then use the preset Nuke Spell for him.

    ATM writing this from the phone... so cant give you better examples. but they are many ways to do this.

  9. #2209
    RIDE ARMOR
    Join Date
    Jan 2010
    Posts
    24
    BG Level
    1
    FFXI Server
    Leviathan

    Quote Originally Posted by Motenten View Post
    @wigmasterflex:

    I built in some extra debug tracing code into the main include. Get Mote-Include and Mote-SelfCommands (the latter because it uses a changed variable in Mote-Include) from my Mote-Libs repository, to replace the default versions in GearSwap/libs, and turn on debugmode (//gs debugmode).

    Each time you take an action that would have the include construct a default gear set for you, it will display what gear set was actually selected. Hopefully that will help track down issues where the gear set selected isn't matching what you think it -ought- to be equipping.

    Note that there may be bugs in this rewrite since I had to adjust the set selection code a little in order to record what it was doing. Keep copies of the original Include/SelfCommands as backup. If you encounter any problems, let me know. Meanwhile, it will likely be pushed to dev in the next day or two.
    Ok first of all, that debug mode is awesome, and so far i have zero errors/bugs that I've noticed by the way, I'll be on all day and see if anything weird comes up. This is a hundred times more useful than show swaps where I have to guess what set is being equipped by a frustrating and inaccurate process of elimination.

    Secondly a naming error definitely makes sense and was definitely my issue! I should have seen that but clearly I was not worthy, either way BLM fixed! I can't thank you enough, where is your donate button @.@

  10. #2210
    Old Merits
    Join Date
    Jun 2008
    Posts
    1,192
    BG Level
    6
    FFXI Server
    Odin

    I can test later if needed, but thinking about it now and not on ffxi pc.
    Say I have this
    sets.precast.WS['Exenterator'] = set_combine(sets.precast.WS, {ring1="Stormsoul Ring",legs="Nahtirah Trousers"})
    The sets.precast.WS legs are set to Manibozho

    If I don't own Nahtirah Trousers, will the Manibozho be set? I imagine not or 2 sets would need to be sent out and I doubt that's how it works
    Just wanted some confirmation while updating a new gearswap. I usually comment out everything I don't own, but if that is unnecessary then I would like to stop that

    My guess is that leaving as is, I would just WS in my TP legs

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

    If I don't own Nahtirah Trousers, will the Manibozho be set?
    It sends out exactly what you tell it to send out, as long as it can find the item you specified.

    The set construction cares not one whit whether you own the item, or if the item even exists; it's just defining a string. If you put legs="Your uncle is a ham sandwich", that's what will be in that field.

    When it actually sends the equip command out, it checks to see whether it can find the item specified in your inventory. If it can't (or if it's already being worn), then nothing is sent at all. In that case, yes, if you don't own Nahtirah Trousers (or had left them in your mog sack or whatever), then it won't attempt to equip anything in particular in your leg slot, and you'll just keep on whatever you had on for TPing. Note, however, that it will -not- fall back to whatever legs were defined in sets.precast.WS; those were overwritten when you did the call to set_combine.

  12. #2212
    Old Merits
    Join Date
    Jun 2008
    Posts
    1,192
    BG Level
    6
    FFXI Server
    Odin

    Cool, thanks!

  13. #2213
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    What would be the most efficient way for Gearswap to equip item1 OR item2 in the same slot?
    Let's suppose a strange situation
    I have a WS for which I want to build two similar sets, with slight differences in a few slots.
    Why? Because I may forget to put into inventory a couple of items listed in the main set. Normally in such a situation Gearswap would simply do nothing and whatever was already equipped in those slots would stay there for a WS.
    Instead if I were able to set up an "alternative" gearswap would use that in case that he can't find those few items in the "main" defined set for that WS.

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

    I use that logic for selecting gorgets/belts/obis in my includes. Check the Elemental gear utility functions in Mote-Utility (though they're a bit more complex since they do other stuff as well).

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

    Also, forgot I was writing an answer to this last night:

    Quote Originally Posted by Sechs
    Is pet_midcast gonna work?
    You need to check for the condition where a value isn't found in the lookup table. So:

    Code:
        if spell_map and sets.midcast.bp[spell_map] then
    Quote Originally Posted by Sechs
    Pet_aftercast is kinda the same as Aftercast. That means useless redundancy. Is there any way I can call the function "Aftercast" from within the pet_aftercast one? That way I would save a few lines of redundant code.
    You actually want to make a small change there -- Don't equip aftercast gear if you just started a bloodpact. However, aside from that, yes, you can refactor that bit of code out.

    Code:
    function aftercast(spell,action)
        if not pet_midaction() then
            equip_idle()
        end
    end
    
    function pet_aftercast(spell,action)
        equip_idle()
    end
    
    function equip_idle()
        if pet.isvalid then
            equip(sets.idle.avatar)
        else
            equip(sets.idle)
        end
    end
    Quote Originally Posted by Sechs
    Do you think the buff_change thing is gonna work? (I don't even have a Sacri torque atm, hard to find one on AH =/)
    Sort of, yes. I'd argue that you want to check for pet.isvalid on the same line as the check for gain, not the check for "Sleep", but otherwise it looks fine.

    Quote Originally Posted by Sechs
    Did I use the pet_change function correctly?
    Yes.

    Quote Originally Posted by Sechs
    I remember in my old Spellcast (which I haven't been using for ages... I think like the whole last year I've been using Windower scripts on SMN) there was a custom smart function that whenever called was summoning the correct spirit according to day/weather.
    I really have no clue how I could possibly do this in GS.
    Anybody mind posting the necessary code and, hopefully, add some explanations too so I can understand how it works?
    My smn lua has a whole complicated function for handling all things siphon-y (the handle_siphoning() function). You can look at that if you want ideas. You could even copy the entire function, since it's entirely self-contained. Just call it based on a self-command.

  16. #2216
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    Tnx a lot Mote, will do some research and follow your instructions

  17. #2217
    New Merits
    Join Date
    Sep 2010
    Posts
    223
    BG Level
    4
    FFXI Server
    Ifrit

    I need some help with obis. I'm using Bokura's Gearswap and I realized that obi isn't equipping for area weather effects or sch storm weather effects.

    http://pastebin.com/uh1Lbg5q

    I'd really appreciate the help.

  18. #2218
    RIDE ARMOR
    Join Date
    Mar 2014
    Posts
    18
    BG Level
    1

    Quote Originally Posted by JSHidaka View Post
    Using same idea, made an "AutoBoost" for MNK
    Code:
    function get_sets()	
    BoostdWS = S{"Final Heaven","Victory Smite","Shijin Spiral","Asuran Fists"}
    autoboost = 1	-- on by default
    autoboostnext = 0
    end
    
    -------------------------------------------------------
    
    function precast(spell,action)
    --Auto Boost on Certain WS
    	if BoostdWS:contains(spell.name) and windower.ffxi.get_ability_recasts()[16] < 1 and not buffactive.amnesia and spell.target.distance < 4.5 and player.tp > 99 and autoboost == 1 and  autoboostnext == 0 then
    		cancel_spell()
    		autoboostnext = 1
                    abws = spell.name
    		send_command('input /ja "Boost" <me>;')
    		return
    	end
    end
    
    -------------------------------------------------------
    
    function buff_change(status,gain_or_loss)
    
        if status == "Boost" and autoboostnext == 1 then
    		if gain_or_loss then
    			send_command('input /ws "'..abws..'" <t>;')
    		else
    			autoboostnext = 0
    		end
        end
    end
    
    -------------------------------------------------------
    function self_command(command)
    if command == 'AutoBoost' then
    			if autoboost == 1 then
    				autoboost = 0
    				add_to_chat(100, 'Auto Boost Before WS = OFF')
    			else
    				autoboost = 1
    				add_to_chat(100, 'Auto Boost Before WS = ON')
    			end
    end
    this will be easy to test, since normally in Salvage I have some kind of lag -_-
    I am trying to combine JSHidaka's Autoboost code into my file: pastebin.com/r9pHpQj6 with no results so far.
    Any suggestions on how i can make this merging?

    I could just use his file as a model to substitute my gear, but it is too much complex of settings and variations, and i'm afraid of messing up with the file in my attempt to simplify.

    Thanks

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

    Quote Originally Posted by vtenorio View Post
    I am trying to combine JSHidaka's Autoboost code into my file: pastebin.com/r9pHpQj6 with no results so far.
    Any suggestions on how i can make this merging?

    I could just use his file as a model to substitute my gear, but it is too much complex of settings and variations, and i'm afraid of messing up with the file in my attempt to simplify.

    Thanks
    Old Post lol... I did went back to the "old" autoboost, coz devs were working with buff_change thing and broke my code one day...(even that it works now)

    http://pastebin.com/VWDAVh8n

    It will autoboost for Final Heaven, Victory Smite, SS, Asuran, Raging, Howling Fists if want to add anyother edit line 4.
    to turn off Autoboost if want for some reason //gs(/console gs) c AutoBoost. ~ its on by default
    It will not autoboost during hundred fists

  20. #2220
    i should really shut up
    You can safely ignore me I am a troll

    Join Date
    Sep 2011
    Posts
    6,827
    BG Level
    8
    FFXI Server
    Asura

    Gearswap noob. Trying to work on the COR one. Figured out the basic Melee needed to be added to the TP set and things that were previously mentioned on my own.

    However, I know it is right in front of my, but I can't figure out why when I take out my weapons on COR and even melee it won't put me in my TP gear. I just stay in idle until I roll or shoot.

    Spoiler: show
    Code:
    --Aftercast Rules--
    		function aftercast(spell)
    			
    			if player.status == 'Engaged' then
    				equip(sets.MeleeTP[sets.MeleeTP.index[MeleeTP_ind]])
    					else
    						equip(sets.Idle[sets.Idle.index[Idle_ind]])
    			end
    		end

Page 111 of 302 FirstFirst ... 61 101 109 110 111 112 113 121 161 ... LastLast

Similar Threads

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