I tried to use some more variables in the macro fails.
I tried to use two more macros with some different variables.
Here they are:
Code: Select all
automacro looting {
run-once 1
exclusive 1
console /(Item Exists: (.*) \((\d+)\) x \d+)|(Item apareceu:)|(Item Apareceu:)/i
call cata
}
macro cata {
$itemName = $.lastMatch1
$index = $.lastMatch2
do move $index
do ss 1013 1
do take $index
do eval warning "Name of item : $itemName\nIndex = $index\n";
do tele
release looting
}
Code: Select all
Erro de sintaxe na função 'move' (Mover o Personagem)
Modo de usar: move <x> <y> [<map>]
move <mapa> [<x> <y>]
move <portal#>
Code: Select all
automacro ganancia {
exclusive 1
console /Item Appeared: (.*) \(.+\) x .+ \( *(\d+), *(\d+)\)/i
call {
$coords = $.lastMatch2 $.lastMatch3
do move $coords
do sl 1013 $coords
do tele
release ganancia
}
}
Code: Select all
Syntax error in function 'sl' (Use Skill on Location)
Usage: sl <skill #> <x> <y> [level]