Skill on Location macro

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

Moderator: Moderators

zexel0014
Human
Human
Posts: 43
Joined: 27 Oct 2011, 20:44
Noob?: No

Skill on Location macro

#1 Post by zexel0014 »

can anyone tell me what might be wrong with this..

Code: Select all

automacro pakyuka {
	console /\[dist=(.*)\] (.*) \((\d+)\): (.*)(Red Hieroglyphs)(.*)$/
	exclusive 1
	call {
		$mx = @eval ($::players{$::playersID[$ID]}->{pos_to}{x})
		$my = @eval ($::players{$::playersID[$ID]}->{pos_to}{y})
		do sl 27 $mx-- $my-- 3
	}
}
the error is
[macro] pakyuka.call error: error in 0: @eval
($::players{$::playersID[ID]}->{pos_to}) failed
Daedalus
Plain Yogurt
Plain Yogurt
Posts: 73
Joined: 09 Nov 2010, 16:20
Noob?: No

Re: Skill on Location macro

#2 Post by Daedalus »

Code: Select all

$mx = @eval($::char->{pos}{x})
$my = @eval($::char->{pos}{y})
if you want your charakters position use this.