Mob Distance and Combat Flag

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
S3v3n11
Posts: 91
Joined: Thu Jul 09, 2009 7:37 am

Mob Distance and Combat Flag

#1 Post by S3v3n11 » Tue Dec 07, 2010 8:31 am

What variables can I use to check the distance of my current target ( mob) and whether or not I am in combat?

Thanks!

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Mob Distance and Combat Flag

#2 Post by jduartedj » Tue Dec 07, 2010 8:55 am

S3v3n11 wrote:What variables can I use to check the distance of my current target ( mob) and whether or not I am in combat?

Thanks!
the is a distance function, it takes your x,z coordinates and targets,x,z coordinates. So use player.X,player.Z target.X, target.Z

playet.Battling should be the "in Combat" flag
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests