i searched all macro pages here but coudlnt find a solution for my actuell problem.
i want to know if the target already died.
the normal output message after a mob died cant help me out.
i searched into the source a bit and found the snippet by finishAttack
Code: Select all
my $args = AI::args;
$timeout{'ai_attack'}{'time'} -= $timeout{'ai_attack'}{'timeout'};
my $ID = $args->{ID};
AI::dequeue;
if ($monsters_old{$ID} && $monsters_old{$ID}{dead}) {
message T("Target died\n"), "ai_attack";that message was spammed into the console.
so my question is how can i use the code above inside a automacro?
i dont know how to use eval
can someone help me out how the code need to be used so that call will trigger mob still alive?

