Item Search
     
BG-Wiki Search
Page 49 of 302 FirstFirst ... 39 47 48 49 50 51 59 99 ... LastLast
Results 961 to 980 of 6036

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

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

    Ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh. (Sorry, I didn't want to spam the thread, but things make sense now!)

  2. #962
    RIDE ARMOR
    Join Date
    Nov 2008
    Posts
    23
    BG Level
    1
    FFXI Server
    Bismarck

    Can't get third song to work

    I'm using a pretty much unmodified BRD.lua (the Kinematics one). I've played with the various Dharp toggles but no matter what I do I can't get GearSwap to trigger switching over to Dharp from Ghorn for a third song.

    Is there something obvious I'm missing? I changed

    options.DaurdablaModes = {'None','Dummy','Daurdabla'}
    state.DaurdablaMode = 'Dummy'
    and

    -- How many extra songs we can keep from Daurdabla
    info.DaurdablaSongs = 1
    -- Whether to try to automatically use Daurdabla when an appropriate gap in current vs potential
    -- songs appears, and you haven't specifically changed state.DaurdablaMode.
    state.AutoDaurdabla = true
    I have level 90 dharp only.

    Is there something obvious I'm missing?

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

    1) Turn state.AutoDaurdabla off (false). It works fine in simple scenarios, but starts having issues any time things get remotely complicated.

    2) I have two (in-game) macros to deal with Daurdabla:

    This one plays a dummy song that's intended to be replaced:
    Code:
    /console gs c set daurdabla Dummy
    /ma "Shining Fantasia" <me>
    This one sets up the daurdabla variable state for the next song that is sung (can be any song):
    Code:
    /console gs c cycle daurdabla
    Use the first one when you're singing a standard cycle: [song1, song2, dummy, song3]
    Use the second one when you want to add a third song, but don't (necessarily) want to use a dummy song. EG: [song1, song2, song3(with Daur)] You'll have to hit it twice to go from None to Dummy to Daurdabla. If you don't ever want to manually dummy a song (ie: you always use the first macro for that), you can change it to "/console gs c set daurdabla Daurdabla".

    Using the cycle command runs through: None, Dummy, Daurdabla. None obviously does nothing to what gear set is used. Dummy uses the set with no +duration, but includes the Daurdabla. Daurdabla uses the Daurdabla plus all standard +duration gear (if you just want the songs up and don't have time to mess with dummy stuff).

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

    Code:
        sets.WS['Metatron Torment'] = 
    		{ammo="Ravager's orb",
            head="Yaoyotl helm",
    		neck="Light gorget",
    		ear1="Steelflash earring",
    		ear2="Bladeborn earring",
            body="Xaddi mail",
    		hands="Xaddi gauntlets",
    		ring1="Pyrosoul ring",
    		ring2="Rajas Ring",
            back="Mauler's mantle",
    		waist="Light belt",
    		legs="Mikinaak cuisses",
    		feet="Whirlpool greaves"}
    		
    	sets.WS['Upheaval'] = 
    		{ammo="Ravager's orb",
            head="Yaoyotl helm",
    		neck="Light gorget",
    		ear1="Steelflash earring",
    		ear2="Bladeborn earring",
            body="Xaddi mail",
    		hands="Xaddi gauntlets",
    		ring1="Pyrosoul ring",
    		ring2="Spiral Ring",
            back="Mauler's mantle",
    		waist="Light belt",
    		legs="Pummeler's cuisses +1",
    		feet="Whirlpool greaves"}
    		
    	sets.WS['Fell Cleave'] = 
    		{ammo="Ravager's orb",
            head="Yaoyotl helm",
    		neck="Soil gorget",
    		ear1="Steelflash earring",
    		ear2="Bladeborn earring",
            body="Xaddi mail",
    		hands="Xaddi gauntlets",
    		ring1="Pyrosoul ring",
    		ring2="Rajas Ring",
            back="Mauler's mantle",
    		waist="Soil belt",
    		legs="Mikinaak cuisses",
    		feet="Whirlpool greaves"}
    		
    	sets.WS.Ukkosfury = 
    		{ammo="Ravager's orb",
            head="Yaoyotl helm",
    		neck="Light gorget",
    		ear1="Steelflash earring",
    		ear2="Bladeborn earring",
            body="Xaddi mail",
    		hands="Xaddi gauntlets",
    		ring1="Pyrosoul ring",
    		ring2="Spiral Ring",
            back="Mauler's mantle",
    		waist="Light belt",
    		legs="Pummeler's cuisses +1",
    		feet="Ravager's Calligae +2"}
            
    
    
        -------------------  MA Sets  ----------------------
        sets.MA={}
    
        sets.MA.FastCast = 
    		{ammo="Ravager's orb",
            head="Cizin helm",
    		neck="Orunmila's Torque",
    		ear1="Loquacious Earring",
    		ear2="Bladeborn earring",
            body="Cizin mail",
    		hands="Cizin mufflers",
    		ring1="Prolix Ring",
    		ring2="Defending Ring",
            back="Mauler's mantle",
    		waist="Cetl belt",
    		legs="Pummeler's cuisses +1",
    		feet="Ejekamal boots"}
        
    end
    
    function precast(spell)
        if spell.action_type == 'Magic' then
            equip(sets.MA.FastCast)
    	end
    	
    end
    
    function midcast(spell)
    	if spell.action_type == 'Magic' then
            equip(sets.MA.FastCast)
    	end
    	if spell.type == "WeaponSkill" then
            equip(sets.WS[spell.name])
    	end
    	if sets.JA[spell.name] then
            equip(sets.JA[spell.name])
    	end
    	
     	if spell.english == "Ukko's Fury" then
    		equip(sets.WS.UkkosFury)
    	end
     
     
        if spell.type == 'WeaponSkill' then
            if buffactive["Warrior's Charge"] then
                equip({legs="Warrior's Cuisses +2"})
            end
        end
    Ukko's Fury doesnt swap gear, tried to name it in the sets.WS as: sets.WS["Ukko's Fury"]
    doesnt work
    tried to make its own rule: didnt work
    why is ukkos fury refuseing to swap gear?

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

    i want to check and see if my gear has been removed by an enemy but im not sure what function i should put it under or if this would even work and i also want it to only work if all gear is empty
    Code:
    if player.equipment.main == "empty" and player.equipment.sub == "empty" and player.equipment.head == "empty" and player.equipment.body == "empty" and player.equipment.hands == "empty" and player.equipment.legs == "empty" and player.equipment.feet == "empty" and player.equipment.neck == "empty" and player.equipment.waist == "empty" and player.equipment.left_ear == "empty" and player.equipment.right_ear == "empty" and player.equipment.left_ring == "empty" and player.equipment.right_ring == "empty" and player.equipment.back == "empty" and player.equipment.range == "empty" and player.equipment.ammo == "empty" then
    		equip(sets[player.status])
    	end

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

    You don't have to worry about re-equipping gear when encumbrance wears. GearSwap does that automatically.

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

    Err, edit.

    Code:
     	if spell.english == "Ukko's Fury" then
    		equip(sets.WS.UkkosFury)
    	end
    Is the set named sets.WS.UkkosFury or sets.WS["Ukko\'s Fury"]?

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

    Quote Originally Posted by Byrthnoth View Post
    You don't have to worry about re-equipping gear when encumbrance wears. GearSwap does that automatically.
    does it also do it when a Yovra(aka "UFO") uses Torrential Torment (AoE damage and remove all equipment, strips Utsusemi)??

  9. #969
    BG Content
    Join Date
    Jul 2007
    Posts
    22,336
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    I'm not sure. I'd have to look at which packets are sent when that happens. I kind of doubt it, but I could potentially make it happen.

  10. #970
    RIDE ARMOR
    Join Date
    Nov 2008
    Posts
    23
    BG Level
    1
    FFXI Server
    Bismarck

    Quote Originally Posted by Motenten View Post
    1) Turn state.AutoDaurdabla off (false). It works fine in simple scenarios, but starts having issues any time things get remotely complicated.

    2) I have two (in-game) macros to deal with Daurdabla:

    This one plays a dummy song that's intended to be replaced:
    Code:
    /console gs c set daurdabla Dummy
    /ma "Shining Fantasia" <me>
    This one sets up the daurdabla variable state for the next song that is sung (can be any song):
    Code:
    /console gs c cycle daurdabla
    Use the first one when you're singing a standard cycle: [song1, song2, dummy, song3]
    Use the second one when you want to add a third song, but don't (necessarily) want to use a dummy song. EG: [song1, song2, song3(with Daur)] You'll have to hit it twice to go from None to Dummy to Daurdabla. If you don't ever want to manually dummy a song (ie: you always use the first macro for that), you can change it to "/console gs c set daurdabla Daurdabla".

    Using the cycle command runs through: None, Dummy, Daurdabla. None obviously does nothing to what gear set is used. Dummy uses the set with no +duration, but includes the Daurdabla. Daurdabla uses the Daurdabla plus all standard +duration gear (if you just want the songs up and don't have time to mess with dummy stuff).
    Thanks! I'll play with when I get home from work.

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

    this code is not working for some reason
    equip(sets.precast[Usestaff][spell.element])

    Usestaff is a custom variable
    here is my code
    http://pastebin.com/SQ7LLXmp --Mage Staves include.lua
    http://pastebin.com/VrDhuZw3 --blm.lua

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

    You have sets defined for sets.precast[Usestaff] but not for sets.precast[Usestaff][spell.element]. Also, you include the file in the get_sets() function and Usestaff is a string. Since get_sets() is only called once upon loading the file, you won't be able to edit the value.
    Use an advanced set table to get around this (Byrthnoth and Motenten explained them to me on the last page, and there's another example concerning beastmaster jugs a few pages further back (38)).

    Something like
    Code:
    Changestaff = {name="Atk"}
    staves_index = 1
    staves_array = {"Atk","Acc"}
    ...
    function equip_elemental_magic_gear_command(command)
    if command == tstavetouse then
         staves_index=staves_index % #staves_array +1
         Changestaff.name=staves_array[staves_index]
    ...
    end
    would work. It's Byrthnoth's solution to the beastmaster post applied to your file.

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

    Quote Originally Posted by TSFFXI View Post
    You have sets defined for sets.precast[Usestaff] but not for sets.precast[Usestaff][spell.element]. Also, you include the file in the get_sets() function and Usestaff is a string. Since get_sets() is only called once upon loading the file, you won't be able to edit the value.
    Use an advanced set table to get around this (Byrthnoth and Motenten explained them to me on the last page, and there's another example concerning beastmaster jugs a few pages further back (38)).

    Something like
    Code:
    Changestaff = {name="Atk"}
    staves_index = 1
    staves_array = {"Atk","Acc"}
    ...
    function equip_elemental_magic_gear_command(command)
    if command == tstavetouse then
         staves_index=staves_index % #staves_array +1
         Changestaff.name=staves_array[staves_index]
    ...
    end
    would work. It's Byrthnoth's solution to the beastmaster post applied to your file.
    actualy i figured it out
    i had
    equip(sets.precast[Usestaff][spell.element])

    but i should have had
    equip(sets.Precast[Usestaff][spell.element])

    the difference from p to P was my error

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

    Oops, sorry. I got a little trigger happy with most of that. I think using the table for the variable might be slightly faster since you don't have to check its value at any point, but either way works.

    Oh, you had the sets defined as well, I just didn't see them. ^^; Sorry.

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

    im having an issue with this code going in to an infinite loop

    Code:
    	Waltz.debuff = S{'Max HP Down','Max MP Down','Magic Evasion Down','Max TP Down','Magic Atk. Down','Magic Acc. Down','Magic Def. Down','Defense Down','Evasion Down','Attack Down','Accuracy Down','CHR Down','AGI Down','DEX Down','VIT Down','MND Down','INT Down','STR Down','Bane','Bio','Blind','Curse','Dia','Disease','Shock','Rasp','Choke','Frost','Burn','Drown','Flash','Paralyze','Plague','Poison','Silence','Slow','Weight'}
    	spells.waltz = S{'Curing Waltz III','Curing Waltz II','Curing Waltz I'}
    	if spells.waltz[spell.name] and spell.target.type =='SELF' then
    		if (player.tp >= 20 and player.hpp >= 75) and Waltz.debuff[buffactive] then
    			cancel_spell()
    			send_command('@input /ja "Healing Waltz" <me>')
    		elseif (player.tp >= 50 and player.hpp <= 60) and player.sub_job_level >= 44 then
    			cancel_spell()
    			send_command('@input /ja "Curing Waltz III" <me>')
    		elseif (player.tp >= 35 and player.hpp <= 65) and player.sub_job_level >= 29 then
    			cancel_spell()
    			send_command('@input /ja "Curing Waltz II" <me>')
    		elseif (player.tp >= 20 and player.hpp <= 75) and player.sub_job_level >= 14 then
    			cancel_spell()
    			send_command('@input /ja "Curing Waltz" <me>')
    		else
    			cancel_spell()
    		end
    	end
    does anybody know how i can stop it

    --edit i fixed it by using a variable
    but for some reason gearswap does not see Healing Waltz and Curing Waltz but it does see Curing Waltz II and Curing Waltz III

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

    It's going into an infinite loop because any waltz will always meet those conditions: Say you use Curing Waltz III. If your current HP and TP meet one of the conditions, you cancel the spell and tell windower to input another waltz. Gearswap sees the new waltz and sends it back down the same route, canceling the spell and telling windower to input another waltz again.

    You need a way for gearswap to distinguish between a new waltz and a waltz that has already been through the check-list. This probably isn't the best way to do it, but it should work:

    Create a boolean, waltz_handled, and set it to false. Put your code into a separate function (if it isn't already) and call it in the precast function.
    Code:
    function precast(spell)
    if spell.type == 'Waltz' and not waltz_handled then
           your_function(spell)
    end
    after each send_command... set waltz_handled to true. At the end of the aftercast function, set waltz_handled to false.

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

    I am having trouble making custom timers for various abilities/buffs. I have looked over this thread and seen a couple of samples to get Aftermath timers working, and looked at the sample .lua which give custom timers, such as Moten's SMN one.

    However after applying them to my .lua files, none of them have worked for me sadly.

    Is there a bog standard code that would allow me to create a custom timer for when my aftermath, of varying levels, is up (canceling it when it wears)?
    And if so, can the same code be used to generate custom timers for abilities and buffs such as rolls/songs?

    The answer is probably staring me right in the face... but I figured I would ask.

    Thanks

  18. #978
    Smells like Onions
    Join Date
    Apr 2014
    Posts
    1
    BG Level
    0

    here is a noob question: Do i need to put "Mote-Includes" "Mote-globals" ETC.... on my GearSwap Folder ?

    I am still a bit Disoriented about GS

    Thanks in Advance.

  19. #979
    Melee Summoner
    Join Date
    Jul 2006
    Posts
    35
    BG Level
    1
    FFXI Server
    Quetzalcoatl

    Quote Originally Posted by Motenten View Post
    1) Turn state.AutoDaurdabla off (false). It works fine in simple scenarios, but starts having issues any time things get remotely complicated.

    2) I have two (in-game) macros to deal with Daurdabla:

    This one plays a dummy song that's intended to be replaced:
    Code:
    /console gs c set daurdabla Dummy
    /ma "Shining Fantasia" <me>
    This one sets up the daurdabla variable state for the next song that is sung (can be any song):
    Code:
    /console gs c cycle daurdabla
    Use the first one when you're singing a standard cycle: [song1, song2, dummy, song3]
    Use the second one when you want to add a third song, but don't (necessarily) want to use a dummy song. EG: [song1, song2, song3(with Daur)] You'll have to hit it twice to go from None to Dummy to Daurdabla. If you don't ever want to manually dummy a song (ie: you always use the first macro for that), you can change it to "/console gs c set daurdabla Daurdabla".

    Using the cycle command runs through: None, Dummy, Daurdabla. None obviously does nothing to what gear set is used. Dummy uses the set with no +duration, but includes the Daurdabla. Daurdabla uses the Daurdabla plus all standard +duration gear (if you just want the songs up and don't have time to mess with dummy stuff).
    I can't get these self commands to work for some reason. /console gs c set daurdabla Dummy returns the message "Unknown mode value: Dummy for Daurdabla mode." the cycle command returns nothing at all. I haven't made any modifications to your file except for switching to gear that I have. Any idea what I'm doing wrong?

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

    Quote Originally Posted by Glecent View Post
    I can't get these self commands to work for some reason. /console gs c set daurdabla Dummy returns the message "Unknown mode value: Dummy for Daurdabla mode." the cycle command returns nothing at all. I haven't made any modifications to your file except for switching to gear that I have. Any idea what I'm doing wrong?
    which of the includes are you using??

Page 49 of 302 FirstFirst ... 39 47 48 49 50 51 59 99 ... LastLast

Similar Threads

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