Get distance of monster or player

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Liposo
Plain Yogurt
Plain Yogurt
Posts: 59
Joined: 20 May 2013, 02:00
Noob?: No

Get distance of monster or player

#1 Post by Liposo »

Hello

Can you give example how to use

Code: Select all

@eval
to find distance between myself and monsters/players using their ID?
User avatar
4epT
Developers
Developers
Posts: 627
Joined: 30 Apr 2008, 14:17
Noob?: No
Discord: ya4ept#8494
Location: Moskow (Russia)

Re: Get distance of monster or player

#2 Post by 4epT »

example:

Code: Select all

automacro distance {
 player /.*/
 timeout 5
 call {
 log $.lastPlayerName - $.lastPlayerPos
}
}
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image