Item Search
     
BG-Wiki Search
Page 229 of 302 FirstFirst ... 179 219 227 228 229 230 231 239 279 ... LastLast
Results 4561 to 4580 of 6036

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

  1. #4561
    Sea Torques
    Join Date
    Aug 2006
    Posts
    518
    BG Level
    5
    FFXI Server
    Leviathan

    http://pastebin.com/YC7XU53m


    Friend is getting a constant error while trying to weaponskill, and won't swap. Only if he does it from the menu, but then it only swaps the helm for breaths. error in user function pretarget: file.lua:474: attempt to compare number with nil

  2. #4562
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    you mean it wont swap gear for WS unless he uses WS from the menu?

    Line 474
    Code:
    if abil_recasts[spell.recast_id] > 1 and not spell.recast_id == 231 then
    Other than weapon skills not havin a recast (maybe should put the weaponskill section above the ability section cause they fall under abilities i believe.)...
    could it be that you are using both spell and abil in the same part? both abils and spells have different recast IDs. (the spell.recast_id of 231 is Bio 2 and ability.recast_id of 231 is strategems.) Is the point of this line to check if the ability is ready to use and cancel otherwise? If not, I am not really sure what the purpose of this line even is with the not spell recast id 231.

    Code:
      if midaction() or pet_midaction() then
                    cancel_spell()
                    return
    The only other thing i can think of is the cancel during a pet midcast action part, Im not sure how drg works (how fast does the wyvern breath go off, could it be interfering with the WS swap?) I do know when I have used midaction cancelling before it seems to cancel things for a bigger window than it takes to do the action that is already being used. Like if i had it for magic spells like cure and i spammed my cure macro It wouldnt let any cures after the first go until i hit the macro 4 or 5 times sometimes (even if the first cure spell was done with when i hit the macro the 2nd time.) Thats why I just dont use that feature anymore.

    Maybe You should turn some of those elseif statements into just separate if statements. All the elseif statements means its going thru all those elseif statements til one is true and then it processes that specific elseif statement and goes onto the next if statement (not the next elseif statement) if im correct in my thinkin.

    Also
    Line 461
    Code:
    elseif spell.action_type == 'Magic' or spell.type == "Ninjutsu" or spell.type == "BardSong" or spell.type == "Geomancy" or spell.type == "SummonerPact" then -- Auto Use Echo Drops If You Are Silenced --
    Ninjutsu bardsong geomancy (and summonerpact if that means the summoning spell) all fall under magic so those are redundant.

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

    Quote Originally Posted by stamos View Post
    http://pastebin.com/YC7XU53m


    Friend is getting a constant error while trying to weaponskill, and won't swap. Only if he does it from the menu, but then it only swaps the helm for breaths. error in user function pretarget: file.lua:474: attempt to compare number with nil
    as Trumpy said spell.action_type == 'Ability' covers all these
    Code:
    --spell.type
        JobAbility
        PetCommand
        CorsairRoll
        Samba
        Waltz
        Jig
        Step
        Flourish1
        Flourish2
        Flourish3
        Scholar
        Effusion
        Rune
        Ward
        CorsairShot
        BloodPactWard
        BloodPactRage
        Monster
        WeaponSkill
    --spell.skill
        Hand-to-Hand
        Dagger
        Sword
        Great Sword
        Axe
        Great Axe
        Scythe
        Polearm
        Katana
        Great Katana
        Club
        Staff
        Archery
        Marksmanship
        Throwing
    and spell.action_type == 'Magic' covers all these
    Code:
    --spell.type
        WhiteMagic
        BlackMagic
        SummonerPact
        Ninjutsu
        BardSong
        Geomancy
        BlueMagic
        Trust
    --spell.skill
        Divine Magic
        Healing Magic
        Enhancing Magic
        Enfeebling Magic
        Elemental Magic
        Dark Magic
        Summoning Magic
        Ninjutsu
        Singing
        Blue Magic
    so all of this will be skiped every time if its not a Stratagems under the recast id of 231
    also any rules that you put in pretarget will only run if you use a macro or a chat command but never if you use a menu command which is why i dont use pretarget

    the way i recommend building your rules is

    example (precast):
    Code:
    function precast(spell)
        --put your spell cancle rules first
        if
        elseif
        else
        end
        --put your spell change rules second
        if
        elseif
        else
        end
        --put your gear change rules last
        if
        elseif
        else
        end
    end
    this will allow you to have tighter controls over the order of things that happen
    the reason why this order i recommend is
    1. if you cant cast the spell you want there is no point in changing it or changing gear
    2. if you want to change your spell there is no point to changeing your gear yet

    note:
    if you want to change to another spell if the spell you want can not be used put another section at the top for changing spells if the current spell is not usable
    note 2:
    yes this will make it larger but it is less susceptible to errors in order

    as you can see by this file http://pastebin.com/KHpgXzyh i have spent a lot of time on my spell control and i always put it first in my rules
    with this
    Code:
        if spell_stopper(spell) then
            cancel_spell()
            return
        end

  4. #4564
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Is there anyway to do a add to chat line that has more than one color?

    add_to_chat(039, 'Ctrl+Alt+F: [ 1 Help ] [ 4 Addons ]')

    If i want just [ 4 Addons ] to be color 039 (red for me) and the rest be color 158 (green for me)

    I am thinking it has to be possible somehow cause the addon porter prints out in one line 2 colors.

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

    add_to_chat actually send the text as if it was received in the chat line in ffxi
    so
    1 = say
    4 = tell
    8 = call for help
    121 = system
    etc.
    so no not to chat in the same line as far as i know
    but you should be able to print it in one line
    like this
    print('red = '..('yes'):text_color(255,0,0)..', green '..('yes'):text_color(0,255,0)..', blue = '..('yes'):text_color(0,0,255))
    here is a good place to get the color codes you want
    http://www.rapidtables.com/web/color/RGB_Color.htm

    if you find a color code that looks like this
    #??????
    you can break it out like this
    drop the # you'll have ?????? left
    the first 2 are red
    the second 2 are green
    the third 2 are blue
    ??,??,?? convert them from hex to decimal
    example (blue violet):
    8A,2B,E2 = 138,43,226

    then you have your color code

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

    this is line 137 in the porter addon.

    Code:
    windower.add_to_chat(
                            55,
                            ('slip '..printable_slip_number..'/page '..tostring(slip_page and slip_page or math.ceil(item_position / 16)):lpad('0', 2)..':'):color(259)..' '..
                            item_names[item_id]:color(is_contained and 258 or 261)
                        )
    When you type //porter 11 for example it lists all the items u can store on it. Items u have stored are a different color than ones u dont have on it. but the item name in either case is a different color than the beginning of the line that says what slip and page the item is on. I just cant figure out how to use it for my purposes. Cause of all the porter specific stuff there, Im not sure what parts are just for the add to chat and whats for the addon exactly. I was hoping someone who knows code better than me could spot what could be eliminated from it to just produce a normal add to chat line with more than 1 color if possible. If its not possible though ill just make due how i have been.

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

    Quote Originally Posted by Trumpy View Post
    this is line 137 in the porter addon.

    Code:
    windower.add_to_chat(
                            55,
                            ('slip '..printable_slip_number..'/page '..tostring(slip_page and slip_page or math.ceil(item_position / 16)):lpad('0', 2)..':'):color(259)..' '..
                            item_names[item_id]:color(is_contained and 258 or 261)
                        )
    When you type //porter 11 for example it lists all the items u can store on it. Items u have stored are a different color than ones u dont have on it. but the item name in either case is a different color than the beginning of the line that says what slip and page the item is on. I just cant figure out how to use it for my purposes. Cause of all the porter specific stuff there, Im not sure what parts are just for the add to chat and whats for the addon exactly. I was hoping someone who knows code better than me could spot what could be eliminated from it to just produce a normal add to chat line with more than 1 color if possible. If its not possible though ill just make due how i have been.
    try this (the first 2 should be the same color the last one should be different)
    but you might need to require ('chat') im not sure if this is exposed in gearswap
    windower.add_to_chat(55, 'test1 '..('test2 '):color(55)..''..('test3 '):color(99))

    you could also try this but i dont know if it will work
    windower.add_to_chat(55, 'Channnel color'..('Red '):text_color(255,0,0)..''..('Green '):text_color(0,255,0)..''..('Blue '):text_color(0,0,255))

  8. #4568
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Sweet the first one looks like it will suit my purposes. It printed out "test1 test2 test3" with the first two being blue and the "test3" being white. Thanks so much!

    The second one printed all in blue until it word wrapped (which always turns text white on the excess. at my resolution it starts word wrapping at "255) Blue" near the end)
    "Channnel color\cs(255, 0, 0)Red \cr\cs(0, 255,0)Green \cr\cs(0, 0, 255) Blue \cr"

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

    Quote Originally Posted by Trumpy View Post
    Sweet the first one looks like it will suit my purposes. It printed out "test1 test2 test3" with the first two being blue and the "test3" being white. Thanks so much!

    The second one printed all in blue until it word wrapped (which always turns text white on the excess. at my resolution it starts word wrapping at "255) Blue" near the end)
    "Channnel color\cs(255, 0, 0)Red \cr\cs(0, 255,0)Green \cr\cs(0, 0, 255) Blue \cr"
    ok good but the first one is based on your chat color settings so you will need to figure out what those colors are from 1 to 511 (i think)

    can you try these for me and let mne know if im correct
    windower.add_to_chat(55, 'test1 '.. ('test2 '):color(99,55)..'test3') --(test3 should be the same color as test1)
    windower.add_to_chat(55, 'test1 '.. ('test2 '):color(99)..'test3') --(test3 should be the same color as test2)

    if i am then its
    color(new_color, reset_color)

  10. #4570
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Yea im fine with picking the colors i just needed the know how on how to do multi colors on one line. This will be amazeballs to implement for me... yea I know it doesnt take much for me when i can get something working correctly how i want it! (small victories!)

    Both of your examples came out how you said they would. 1st was test 1 and 3 being the same. and 2nd was test 2 and 3 being the same color.

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

    Quote Originally Posted by Trumpy View Post
    Yea im fine with picking the colors i just needed the know how on how to do multi colors on one line. This will be amazeballs to implement for me... yea I know it doesnt take much for me when i can get something working correctly how i want it! (small victories!)
    just do it like this

    windower.add_to_chat(55, 'this is '..('how'):color(200,55)..' you '..('do'):color(100,55)..'it.')

    if you wanted to do somthing like this
    when test is true it says yes and when false it says no
    with out color changes
    Code:
    test = true
    windower.add_to_chat(55, 'test say = '..(test and 'yes' or 'no')..' your welcome')
    test = false
    windower.add_to_chat(55, 'test say = '..(test and 'yes' or 'no')..' your welcome')
    with color changes
    Code:
    test = true
    windower.add_to_chat(55, 'test say = '..(test and ('yes'):color(200,55) or ('no'):color(100,55))..' your welcome')
    test = false
    windower.add_to_chat(55, 'test say = '..(test and ('yes'):color(200,55) or ('no'):color(100,55))..' your welcome')

  12. #4572
    Relic Shield
    Join Date
    Mar 2007
    Posts
    1,789
    BG Level
    6
    FFXIV Character
    Rehn Valor
    FFXIV Server
    Sargatanas
    FFXI Server
    Ragnarok

    Anyone have a BST lua that doesn't rely on mote's stuff?

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

    Quote Originally Posted by Rehn View Post
    Anyone have a BST lua that doesn't rely on mote's stuff?
    i only know of motes thats finished

    but you can build your own using basic geearswap or you can use my include as well

  14. #4574
    Relic Weapons
    Join Date
    May 2008
    Posts
    327
    BG Level
    4
    FFXI Server
    Bismarck

    Totally new to GS, was wondering if there is a way to swap the same pieces with different augments? Right now i'm just using the equipset macros in game.

  15. #4575
    Relic Horn
    Join Date
    Jul 2005
    Posts
    3,478
    BG Level
    7

    Quote Originally Posted by Bail View Post
    Totally new to GS, was wondering if there is a way to swap the same pieces with different augments? Right now i'm just using the equipset macros in game.
    Yes, you can have as many of the same piece with different augs as you wish and swap them freely

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

    Quote Originally Posted by Bail View Post
    Totally new to GS, was wondering if there is a way to swap the same pieces with different augments? Right now i'm just using the equipset macros in game.
    Quote Originally Posted by Lyramion View Post
    Yes, you can have as many of the same piece with different augs as you wish and swap them freely
    but you need to use the command
    gs export
    to get the correct augs for it tho(its easier then trying to do it manualy)

  17. #4577
    Relic Shield
    Join Date
    Mar 2007
    Posts
    1,789
    BG Level
    6
    FFXIV Character
    Rehn Valor
    FFXIV Server
    Sargatanas
    FFXI Server
    Ragnarok

    Quote Originally Posted by dlsmd View Post
    i only know of motes thats finished

    but you can build your own using basic geearswap or you can use my include as well
    Currently making my own basic one since whenever I look at ones with mote stuff, I have no idea what I'm reading. I guess the issue for me is how to precast in merlin/desultor when doing ready, and then have it put in say MAB gear in time for cursed sphere/fireball?

  18. #4578
    New Spam Forum
    Join Date
    Sep 2013
    Posts
    189
    BG Level
    3
    FFXIV Character
    Hitome Naoki
    FFXIV Server
    Sargatanas
    FFXI Server
    Bismarck

    Edit: Turns out all I needed to do was restart Windower4 after modifying Mote-Mappings.lua. If anyone is having an issue where it won't equip enhancing magic gear, read on. All you have to do is add the following to Mote-Mappings.lua:

    RDM 'Enhancing Magic'
    Spoiler: show

    Code:
    ['Protect']='Enhancing Magic',['Protect II']='Enhancing Magic',['Protect III']='Enhancing Magic',
    	['Protect IV']='Enhancing Magic',['Protect V']='Enhancing Magic',['Shell']='Enhancing Magic',
    	['Shell II']='Enhancing Magic',['Shell III']='Enhancing Magic',['Shell IV']='Enhancing Magic',
    	['Shell V']='Enhancing Magic',['Stoneskin']='Enhancing Magic',['Aquaveil']='Enhancing Magic',
    	['Phalanx']='Enhancing Magic',['Phalanx II']='Enhancing Magic',['Barthunder']='Enhancing Magic',
    	['Barblizzard']='Enhancing Magic',['Barfire']='Enhancing Magic',['Baraero']='Enhancing Magic',
    	['Barstone']='Enhancing Magic',['Barwater']='Enhancing Magic',['Enthunder II']='Enhancing Magic',
    	['Enblizzard II']='Enhancing Magic',['Enfire II']='Enhancing Magic',['Enaero II']='Enhancing Magic',
    	['Enwater II']='Enhancing Magic',['Enstone II']='Enhancing Magic',['Enthunder']='Enhancing Magic',
    	['Enblizzard']='Enhancing Magic',['Enfire']='Enhancing Magic',['Enaero']='Enhancing Magic',
    	['Enwater']='Enhancing Magic',['Enstone']='Enhancing Magic',['Barthundra']='Enhancing Magic',
    	['Barblizzara']='Enhancing Magic',['Barfira']='Enhancing Magic',['Baraera']='Enhancing Magic',
    	['Barwatera']='Enhancing Magic',['Barstonra']='Enhancing Magic',['Sneak']='Enhancing Magic',
    	['Invisible']='Enhancing Magic',['Deodorize']='Enhancing Magic',['Temper']='Enhancing Magic',
    	['Barsleep']='Enhancing Magic',['Barparalyze']='Enhancing Magic',['Barsilence']='Enhancing Magic',
    	['Barpetrify']='Enhancing Magic',['Baramnesia']='Enhancing Magic',['Blaze Spikes']='Enhancing Magic',
    	['Ice Spikes']='Enhancing Magic',['Shock Spikes']='Enhancing Magic'



    Spoiler: show
    Using Motes' RDM file, I came across this section:

    Code:
        sets.midcast['Enhancing Magic'] = {
            head="Atrophy Chapeau +1",neck="Colossus's Torque",
            body="Vitivation Tabard",hands="Atrophy Gloves +1",ring1="Prolix Ring",
            back="Estoqueur's Cape",waist="Olympus Sash",legs="Atrophy Tights",feet="Estoqueur's Houseaux +2"}
    I changed it to fit my current gear. However, whenever I use any enhancing magic, it defaults back to this section:

    Code:
        sets.midcast.FastRecast = {
            head="Atrophy Chapeau +1",ear2="Loquacious Earring",
            body="Vitivation Tabard",hands="Gendewitha Gages",ring1="Prolix Ring",
            back="Swith Cape +1",waist="Witful Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
    Every other school of magic works just fine. I looked in Mote-Mappings.lua to see what is defined under the 'Enhancing Magic' section and it doesn't look like anything is. Tried adding my own spells but didn't have any success.

    Has anyone else run into this issue or have a fix?

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

    Quote Originally Posted by HitomeOfBismarck View Post
    Edit: Turns out all I needed to do was restart Windower4 after modifying Mote-Mappings.lua. If anyone is having an issue where it won't equip enhancing magic gear, read on. All you have to do is add the following to Mote-Mappings.lua:
    you should have only needed to use this command
    lua reolad gearswap

  20. #4580
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Ok so, when trying to use blu's new unbridled learning spell Mighty Guard. with debug mode on it says.

    Unable to execute command. Blue magic must be set to cast that spell (Mighty Guard)
    Entering filtered_action.

    then the usual buff changes due to diffusion, unbridled learning wearing and mighty guard being applied. Its in the resources as far as i can tell. in spell.lua its # 750. So basically it lets it cast but has no gear swappage. Id like my blu relic feet be equipped for it with diffusion. Other than using in game equipsets, how can I make gearswap use my feet during mighty guard's midcast (even if its a work around)?

Page 229 of 302 FirstFirst ... 179 219 227 228 229 230 231 239 279 ... LastLast

Similar Threads

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