syne13
14.06.2011, 18:46
в общем написал вот такой макрос но он не хочет проверят сп и уж варпаться на локу точно не желает. познаний ещё не так много поэтому прошу помочь исправить ошибки.
automacro loc {
location not geffen
location not yuno_fild06
timeout 2
release warp
}
automacro lowsp {
location not yuno
location not xmas
location not rachel
sp <=22
timeout 2
call heal
}
macro heal {
pause 1
#do is @inventory(Butterfly Wing)
do tele
pause 2
do move 152 181
do talknpc 149 181 c r0 c n
release warp
}
automacro warp {
map <mapname>
inventory "Blue Gemstone" > 0
call {
do ai manual
pause 2
do move 152 181
$152 = @eval($::char->{pos}{x})
$181 = @eval($::char->{pos}{y})
do sl 27 @eval($x + @rand(-2, 2)) @eval($y + @rand(-3,-1))
pause 2
do warp 1
pause 2
release gotowarp
}
}
automacro gotowarp {
location yuno 152 181
call {
pause 1
do move @eval($.lastMatch1) @eval($.lastMatch2)
pause 1
do ai on
}
}
automacro loc {
location not geffen
location not yuno_fild06
timeout 2
release warp
}
automacro lowsp {
location not yuno
location not xmas
location not rachel
sp <=22
timeout 2
call heal
}
macro heal {
pause 1
#do is @inventory(Butterfly Wing)
do tele
pause 2
do move 152 181
do talknpc 149 181 c r0 c n
release warp
}
automacro warp {
map <mapname>
inventory "Blue Gemstone" > 0
call {
do ai manual
pause 2
do move 152 181
$152 = @eval($::char->{pos}{x})
$181 = @eval($::char->{pos}{y})
do sl 27 @eval($x + @rand(-2, 2)) @eval($y + @rand(-3,-1))
pause 2
do warp 1
pause 2
release gotowarp
}
}
automacro gotowarp {
location yuno 152 181
call {
pause 1
do move @eval($.lastMatch1) @eval($.lastMatch2)
pause 1
do ai on
}
}