What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Need help checking my chars position in profile

Wramberg

New Member
Joined
Jun 16, 2012
Messages
78
Reaction score
0
Im trying to check if my char is in the right spot from my profile... I thought i could use

<If condition="ActorExistsAt(4717, 2021.738, 2566.262, 27.1, 1)">

But it doesnt seem to work no matter what i set the radius to.

Edit: 4717 being my actorID ofc found by using dump RActors with db
 
Last edited:
Maybe some better context as to what you're trying to do? Using moveto will get you where you want, you don't need to doublecheck it..
 
What if i dont use moveto to get there ?...
What if i use <UsePower x="2021.738" y="2566.262" z="27.1" questId="1" powerId="121442"/> ?
That wont get me where i want to go except if i spam it an unknown number of times...
So i wanna create a loop that keeps doing it until i get there
 
this should work...
Code:
<While condition="Me.Position.Distance(new Vector3(2021.738f, 2556.262f, 27.1f)) < 5)"/>
	<UsePower x="2021.738" y="2566.262" z="27.1" questId="1" powerId="121442"/>
</While>
That's assuming we have access to those inside profiles, pretty sure we do.
 
Last edited:
Thnx, I have been looking at Me.Position but couldnt exactly figure it out...
DB complains about the "<" ...

Failed to load profile: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 34, position 86.

:/

Edit: If i try using:

<While condition="not (Me.Position.Distance(new Vector3(2021.738f, 2556.262f, 27.1f)) == 0)">
<UsePower x="2021.738" y="2566.262" z="27.1" questId="1" powerId="121442"/>
</While>

The bot shuts down :P
 
Last edited:
you could try "not equals" or "equals" some syntax wants words instead of symbols.
 
I appreciate your help mate but it doesnt seem to work :/ The bot still crashes as soon as it gets to the loop
 
Back
Top