Item Search
     
BG-Wiki Search
Page 34 of 302 FirstFirst ... 24 32 33 34 35 36 44 84 ... LastLast
Results 661 to 680 of 6036

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

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

    Quote Originally Posted by Anadrag View Post
    if i dont use status_change (player.tp) gets triggered too early.. and doesn't show tp return.
    So you're using it to artificially delay the add_to_chat command? Why aren't you using the suggestion made yesterday that you use a wait in send_command()?

  2. #662
    Melee Summoner
    Join Date
    Feb 2014
    Posts
    48
    BG Level
    1

    Quote Originally Posted by Motenten View Post
    So you're using it to artificially delay the add_to_chat command? Why aren't you using the suggestion made yesterday that you use a wait in send_command()?
    i know its dumb but i dont like the yellow echo.. lol

  3. #663
    BG Content
    Join Date
    Jul 2007
    Posts
    22,373
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    I'm not sure why what you're describing would even work. Could you possibly post the full code?

  4. #664
    Puppetmaster
    Join Date
    Dec 2012
    Posts
    63
    BG Level
    2

    Quote Originally Posted by Motenten View Post
    You need to be more specific. What are you attempting to do, and under what conditions, and what do you see actually happen?

    sorry for being unclear. none of the toggles from line 328-380 work, for example //gs c C7 doesnt toggle the PDT sets the way its supposed to, the addtochat doesnt show either, i tried editing it a few times but it all ended up with errors or no result.

  5. #665
    Melee Summoner
    Join Date
    Feb 2014
    Posts
    48
    BG Level
    1

    function aftercast(spell,action)
    if spell.type == "WeaponSkill" then
    status_change(player.status)
    add_to_chat(158,''..(player.name)..' uses '..spell.name..'. TP Return: ['..(player.tp)..'%]')
    end

    still shows tp precast once in a while

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

    Quote Originally Posted by Anadrag View Post
    i know its dumb but i dont like the yellow echo.. lol
    Then don't use the /echo?

    Code:
    send_command('wait 0.2;gs c showtp')
    and in self_command(cmd):
    Code:
        if cmd=='showtp' then
            add_to_chat(158, 'TP='..tostring(player.tp))
        end

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

    Quote Originally Posted by backstab View Post
    sorry for being unclear. none of the toggles from line 328-380 work, for example //gs c C7 doesnt toggle the PDT sets the way its supposed to, the addtochat doesnt show either, i tried editing it a few times but it all ended up with errors or no result.
    Since you're not getting anything out of that function, add this line and tell us what shows up:

    Code:
    function self_command(command)
        add_to_chat(123,'self-command: ['..tostring(command)..']')
    Also, everything you do calls status_change() to update your equipment. However that's just a hack because your status isn't actually changing (ie: you're compromising the validity of the event handler function). If you want to run the gear update code from multiple points, create a new function to handle equipping the updated gear and call that function from status_change() and all the other locations that need to use it.

  8. #668
    Salvage Bans
    Join Date
    Jun 2008
    Posts
    936
    BG Level
    5

    Was wondering if anyone could tell me how to lock a piece of gear while a buff is active? Editing my Pld lua I can't for the life of me get Valor breeches/leggings to stay locked on during Invincible/Sentinel. would really appreciate the help

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

    Quote Originally Posted by Botosi View Post
    Was wondering if anyone could tell me how to lock a piece of gear while a buff is active? Editing my Pld lua I can't for the life of me get Valor breeches/leggings to stay locked on during Invincible/Sentinel. would really appreciate the help
    While general assistance can be given on that matter, one must first ask why you are attempting to lock those two pieces for the duration of those abilities. The only effects they have are applied on JA use, and they do not need to be worn for the remainder of the buff duration.

  10. #670
    BG Content
    Join Date
    Jul 2007
    Posts
    22,373
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Quote Originally Posted by Anadrag View Post
    function aftercast(spell,action)
    if spell.type == "WeaponSkill" then
    status_change(player.status)
    add_to_chat(158,''..(player.name)..' uses '..spell.name..'. TP Return: ['..(player.tp)..'%]')
    end

    still shows tp precast once in a while
    Yeah, that's the behavior I'd expect. Calling status_change(player.status) shouldn't delay your add_to_chat at all. The issue is in packet placement. Sometimes SE sends a player update chunk and changes your TP in the same packet that it sends your WS damage chunk. I trigger off the WS damage chunk, but if it's in the same UDP packet then your TP has not been updated in memory yet and so it's not updated in player.vitals.tp. You need to pick one of the options that I said if you want it to work all the time, and either way calling status_change() shouldn't be affecting anything.

    This is an option as well, but it will crash you occasionally when you change jobs or log out until unregister_event is fixed:
    Code:
    windower.register_event('tp change',function(new,old)
        if (old >= 100 and new < 100) and (old-new > 50) then
            windower.add_to_chat(158,'WS TP Return: '..player.tp)
        end
    end)
    Waltzes will trip it up, just ftr.

  11. #671
    Salvage Bans
    Join Date
    Jun 2008
    Posts
    936
    BG Level
    5

    Quote Originally Posted by Motenten View Post
    While general assistance can be given on that matter, one must first ask why you are attempting to lock those two pieces for the duration of those abilities. The only effects they have are applied on JA use, and they do not need to be worn for the remainder of the buff duration.
    Jesus christ I've been trying to figure that out for like 30mins too...I have no idea what was I thinking...even in my old macros I didn't keep them on so I dont know why I thought to keep them on now. Nevermind and thanks lol...

  12. #672
    Melee Summoner
    Join Date
    Feb 2014
    Posts
    48
    BG Level
    1

    ok tyvm guys

  13. #673
    Puppetmaster
    Join Date
    Dec 2012
    Posts
    63
    BG Level
    2

    Quote Originally Posted by Motenten View Post
    Since you're not getting anything out of that function, add this line and tell us what shows up:

    Code:
    function self_command(command)
        add_to_chat(123,'self-command: ['..tostring(command)..']')
    Also, everything you do calls status_change() to update your equipment. However that's just a hack because your status isn't actually changing (ie: you're compromising the validity of the event handler function). If you want to run the gear update code from multiple points, create a new function to handle equipping the updated gear and call that function from status_change() and all the other locations that need to use it.
    adding the line you posted does give me a message of the command i enter, for example if i use //gs c c1 it tells me self-command: [c1].

    about the 2nd part of your answer, the lua isnt mine and i got 0 programing exp >.>, i understand that the status change part is wrong? since my status is not changing so nothing happens? i was hoping its a small fix but i guess the whole toggle part is written wrong?

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

    So you're saying you entered //gs c c1? Did you try entering //gs c C1?

  15. #675
    CoP Dynamis
    Join Date
    Jul 2007
    Posts
    270
    BG Level
    4
    FFXI Server
    Asura

    Quote Originally Posted by Motenten View Post
    It might need to be "Doomed" instead of "Doom". Can't really test it right at the moment, unfortunately.
    A little late, but turns out its "doom", played with buff gain for awhile to figure it out.

  16. #676
    Puppetmaster
    Join Date
    Dec 2012
    Posts
    63
    BG Level
    2

    Quote Originally Posted by Motenten View Post
    So you're saying you entered //gs c c1? Did you try entering //gs c C1?
    Yes i did my bad, meant //gs c C1

    Edit: thanks for the response, the Person who wrote the Gearswap-lua fixed the issue.

  17. #677
    RIDE ARMOR
    Join Date
    Jul 2013
    Posts
    11
    BG Level
    1

    I'm using KBeezie's rng files and can't get it to swap to precast and then ranged attack gear. Very new to Gearswap and Lua so probably missing something simple.

    http://pastebin.com/uvDPP6wM
    http://pastebin.com/ir2B2RKr

    Thanks in advance.

  18. #678
    Relic Weapons
    Join Date
    Sep 2007
    Posts
    377
    BG Level
    4
    FFXIV Character
    Caprese Dionir
    FFXIV Server
    Hyperion
    FFXI Server
    Sylph

    Is there a way to force gearswap to handle switching between a staff and club/shield better? It seems like half the time I end up bare handed with a shield. I guess I need to define my sets a certain way?

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

    You need to do
    Code:
    main="Staff Name",sub=empty

  20. #680
    Relic Weapons
    Join Date
    Sep 2007
    Posts
    377
    BG Level
    4
    FFXIV Character
    Caprese Dionir
    FFXIV Server
    Hyperion
    FFXI Server
    Sylph

    Quote Originally Posted by Byrthnoth View Post
    You need to do
    Code:
    main="Staff Name",sub=empty
    I realized I was actually super derping and had main="Eminent Staff",sub="Genbu's Shield" no wonder I was having so much problem.. I'll change the subs to empty.

Page 34 of 302 FirstFirst ... 24 32 33 34 35 36 44 84 ... LastLast

Similar Threads

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