Item Search
     
BG-Wiki Search
Page 36 of 302 FirstFirst ... 26 34 35 36 37 38 46 86 ... LastLast
Results 701 to 720 of 6036

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

  1. #701
    Cerberus
    Join Date
    Feb 2009
    Posts
    462
    BG Level
    4
    FFXI Server
    Bahamut

    Mambo, Etude, Prelude and Mazurka I also don't see

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

    Added them to Mote-Mappings.

  3. #703
    RIDE ARMOR
    Join Date
    Feb 2014
    Posts
    11
    BG Level
    1

    Hi all,

    First off thanks for all your hard work on making the XI experience more enjoyable! I've been trying to transition from SpellCast to GearSwap, and I can already see the advantages of GearSwap. I've been struggling with getting some functionality working for the past few days, though, and finally figured I would just ask and see if you guys had any ideas.

    I'm working on Motenten's BRD lua. In SpellCast, I had the following lines applied to all Bard buff songs:
    Code:
    <if NotBuffActive="Pianissimo">
          <changetarget target="<me>" />
    </if>
    With this setup, I manually trigger Piannisimo if I want to use it, and my macros all read "/ma "Victory March" <t>". If Piannisimo is up and I have a party member targeted, it will cast on them. Otherwise, without Piannisimo up, all my buff songs get redirected to myself.

    I see that there is an auto-Piannisimo function in Mote's BRD lua. This is pretty nifty and has been working so far. However, I cannot seem to get the coding right to mimic the redirect functionality that I have in SpellCast. Ideally, I would like for the following to happen:

    -If I am targeting myself, the buff song will cast on me normally.
    -If I am targeting a party member, auto-Piannisimo will activate and cast the buff on that party member.
    -If I am targeting an enemy, the buff song will be redirected to cast on myself.
    -If I am targeting nothing, the buff song will be redirected to cast on myself.

    I have tried using macros both ending with "<t>" and macros with no designated target (I should note that I also have the Shortcuts addon running as it's my understanding its somewhat integral to GearSwap). I have tried adding code to a BRD_gear.lua sidecar in the job_precast function, underneath the coding for auto-Piannisimo. Here's one example I tried, to no avail, to achieve the above functionality:

    Code:
    function job_precast(spell, action, spellMap, eventArgs)
    	if spell.type == 'BardSong' then
    	
    		--MY EDITS--
    		if spell.validtarget and spell.target.type and player.target.type then
    			if player.target.type == "MONSTER" and spell.validtarget['MONSTER'] == nil and spell.validtarget['Self'] then
    				change_target('<me>')
    				return
    			end
    			
    			if player.target.type == "NPC" and spell.validtarget['Self'] then
    				change_target('<me>')
    				return
    			end	
    
    			if player.target.type == "NONE" and spell.validtarget['Self'] then
    				change_target('<me>')
    				return
    			end				
    		end
    					
    		-- Auto-Pianissimo
    		if spell.target.type == 'PLAYER' and not spell.target.charmed and not state.Buff['Pianissimo'] then
    			cancel_spell()
    			send_command('@input /ja "Pianissimo" <me>; wait 1.25; input /ma "'..spell.name..'" '..spell.target.name)
    			eventArgs.cancel = true
    			return
    		end
    			
    	end
    end
    I should also note that I have no prior experience with lua and am largely trying to learn by reading others' files and then infer how things work.

    If you guys have any suggestions for me on a way to get the functionality I mentioned, I would be super appreciative! Thanks again for all you guys already do.

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

    try in pretarget?... I have something like that.. the only 2 difference are that I use it under "function pretarget(spell)" and that I dont use mote's lua...

    Code:
    function get_sets()
        debuff = S{"Carnage Elegy", "Battlefield Elegy", "Foe Requiem VII", "Horde Lullaby", "Horde Lullaby II",
    	"Magic Finale", "Foe Lullaby II", "Foe Lullaby", "Dark Threnody", "Light Threnody", "Water Threnody", "Ltng. Threnody",
    	"Earth Threnody", "Wind Threnody", "Fire Threnody", "Ice Threnody", "Pining Nocture", "Magic Finale", "Maiden's Virelai"}
    end
    Code:
    function pretarget(spell)
    		if spell.type == 'BardSong' and not debuff:contains(spell.name) then
    			if player.target.type == "MONSTER" then
    				change_target('<me>')
    				return
    			end
    			
    			if player.target.type == "NPC" then
    				change_target('<me>')
    				return
    			end	
    		end
    
    	if spell.type == 'BardSong' and spell.target.type and spell.target.type == 'PLAYER' and not buffactive.pianissimo and not spell.target.charmed then
    		cancel_spell()
    		send_command('input /ja "Pianissimo" <me>;wait 2;input /ma "'..spell.name..'" '..spell.target.name..';')
    		return
    	end
    end

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

    How do you manually trigger a set via in-game macro? I am using Motenten's stuff if that matters.

  6. #706
    BG Content
    Join Date
    Jul 2007
    Posts
    22,398
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    /console gs equip <set name>

    Replace <set name> with whatever the set's name is, like sets.precast.Fast_Cast or what-have-you.

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

    Just got an idea for another autopianisimo. That should work fine under lag situations

    Code:
    function pretarget(spell)
    	if spell.type == 'BardSong' and spell.target.type and spell.target.type == 'PLAYER' and autopianext == 0 and not spell.target.charmed then
    		cancel_spell()
                    autopianext = 1
                    aptarget = spell.target.name
                    apspell = spell.name
    		send_command('input /ja "Pianissimo" <me>;')
    		return
    	end
    end
    Now under buff change for pianissimo

    Code:
    function buff_change(status,gain_or_loss)
        if status == "Pianissimo" and autopianext == 1 then
    		if gain_or_loss then
    			send_command('input /ma "'..apspell..'" '..aptarget..';')
    		else
    			autopianext = 0
    			aptarget = nil
    			apspell = nil
    		end
        end
    end
    Well it works better than the old one in normal situations... just need to get into delve to check it..

    EDIT: Still untested under lag situations.. but since "Buffactive.xxxx" normally have some issues if do some actions right after you gain the buff, did replace w/ a variable...

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

    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 -_-

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

    So I cannot get impact to cast. I'm using mote's files, and I've got sets.precast.FC.Impact and sets.midcast.Impact defined appropriately, and the precast and midcast functions correctly recognize that I'm casting it, but if I don't manually equip the cloak before trying to cast it, I get an error.

    Any idea why?

    Edit: Byrth helped me out, for anyone else with the same problem, you need to edit line 345 of helper_functions.lua to read : "if not available_spells[spell_id] and not (spell_id == 503 ) then"

  10. #710
    Salvage Bans
    Join Date
    Oct 2007
    Posts
    771
    BG Level
    5

    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 -_-
    Mind posting the entire lua or link to it? Like to see the entire file if you could and thanks...

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

  12. #712
    Salvage Bans
    Join Date
    Oct 2007
    Posts
    771
    BG Level
    5

    Quote Originally Posted by JSHidaka View Post

    Thank you kind Sir!!!!

  13. #713
    Salvage Bans
    Join Date
    Oct 2010
    Posts
    792
    BG Level
    5
    FFXI Server
    Sylph

    I want to get into gearswap, but I'd like to write mine from scratch, borrowing from others' luas as needed. What resources are available for learning the syntax rules? I see Byrth's examples, which will help, but that's not what I'm looking for. I need something more listy, and structure oriented and less real world exampley to supplement the actual examples.

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

  15. #715
    Salvage Bans
    Join Date
    Oct 2010
    Posts
    792
    BG Level
    5
    FFXI Server
    Sylph

    Quote Originally Posted by TSFFXI View Post
    What about something written with "writing lua for gearswap" in mind?

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

    I don't think anyone has written anything along those lines.

  17. #717
    Old Merits
    Join Date
    Jun 2008
    Posts
    1,021
    BG Level
    6
    FFXI Server
    Sylph

    I'm checking in for the first time and i'm curious about Gearswap vs Spellcast. What's the major differences? Should I prioritize one over the other? (for instance is SC eventually going to stop being updated?)

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

    v

  19. #719
    BG Content
    Join Date
    Jul 2007
    Posts
    22,398
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Quote Originally Posted by Limlight View Post
    I'm checking in for the first time and i'm curious about Gearswap vs Spellcast. What's the major differences? Should I prioritize one over the other? (for instance is SC eventually going to stop being updated?)
    Here's a summary post from two months back: http://www.bluegartr.com/threads/115...=1#post5985652

    GearSwap has improved since then, but the basic differences are still the same.

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

    I'm still learning Lua as well.

    In the example Lua files, the get_sets() function usually creates a few key/value pairs in the sets table:

    sets.JA={}
    sets.WS={}
    ... etc.

    Then there's something that doesn't quite make sense to me:

    sets.WS.Exenterator = {}

    Is that how you call a sub table? I.e. sets = { "JA", "WS" = { "Exenterator" }}

Page 36 of 302 FirstFirst ... 26 34 35 36 37 38 46 86 ... LastLast

Similar Threads

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