Item Search
     
BG-Wiki Search
Page 150 of 302 FirstFirst ... 100 140 148 149 150 151 152 160 200 ... LastLast
Results 2981 to 3000 of 6036

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

  1. #2981
    New Merits
    Join Date
    Apr 2010
    Posts
    228
    BG Level
    4

    I need a bit of help as to why this don't work. One thing to note is this works fine if I test and use status effect "Haste"

    Code:
    function buff_change(buff,gain)
    if buff == "encumbrance" then 
    		if not gain then
            equip(sets.Encumber[Encumber_Set_Names[Encumber_Index]])
    		end	
    	end
            end
    Under status.xml it shows it as "encumbrance" which I tried and I also tried "encumbered" , Is there a way to try it as the buff ID?

    I'm basically using it for Incursion when Encumbered it removes my weapon so when encumber wears off it re-equips it with this bit of code.

  2. #2982
    Melee Summoner
    Join Date
    May 2014
    Posts
    38
    BG Level
    1
    FFXI Server
    Bismarck

    Quote Originally Posted by Sithel View Post
    I need a bit of help as to why this don't work. One thing to note is this works fine if I test and use status effect "Haste"

    Code:
    function buff_change(buff,gain)
    if buff == "encumbrance" then 
    		if not gain then
            equip(sets.Encumber[Encumber_Set_Names[Encumber_Index]])
    		end	
    	end
            end
    Under status.xml it shows it as "encumbrance" which I tried and I also tried "encumbered" , Is there a way to try it as the buff ID?

    I'm basically using it for Incursion when Encumbered it removes my weapon so when encumber wears off it re-equips it with this bit of code.
    Would Encumberment work? Source: https://www.bg-wiki.com/bg/Category:Status_Effects

  3. #2983
    Melee Summoner
    Join Date
    May 2014
    Posts
    38
    BG Level
    1
    FFXI Server
    Bismarck

    Quote Originally Posted by Motenten View Post
    Use the customize_melee_set function.
    I assume I'd start it like so.
    Code:
    if world.time >= 17*60 or world.time < 5*60 then
    Scratching my head re the rest. To reiterate, it should be equipped only when in Acc mode.

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

    Well, you have the time backwards since the latent is active during daytime, not nighttime. Aside from that:
    Code:
        if (world.time >= 6*60 and world.time < 18*60) and state.OffenseMode.value == 'Acc' then

  5. #2985
    Shirai
    Guest

    Hey folks, I hope you can help me with the following.
    I've been looking through this thread with the search tool but I couldn't find the answer, although I may have been looking in the wrong direction.

    For my Summoner gearswap I am looking for a rule that completely locks me into a pre-defined gearset during Astral conduit.
    As in, if AC is active, I don't want to swap gear regardless of what I am doing.

    Thanks in advance.

    [edit]
    Found something, but if you have something less complicated feel free to advise:
    Code:
    function status_change(new,old)
    	if Armor == 'PDT' then
    		equip(sets.PDT)
    	elseif pet.isvalid then
    		if SpiritPacts:contains(pet.name) then
    			equip(sets.Spirits)
    		elseif buffactive["Avatar's Favor"] then
    			equip(sets.Favor)
    		elseif buffactive["Astral Conduit"] then
    			equip(sets.Astralconduit)
    			send_command('@wait 0.5;gs disable main sub ranged ammo head neck ear1 ear2 body hands ring1 ring2 back waist legs feet;')
    		else
    			equip(sets.Avatars)
    			if sets.Avatars[pet.name] then
    				equip(sets.Avatars[pet.name])
    			send_command('@wait 0.5;gs enable main sub ranged ammo head neck ear1 ear2 body hands ring1 ring2 back waist legs feet;')				
    			end

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

    Quote Originally Posted by Shirai View Post
    Hey folks, I hope you can help me with the following.
    I've been looking through this thread with the search tool but I couldn't find the answer, although I may have been looking in the wrong direction.

    For my Summoner gearswap I am looking for a rule that completely locks me into a pre-defined gearset during Astral conduit.
    As in, if AC is active, I don't want to swap gear regardless of what I am doing.

    Thanks in advance.
    with the lest typing here

    Code:
    function buff_change(name,gain)
    	if name == "Astral Conduit" then
    		if gain then
    			equip(<yoursetname>)
    			self_command('gs disable all')
    		else
    			self_command('gs enable all')
    		end
    	end
    end

  7. #2987
    Shirai
    Guest

    My thanks!

  8. #2988
    New Merits
    Join Date
    Apr 2010
    Posts
    228
    BG Level
    4

    Quote Originally Posted by Speedy View Post
    I'll have to try next time I go in, but really doubt this would work. I've made mistakes in the past and everyone tells me to go by what the resources say for status effects. There's two status effect id's for encumber and both say encumbrance,so this should work but don't.

  9. #2989
    Melee Summoner
    Join Date
    May 2014
    Posts
    38
    BG Level
    1
    FFXI Server
    Bismarck

    Quote Originally Posted by Motenten View Post
    Well, you have the time backwards since the latent is active during daytime, not nighttime. Aside from that:
    Code:
        if (world.time >= 6*60 and world.time < 18*60) and state.OffenseMode.value == 'Acc' then
    Omg, thanks for nothing 2AM brain!

    Cheers Mote.

  10. #2990
    New Spam Forum
    Join Date
    May 2006
    Posts
    172
    BG Level
    3
    FFXI Server
    Alexander
    WoW Realm
    Doomhammer

    Is there an easy way to equip TH items for the first few seconds of a fight? Or the first swing.

    I am using Motentens files, and I believe he had this setup in his old spellcast for THF, but I don't see it in there in GS. I wanna use this for Chaac Belt on all my jobs now. I notice he loads it for Steps and other THF moves, which is nice for Dyna, but I'd like it on for every mob even when not /DNC.

  11. #2991
    CoP Dynamis
    Join Date
    Mar 2013
    Posts
    275
    BG Level
    4
    FFXI Server
    Odin

    Quote Originally Posted by Tanag View Post
    Is there an easy way to equip TH items for the first few seconds of a fight? Or the first swing.

    I am using Motentens files, and I believe he had this setup in his old spellcast for THF, but I don't see it in there in GS. I wanna use this for Chaac Belt on all my jobs now. I notice he loads it for Steps and other THF moves, which is nice for Dyna, but I'd like it on for every mob even when not /DNC.
    Looking at Mote's latest THF lua, he has a file that's included called Mote-TreasureHunter which does exactly that. Have you updated to the latest mote GS? if not, try that first.

    said file is here, if you're curious about how it is written.

    https://github.com/Kinematics/Mote-l...sureHunter.lua

  12. #2992
    New Spam Forum
    Join Date
    May 2006
    Posts
    172
    BG Level
    3
    FFXI Server
    Alexander
    WoW Realm
    Doomhammer

    Thanks. I updated like a month ago so I guess I missed that. Durp.

  13. #2993
    Melee Summoner
    Join Date
    May 2014
    Posts
    38
    BG Level
    1
    FFXI Server
    Bismarck

    Quote Originally Posted by Speedy View Post
    Omg, thanks for nothing 2AM brain!

    Cheers Mote.
    This isn't working, what am I doing wrong?
    Code:
    if (world.time >= 6*60 and world.time < 18*60) and state.OffenseMode.value == 'Acc' then
    	  equip({ammo='Tengu-no-Hane'})
              end

  14. #2994
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Speedy View Post
    This isn't working, what am I doing wrong?
    Code:
    if (world.time >= 6*60 and world.time < 18*60) and state.OffenseMode.value == 'Acc' then
    	  equip({ammo='Tengu-no-Hane'})
              end
    your want to change your ammo to Tengu-no-Hane between 6 am and 6 pm game time?? if state.OffenseMode.value == 'Acc'


    Code:
    if (world.time >= 360 and world.time < 1080) and state.OffenseMode.value == 'Acc' then
    	equip({ammo='Tengu-no-Hane'})
    end

  15. #2995
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    Quote Originally Posted by Speedy View Post
    This isn't working, what am I doing wrong?
    Code:
    if (world.time >= 6*60 and world.time < 18*60) and state.OffenseMode.value == 'Acc' then
    	  equip({ammo='Tengu-no-Hane'})
              end
    The code is fine, so it must be the logic that's screwed up. It will equip "Tengu-no-Hane" if it's day time and OffenseMode has a value of "Acc". If that is what you want but it isn't happening, add the following before that code:
    Code:
    print(world.time, state.OffenseMode.value)
    That will print the two values into the console, so you can check if they are set right. Also, a minor note, you don't need the parentheses inside that "if" condition.

    Quote Originally Posted by dlsmd View Post
    your want to change your ammo to Tengu-no-Hane between 6 am and 6 pm game time?? if state.OffenseMode.value == 'Acc'


    Code:
    if (world.time >= 360 and world.time < 1080) and state.OffenseMode.value == 'Acc' then
    	equip({ammo='Tengu-no-Hane'})
    end
    How is that code any different from his?

  16. #2996
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Arcon View Post
    How is that code any different from his?
    its not i know but if it works and the other does not then there is a bug or something somewhere

  17. #2997
    Hydra
    Join Date
    Feb 2014
    Posts
    131
    BG Level
    3
    FFXI Server
    Quetzalcoatl

    I have some code in place to swap in that ammo if you want to take a look.
    https://github.com/AlanWarren/gearsw...master/NIN.lua

    The gear is here
    https://github.com/AlanWarren/gearsw...r/NIN_gear.lua

    The ammo swaps in while in acc mode, during the day. Pay attention to the function and everywhere it's called, especially customize_melee_sets

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

    Mote did you get time to check this post?
    Was it any useful? Anything else I can do? Any other info I can provide?

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

    Quote Originally Posted by Sechs View Post
    Mote did you get time to check this post?
    Was it any useful? Anything else I can do? Any other info I can provide?
    Basic implementation of run pushed to the repo, using those gear sets. Not the greatest match with the types of set builds my libs use, but close enough. Has not been tested.

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

    @mote
    if i do this it does not work
    http://pastebin.com/V073sSJc

    but this should work am i correct
    http://pastebin.com/ijPt1ynX --the best i could come up with

    this works but
    http://pastebin.com/S27yaNY2 -- bad because each time you add new sets you would have to add lines to pet_change

Page 150 of 302 FirstFirst ... 100 140 148 149 150 151 152 160 200 ... LastLast

Similar Threads

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