Code: Select all
#turbo
Sub Main
:HG
/target nopcnear 100 npc "hill giant"
/delay 5
/if n $target(hp,pct)!=100 {
/goto :NextHG
} else {
/Goto :FoundHG
:NextHG
/target nopcnear 200 npc "hill giant"
/delay 5
/if n $target(hp,pct)!=100 {
/goto :NextHGA
} else {
/Goto :FoundHG
:NextHGA
/target nopcnear 300 npc "hill giant"
/delay 5
/if n $target(hp,pct)!=100 {
/goto :NextHGB
} else {
/Goto :FoundHG
:NextHGB
/target nopcnear 400 npc "hill giant"
/delay 5
/if n $target(hp,pct)!=100 {
/goto :NextHGC
} else {
/Goto :FoundHG
:NextHGC
/target nopcnear 500 npc "hill giant"
/delay 5
/if n $target(hp,pct)!=100 {
/goto :NextHGD
} else {
/Goto :FoundHG
:NextHGD
/target nopcnear 700 npc "hill giant"
/delay 5
/if n $target(hp,pct)!=100 {
/goto :NextHGEnd
} else {
/Goto :FoundHG
:NextHGEnd
/goto :HG
:FoundHG
/face
/echo DIST $target(distance) SPEED $target(speed) LEVEL $target(level) ID $target(id)
/endmacro

