First problem:
I have the following code but I can never seem to use the $aaa variable for comparison.
Code: Select all
macro testcarat{
$aaa = subQuestActive(13042)
log $aaa
if ($aaa == 1) log success
}
sub subQuestActive{
my ($inputID) = @_;
if ($::questList->{$inputID}->{active} == ""){
return 0
}
return 1;
}
Code: Select all
[macro log] 1
I have tried using return "1" (with double quotes) if ($aaa == "1") but it never worked. I have also tried many other instances to try to get this to work but to no avail. Could someone please help?
Second problem:
I am trying to execute a relog if the console does not show "You are casting Teleport on yourself" after the line "Teleporting due to idle"
This is the code I have:
Code: Select all
automacro unstuck {
console /Teleporting due to idle\n(?!You are casting Teleport on yourself)/
call {
do relog
}
}