need help for Error in Function 'sp' (use skill on player)

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

Moderator: Moderators

jenuskinaks
Noob
Noob
Posts: 4
Joined: 05 Jun 2013, 05:27
Noob?: Yes

need help for Error in Function 'sp' (use skill on player)

#1 Post by jenuskinaks »

How to fix this kind of error please help me. im just newbie on macro's

so this is my macro

Code: Select all

automacro buff {
console /\[dist=(.*)\] (.*) \((\d+)\): (\*Flag\s\d\*|buff)$/
run-once 1
call {
$distance = $.lastMatch1
$namaPlayer = $.lastMatch2
$playerID = $.lastMatch3
$playerguild = @eval (exists $::players{$::playersID[$playerID]}->{guild} ? 

$::players{$::playersID[$playerID]}->{guild}{name} : 'null')
$guild1 = Unleash
$guild2 = Unleash
$player1 = Mikasa Ackerman
$player2 = Mikasa Ackerman
if ($playerguild == $guild1) goto buff
if ($playerguild == $guild2) goto buff
if ($namaPlayer == $player1) goto buff
if ($namaPlayer == $player2) goto buff
goto no
:buff
do sp 34 $playerID 10
do sp 29 $playerID 10
do sp 66 $playerID 5
do sp 361 $playerID 5
goto end 
:no
do e ??
goto end
:end
release buff
}
}   
when im saying "BUFF" the bot says
error in function 'sp' <use skill on player>
player '0' does not exist

help please

Thanks
Maseo84
Noob
Noob
Posts: 17
Joined: 14 Jun 2009, 07:06
Noob?: No

Re: need help for Error in Function 'sp' (use skill on player)

#2 Post by Maseo84 »

Will buff anyone that says buff within range
Edit to fit your guild players

automacro buffStats {
pubm /buff|Buff/) [, 10]
call pubbuffStats
exclusive 1
}

macro pubbuffStats {
do sp 34 $.lastpub
pause .6
do sp 29 $.lastpub
}

-----------------------------------
Numbers are not needed as already defined "$playerID = $.lastMatch3"

:buff
do sp 34 $playerID
do sp 29 $playerID
do sp 66 $playerID
do sp 361 $playerID
Hello World!