i want to write a automacro being triggered by some items in my inventory.
the condition should be 25/(@invamount(x)+@invamount(y)) > 1
i tried something like that
Code: Select all
sub thiefSub {
if (25/(@invamount(x)+@invamount(y)) > 1 {
return 1;
}
else {
return 0;
}
}
automacro thiefcon {
eval main::thiefSub()
run-once 1
call {
how to solve this