Item Search
     
BG-Wiki Search
Page 41 of 302 FirstFirst ... 31 39 40 41 42 43 51 91 ... LastLast
Results 801 to 820 of 6036

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

  1. #801
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    I have a short question for something I didnt manage to properly convert form spellcast over to my gearswap lua on:

    I have a var in spellcast that I can toogle off/on with a triggerspell. It makes it so I equip instead of my full hagondes set, I equip seidr cotehardie when I want to conserve MP on low tier nukes.

    Code:
     
    <if Spell="Foot Kick">
    			<if advanced='"$Nukeing"="Accuracy"'>
    				<var cmd="set Nukeing Damage" />
    				<command when="precast">input /echo Magic Damage + Mode </command>
    			</if>
    			<else>
    				<var cmd="set Nukeing Accuracy" />
    				<command when="precast">input /echo Magic Conserve Mode </command>
    			</else>
    		</if>
    
    		<if Spell="Fire|Blizzard|Aero|Stone|Thunder|Water|Fire II|Blizzard II|Aero II|Stone II|Thunder II|Water II|Firaga*|Blizzaga*|Thundaga*|Stonega*|Aeroga*|Waterga*|*ja|Fira*|Blizzara*|Aerora*|Stonera*|Thundara*|Watera*">
    			<if advanced='"$Nukeing"="Accuracy"'>
    				<equip when="precast" set="Nuke">
    						<main>$Staff-Dmg-%SpellElement</main>
    						<sub>Zuuxowu grip</sub>
    				</equip>
    			</if>
    			<else>
    				<equip when="precast" set="Nuke2">
    						<main>$Staff-Dmg-%SpellElement</main>
    						<sub>Zuuxowu grip</sub>
    				</equip>
    			</else>
    			<if mode="OR" element="%DayElement" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
    					<equip when="midcast">
    						<back>Twilight cape</back>
    					</equip>
    						<if advanced='"$Obi-%spellElement"!="0"'>
    							<equip when="midcast">
    								<waist>$Obi-%spellElement</waist>
    							</equip>
    						</if>
    			</if>
    		</if>
    how would I go about converting something like this into lua?

    I have a feeling since gearswaps works wiht packets of spells actualyl going off, trigger spells are not possible. So the idea would probably be to splitt up the nukeing set into 2 parts, one with only body and one with the rest, and then I just send a command line in that changes the body set into what I desire?

  2. #802
    Sea Torques
    Join Date
    Jul 2010
    Posts
    516
    BG Level
    5
    FFXI Server
    Bahamut

    Quick note for Byrthnoth: I don't think spell.action_type is in the spreadsheet of variables. Was it forgotten?

    To handle spellcast's trigger spell functionality, you use the self_command() function in GearSwap. You call the function from the game by using //gs c <command_name>. (for example, //gs c Toggle Magic Mode)

    How you implement the function is up to you. Here's an example of something that might work (pretty much pulled straight from Byrthnoth's DNC file):
    Code:
    magic_mode = {"High Damage", "Magic Accuracy", "Conserve MP"}
    magic_index = 1
    
    function self_command(command)
    
    	if command == 'Toggle Magic Mode' then
    		magic_index = magic_index + 1
    		if magic_index > #magic_index then magic_index = 1 end
    		equip(sets.midcast[magic_mode[magic_index]])
    		windower.add_to_chat(8,'Switched mode to ' .. magic_mode[magic_index])
    	end
    end
    Your sets would need to be named sets.midcast['Magic Accuracy'], etc.
    That's only one example, though. You can write the function in any number of ways.

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

    Quote Originally Posted by Damane View Post
    I have a short question for something I didnt manage to properly convert form spellcast over to my gearswap lua on:

    I have a var in spellcast that I can toogle off/on with a triggerspell. It makes it so I equip instead of my full hagondes set, I equip seidr cotehardie when I want to conserve MP on low tier nukes.

    Code:
     
    <if Spell="Foot Kick">
    <if advanced='"$Nukeing"="Accuracy"'>
    <var cmd="set Nukeing Damage" />
    <command when="precast">input /echo Magic Damage + Mode </command>
    </if>
    <else>
    <var cmd="set Nukeing Accuracy" />
    <command when="precast">input /echo Magic Conserve Mode </command>
    </else>
    </if>
    
    <if Spell="Fire|Blizzard|Aero|Stone|Thunder|Water|Fire II|Blizzard II|Aero II|Stone II|Thunder II|Water II|Firaga*|Blizzaga*|Thundaga*|Stonega*|Aeroga*|Waterga*|*ja|Fira*|Blizzara*|Aerora*|Stonera*|Thundara*|Watera*">
    <if advanced='"$Nukeing"="Accuracy"'>
    <equip when="precast" set="Nuke">
    <main>$Staff-Dmg-%SpellElement</main>
    <sub>Zuuxowu grip</sub>
    </equip>
    </if>
    <else>
    <equip when="precast" set="Nuke2">
    <main>$Staff-Dmg-%SpellElement</main>
    <sub>Zuuxowu grip</sub>
    </equip>
    </else>
    <if mode="OR" element="%DayElement" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
    <equip when="midcast">
    <back>Twilight cape</back>
    </equip>
    <if advanced='"$Obi-%spellElement"!="0"'>
    <equip when="midcast">
    <waist>$Obi-%spellElement</waist>
    </equip>
    </if>
    </if>
    </if>
    how would I go about converting something like this into lua?

    I have a feeling since gearswaps works wiht packets of spells actualyl going off, trigger spells are not possible. So the idea would probably be to splitt up the nukeing set into 2 parts, one with only body and one with the rest, and then I just send a command line in that changes the body set into what I desire?
    Hmmm what you say is like having 2 miscast set?

    You can have something like

    Set.mpcons
    Set.mab
    Set.midcast.spell as your midcast.

    Then as default you put set.midcast.spell = set.mab

    Then have a "command" to toggle it
    If you have it set to mab then change it to mpcons...

    (Writing this from my cel, so can't give you concrete examples)

  4. #804
    Smells like Onions
    Join Date
    Jun 2012
    Posts
    6
    BG Level
    0

    Just had a quick question. I am trying to add binds_on_load() to Prothescar's BLU and RUN luas. I cant seem to get them to work like motentens works. What would be the right code? here is what i was trying to use.

    -- Function to bind GearSwap binds when loading a GS script.
    function binds_on_load()
    send_command('bind f9 gs c toggle TP set')
    send_command('bind f10 gs c toggle Idle set')
    send_command('bind f11 gs c toggle Req set')
    send_command('bind f12 gs c toggle CDC set')
    end

  5. #805
    Sea Torques
    Join Date
    Aug 2007
    Posts
    725
    BG Level
    5
    FFXI Server
    Ramuh

    Don't think blank space is accepted in a variable name, try with TPset, Idleset, etc.

  6. #806
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    How would I go about adding another idle set into this?

    Code:
    function customize_idle_set(idleSet)
    	if player.mpp < 90 and state.IdleMode == "Normal" and state.Defense.Active == false then
    		idleSet = set_combine(idleSet, sets.Owleyes)
    	end
    	
    	return idleSet
    end

  7. #807
    Sea Torques
    Join Date
    Jul 2010
    Posts
    516
    BG Level
    5
    FFXI Server
    Bahamut

    Quote Originally Posted by nappypup View Post
    Just had a quick question. I am trying to add binds_on_load() to Prothescar's BLU and RUN luas. I cant seem to get them to work like motentens works. What would be the right code? here is what i was trying to use.

    -- Function to bind GearSwap binds when loading a GS script.
    function binds_on_load()
    send_command('bind f9 gs c toggle TP set')
    send_command('bind f10 gs c toggle Idle set')
    send_command('bind f11 gs c toggle Req set')
    send_command('bind f12 gs c toggle CDC set')
    end
    I don't see anything wrong with that. Did you remember to call the function at some point?

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

    How is correct:

    buffactive.HundredFists
    or
    buffactive['Hundred Fists']

  9. #809
    Cerberus
    Join Date
    Feb 2009
    Posts
    462
    BG Level
    4
    FFXI Server
    Bahamut

    Quote Originally Posted by Motenten View Post
    In your gear file, where you have the function:
    Spoiler: show

    Code:
    function init_gear_sets()
        -- Put all set definitions here, as well as any other customization that is user-specific.
    end
    Add an additional function for your /nin gear sets, and put the following code at the top of the above init function:

    Code:
    function init_gear_sets()
        -- Put all set definitions here, as well as any other customization that is user-specific.
        if player.sub_job:lower() == 'nin' then
            init_nin_gear_sets()
            return
        end
    end
    
    function init_nin_gear_sets()
        -- Put all set definitions here (/nin only), as well as any other customization that is user-specific.
    end
    Then you can put all your norml gear sets in the init_gear_sets() function, and all the /nin gear in the init_nin_gear_sets() function.
    Spoiler: show




    Just wanted to say Thank you! This worked beautifully.

  10. #810
    Sea Torques
    Join Date
    Jul 2010
    Posts
    516
    BG Level
    5
    FFXI Server
    Bahamut

    Quote Originally Posted by JSHidaka View Post
    How is correct:

    buffactive.HundredFists
    or
    buffactive['Hundred Fists']
    Second form.

  11. #811
    Smells like Onions
    Join Date
    Jun 2012
    Posts
    6
    BG Level
    0

    Quote Originally Posted by TSFFXI View Post
    I don't see anything wrong with that. Did you remember to call the function at some point?
    Nope! Got it working now, Thanks!

  12. #812
    Old Odin
    Join Date
    Oct 2006
    Posts
    6,198
    BG Level
    8
    FFXI Server
    Asura

    how do I write a macro about toggling commands for gearswap

    I know inchat I just have to write //gs c toggle Nuke set and it works just fine

    but for macros neither //gs c toggle Nuke set nor /gs c toggle Nuke set worked

  13. #813
    Smells like Onions
    Join Date
    Jun 2012
    Posts
    6
    BG Level
    0

    /console gs c toggle Nuke set

  14. #814
    Rio
    Rio is offline
    RIDE ARMOR
    Join Date
    Mar 2014
    Posts
    12
    BG Level
    1

    I was wondering with Motenten's SMN.lua, is it possible to have separate Blood Pact sets for Physical/Magic for example.

    Magic BPs.
    If Avatar's TP is under 200 equip Caller's Spats+2
    If Avatar's TP is above 200 equip Ngen Seraweels
    Equip more physical/Magic, Accuracy/Attack based on the attack mode you are set to.

    And I also wanted to know if it would be possible to have two sets for idle attacking with an Avatar while idle, one which is based on Avatar Perpetuation cost the other with +pet gear for the Avatar fighting alone?

    Thanks!

  15. #815
    Hydra
    Join Date
    Sep 2012
    Posts
    118
    BG Level
    3

    I'm leveling smn cause I feel like a new job and my inventory woes weren't already enough so question:

    Do I precast pacts in bp recast reduction, pet_midcast in relevant bp damage/avatar matk gear and then aftercast or do I precast recast reduction AND bp damage/atk/matk?

  16. #816
    Sea Torques
    Join Date
    Aug 2007
    Posts
    725
    BG Level
    5
    FFXI Server
    Ramuh

    Option 1: precast -BP timer, midcast: damage/atk/mab/blood boon

  17. #817
    Sea Torques
    Join Date
    Jul 2010
    Posts
    516
    BG Level
    5
    FFXI Server
    Bahamut

    Is there a point where too many sets in the get_sets() function starts to bog things down?

    If I don't have an item in my inventory, does GearSwap still send a packet to equip it? Is that any different than when I try to equip something via in-game macros?

  18. #818
    BG Content
    Join Date
    Jul 2007
    Posts
    22,399
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    I designed GearSwap to avoid attempting to equip items that cannot be equipped for whatever reason (Bazaar, not in inventory, already worn, etc.). As far as I know, my filters work.

    There's essentially no point at which you're going to see a performance decrease based on the number of sets you make.

  19. #819
    First invited, last in the zone.
    Join Date
    Sep 2008
    Posts
    1,448
    BG Level
    6
    FFXI Server
    Lakshmi

    So I was vaguely under the impression that midcast now worked for everything, no matter how short precast was. I'm seeing a persistant 1 second difference on recast with both timers and the in-game menu between using precast gear on stun or not. Is this normal/expected? (It's not a super big deal either way, my midcast for stun only has like 8 fewer fastcast, just want to double check if there's something I should be doing differently.)

  20. #820
    Puppetmaster
    Join Date
    Apr 2013
    Posts
    63
    BG Level
    2
    FFXI Server
    Asura

    Question for the pros out there, I'd like to use this lua for cor, but i currently use cor.xml with the greatest feature, blocks you from accidentally firing your MAB ammo (Animikii Bullet) which i've done before , anyway to add a rule to add that functionality to the lua? thx in advance

    http://pastebin.com/63y8f92J

Page 41 of 302 FirstFirst ... 31 39 40 41 42 43 51 91 ... LastLast

Similar Threads

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