• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Face a location?

    Discussion in 'Archives' started by purpledrankk, Jul 6, 2015.

    1. purpledrankk

      purpledrankk New Member

      Joined:
      Oct 11, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      1
      Is there a way to make the bot face a location without using interact?

      I need the bot to face a certain location so i can use a movement cooldown to clear a gap in Shiphand: Infestation... I've tried using interact but the bot re-positions itself and messes the angle up.
       
    2. Deathdisguise

      Deathdisguise Community Developer

      Joined:
      Mar 7, 2015
      Messages:
      678
      Likes Received:
      6
      Trophy Points:
      0
      Code:
      Buddy.Wildstar.Game.MovementManager.Face(Buddy.Common.Math.Vector3 position)
      
      //Example usage:
      MovementManager.Face(new Vector3(123, 123, 123));
      
      // Potential ProfileBot usage (needs testing):
      <If Condition="Buddy.Wildstar.Game.MovementManager.Face(new Vector3(123, 123, 123))" />
      There's also a Code tag out there, but I've never been outgoing enough to read the definition and use it. =P
       
    3. purpledrankk

      purpledrankk New Member

      Joined:
      Oct 11, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      1
      Cant seem to find anything about a code tag... unless you're talking about the lua tag.

      I'm trying to do something like this;

      Code:
      <If Condition="Buddy.PublicQuest.GetObjectiveProgress('Tag valuable cargo for retrieval') == 4 and Buddy.PublicQuest.CanInteract(69877, -120.626, -498.809784, 180.928, 10)">
      
      	<MoveTo X="-115.01696" Y="-510.248749" Z="156.515" MapId="1232" RunOnce="true" />
      	<Jump FromX="-128.14949" FromY="-510.191" FromZ="163.864578" ToX="-131.342834" ToY="-505.178253" ToZ="165.169708" MapId="1232" DoubleJump="true" />
      	<MoveTo X="-137.048737" Y="-499.2453" Z="170.550613" MapId="1232" RunOnce="true" />
      	<Code="MovementManager.Face(new Vector3(-120.626, -498.809784, 180.928))" />  <!-- Face a direction or object -->
      	<InputAction Action="LimitedActionSet8" />
      
      </If>
      
      Obviously that code won't work, but its essentially what I would like it to do.
       
      Last edited: Jul 6, 2015
    4. Deathdisguise

      Deathdisguise Community Developer

      Joined:
      Mar 7, 2015
      Messages:
      678
      Likes Received:
      6
      Trophy Points:
      0
      The reason why I suggested the closed IfTag is that the Condition will execute code as well, and while it may look ugly, it does effectively work!

      The Code tag was something like

      <Execute PythonCode="" />, I'm away from my workstation so I can't check the reference for you. :(
       

    Share This Page