Jump to content


Photo

Equipping Councilor's garb on zone change with gearswap


Best Answer Arcon , 15 November 2014 - 04:21 PM

windower.register_event('zone change', function()
    --[[Code to trigger idle set activation here]]
end)
Go to the full post


    5 replies to this topic

    #1 Kenshi

    Kenshi

      Advanced Member

    • Members
    • PipPipPip
    • 334 posts

      Posted 14 November 2014 - 09:24 PM

      Is there any function to equip the Councilor's garb after zoning into adoulin with gearswap?

       

      Will windower.register_event(zone change) work?



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 15 November 2014 - 10:44 AM

      It will, although a more thorough approach would be to incorporate into your idle set depending on the zone. Like, go to wherever you equip your idle set and there add a check for the zone, if in Adoulin equip the Councilor's Garb afterwards.



      #3 Kenshi

      Kenshi

        Advanced Member

      • Members
      • PipPipPip
      • 334 posts

        Posted 15 November 2014 - 01:57 PM

        I already added a check on aftercast and status change idle sets, but I still need to manually update. What Im looking for is a way of updating idle set automatically after zoning.



        #4 Arcon

        Arcon

          Advanced Member

        • Windower Staff
        • 1189 posts
        • LocationMunich, Germany

        Posted 15 November 2014 - 04:21 PM   Best Answer

        windower.register_event('zone change', function()
            --[[Code to trigger idle set activation here]]
        end)


        #5 Kenshi

        Kenshi

          Advanced Member

        • Members
        • PipPipPip
        • 334 posts

          Posted 15 November 2014 - 05:23 PM

          Working perfectly, thx so much.



          #6 johnblk73

          johnblk73

            Newbie

          • Members
          • Pip
          • 4 posts

            Posted 20 September 2017 - 01:58 PM

            I am not sure what to do with this but I tried doing it like this and it did not work can someone show me how?

             

             

            windower.register_event('zone change', function()
                if areas.AdoulinCity:contains(world.area) then
                idleSet = set_combine(idleSet, {body="Councilor's Garb"})
                end
             
                return idleSet
            end)





            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users