Macro support for greed

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

saruesley
Noob
Noob
Posts: 2
Joined: 11 Mar 2010, 09:20
Noob?: No
Location: Brasil

Macro support for greed

#1 Post by saruesley »

Well I'm trying to make my character use the skill greed and soon after he teleport, else is going some mistakes in time to move closer to the items.
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
}
errors that appear in the console in the first macro are as follows:

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#>
macro and the second is:

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
}
}
errors that appear in the console in the second macro are as follows:

Code: Select all

Syntax error in function 'sl' (Use Skill on Location)
Usage: sl <skill #> <x> <y> [level]
I was told that the macro regexp is wrong, but I can not find the error, if someone could help me I thank you!
c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: Macro support for greed

#2 Post by c4c1n6kr3m1 »

not sure about regexp but sl for greed???
do ss 1013 ???