AHHHHH!!!.. you really dont want to goto :Labels in other functions
the other reason your macro may not be doing anything is you where waiting 5minutes before the first check was made.
and $searchspawn returns the ID of a mob if it finds one, 0 if not.. you wanted to use subs in your code, here is an example that trys to follow your structure:
Code: Select all
Sub Main
:Loop
/call SpawnCheck Corudoth
/delay 5m
/goto :Loop
/return
sub SpawnCheck(pSpawn)
/declare SpawnID local
/varset SpawnID $searchspawn("@pSpawn",npc)
/if n @SpawnID==0 {
/call CheckFail @SpawnID
} else {
/call CheckPass @SpawnID
}
/return
Sub CheckPass(pID)
/beep
/target id @pID
/echo $target(name)(id: @pID)
/echo $target(x), $target(y), $target(z)
/echo at $time()
/return
Sub CheckFail(pID)
|if you want to do something when check fails, enter here..
/return