Jump to content


Photo

Cancel follow?

Dual boxfollow

    3 replies to this topic

    #1 doktorjake

    doktorjake

      Newbie

    • Members
    • Pip
    • 6 posts

      Posted 08 November 2016 - 08:17 AM

      I'm trying to get my character to stop following a target via script. The documentation seems to indicate that the best command to use is windower.ffxi.follow(), which should stop following if no parameters are passed. However, this command doesn't seem to do anything (even if I provide the optional ID to follow. I can't get t to either begin or stop following)

      Is the follow command currently broken? In either case, my end goal is to simply stop my character from following and stand still, is there a way to do that that doesn't involve /sit; /wait 2; /sit?

      Cheers

      #2 trv

      trv

        Advanced Member

      • Members
      • PipPipPip
      • 34 posts

        Posted 08 November 2016 - 11:08 PM

        It functions correctly for me. Were you passing it an id instead of an index, maybe? Calling it with no arguments also stops my character.



        #3 doktorjake

        doktorjake

          Newbie

        • Members
        • Pip
        • 6 posts

          Posted 11 November 2016 - 05:06 AM

          hmm, I think I used get_target_by_index('t'). 

           

          It's good to hear that this is working for someone. Faith restored. I've not got this command to work either following or stopping a manual /follow command from in-game, but I'm also fairly new to Lua, so I'll keep tinkering with it and see if theres something else that I'm doing that's suppressing the command.



          #4 sdahlka

          sdahlka

            Advanced Member

          • Members
          • PipPipPip
          • 324 posts

            Posted 12 November 2016 - 02:14 AM

            you should use

             

            windower.ffxi.follow(windower.ffxi.get_mob_by_target('t').index)
             

             

            if that is really what you want to do






            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users