Code: Select all
if ($dist > 0) {
return (distance($char->{pos_to}, $player->{pos_to}) <= $dist)?1:0
}
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