problem triggering by player's distance

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

Moderator: Moderators

c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

problem triggering by player's distance

#1 Post by c4c1n6kr3m1 »

Code: Select all

		if ($dist > 0) {
			return (distance($char->{pos_to}, $player->{pos_to}) <= $dist)?1:0
		}
i think it should be under .varstack bla bla bla because if it trigger by distance, variables $.lastPlayerBinId and other will empty.
and about BinId, from wiki
$.lastPlayerBinId - binID/index of the last player that triggered the automacro.
while
$.lastMonsterID - the index of the triggered monster.
$.lastMonsterBinID - the ID of the triggered monster.
i think it should be the same for index ( i'm confuse without wiki ). sorry for bad english
Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: problem triggering by player's distance

#2 Post by Kaspy »

Fixed!
Thanks for the warning
Image