Jump to content


Photo

Gearswap, 'reive' status


    12 replies to this topic

    #1 Gukai

    Gukai

      Advanced Member

    • Members
    • PipPipPip
    • 95 posts

      Posted 21 July 2015 - 03:10 AM

      Hi, I'm trying to find gearswap coding for when a player is involved in a reive.  I want to put on the reive-specific but I cannot remember what coding is used or how 'reive' status is defined.

       

      Thank you



      #2 Iryoku

      Iryoku

        Advanced Member

      • Windower Staff
      • 488 posts

        Posted 21 July 2015 - 06:21 AM

        This should work...

        if buffactive['reive mark'] then
            -- equip your gear here
        end
        


        #3 Gukai

        Gukai

          Advanced Member

        • Members
        • PipPipPip
        • 95 posts

          Posted 21 July 2015 - 01:39 PM

          ah, thats right... buffactive, lol... couldnt remember that part, but didnt know what the reive was titled as, thank you very much!



          #4 sdahlka

          sdahlka

            Advanced Member

          • Members
          • PipPipPip
          • 324 posts

            Posted 21 July 2015 - 02:08 PM

            most gearswap info can be found in this file Windower4\addons\GearSwap\beta_examples_and_information\Variables.xlsx

            --this file can be opened with MS Excel or OpenOffice

             

            and buff names and id's can be found in this file Windower4\res\buffs.lua

            -- this file can be read by almost any txt editor



            #5 Gukai

            Gukai

              Advanced Member

            • Members
            • PipPipPip
            • 95 posts

              Posted 21 July 2015 - 03:09 PM

              Thanks!  thats extremely helpful!  It's funny how you get soooo in-tune with it when you're writing for months and months and then you get what you want and simply tweak gear selections for a while and forget some of the simple things!



              #6 sdahlka

              sdahlka

                Advanced Member

              • Members
              • PipPipPip
              • 324 posts

                Posted 21 July 2015 - 09:31 PM

                just so you know there are things not listed in the Variables.xlsx file that you can do

                like (thay are all highly advanced)

                displays (with/with out switches)

                packet reading

                etc.

                if you want to see some of them in action check out my include

                https://github.com/smd111/Gearswap



                #7 ithorien

                ithorien

                  Member

                • Members
                • PipPip
                • 19 posts

                  Posted 06 August 2015 - 09:33 PM

                  This should work...

                  if buffactive['reive mark'] then
                      -- equip your gear here
                  end
                  

                   

                  Still super wet behind the ears; which function should this be wrapped in? Can't seem to get this to work. 



                  #8 sdahlka

                  sdahlka

                    Advanced Member

                  • Members
                  • PipPipPip
                  • 324 posts

                    Posted 07 August 2015 - 12:06 AM

                    it depends oh if you want it to equip gear during precast/midcast or change a setting when your buffs change



                    #9 ithorien

                    ithorien

                      Member

                    • Members
                    • PipPip
                    • 19 posts

                      Posted 07 August 2015 - 04:42 PM

                      it depends oh if you want it to equip gear during precast/midcast or change a setting when your buffs change

                       

                      Ideally I'd like it to auto equip that piece of gear as soon as that Reive buff pops and keep it equipped until it disappears; I'd like to do this on a global per character level as I have a dbox. I tried multiple things but with how inexperienced I am with lua still, I'm not sure what's wrong.



                      #10 sdahlka

                      sdahlka

                        Advanced Member

                      • Members
                      • PipPipPip
                      • 324 posts

                        Posted 07 August 2015 - 04:56 PM

                        put this in buff_change

                         

                        if name == "reive mark" then
                            if gain then
                                equip(reive gearset)
                                disable()--put in the gear slots you want to lock example: "neck","back"
                            else
                                enable()--put in the gear slots you want to unlock example: "neck","back"
                                equip(normal gearset)
                            end
                        end
                         


                        #11 ithorien

                        ithorien

                          Member

                        • Members
                        • PipPip
                        • 19 posts

                          Posted 07 August 2015 - 10:29 PM

                          put this in buff_change

                           

                          if name == "reive mark" then
                              if gain then
                                  equip(reive gearset)
                                  disable()--put in the gear slots you want to lock example: "neck","back"
                              else
                                  enable()--put in the gear slots you want to unlock example: "neck","back"
                                  equip(normal gearset)
                              end
                          end
                           

                           

                          I'll give that a shot, thanks.



                          #12 Gukai

                          Gukai

                            Advanced Member

                          • Members
                          • PipPipPip
                          • 95 posts

                            Posted 27 October 2015 - 08:38 AM

                            I've been so slow to incorporate this, I'm sorry.  I dont have a function buff_change in my luas.  where would it go?

                             

                            my function order is:

                            precast

                            midcast

                            aftercast

                            status_change(new,old)

                            self_command(command)

                             

                            Thanks!



                            #13 Iryoku

                            Iryoku

                              Advanced Member

                            • Windower Staff
                            • 488 posts

                              Posted 27 October 2015 - 04:33 PM

                              It doesn't matter which order functions are defined in... usually... There are some cases where things need to be defined in a certain order, mostly involving closures, but if you don't know what a closure is, then it probably doesn't matter for your situation. Put it wherever you think makes the most sense.






                              1 user(s) are reading this topic

                              0 members, 1 guests, 0 anonymous users