Jump to content


Photo

Gearswap - Using Nation Aketons in relevant zones?

gearswap

    2 replies to this topic

    #1 Forkmaster

    Forkmaster

      Newbie

    • Members
    • Pip
    • 1 posts

      Posted 10 June 2014 - 09:26 PM

      My only high-level job right now is DRG, so my idle sets usually have Wyrm Mail +2 so I never have to worry about switching into it for the subjob trait bonus on zones. Is there a way to specify that I wear my nation's aketon (Sandy) whenever I'm in Sandy town zones?



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 11 June 2014 - 03:33 AM

      This is a way to check for zone:

       

      res = require('resources')
       
      function aftercast(spell) -- Or whatever
          local info = windower.ffxi.get_info()
          local zone = res.zones[info.zone].name
          if zone:match('San d\'Oria') and not zone:match('Dynamis') then
              -- Equip the aketon here
          end
      end


      #3 sdahlka

      sdahlka

        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 11 June 2014 - 03:03 PM

        This is a way to check for zone:

         

         

        res = require('resources')
         
        function aftercast(spell) -- Or whatever
            local info = windower.ffxi.get_info()
            local zone = res.zones[info.zone].name
            if zone:match('San d\'Oria') and not zone:match('Dynamis') then
                -- Equip the aketon here
            end
        end

        this should be just fine correct with no extra suff

         

        function aftercast (spell)
           if world.area:contains("San d'Oria") and not world.area:contains('Dynamis') then
               -- Equip the aketon here
           end
        end
         






        Also tagged with one or more of these keywords: gearswap

        1 user(s) are reading this topic

        0 members, 1 guests, 0 anonymous users