Edited Spawn Tracker

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

Socky

Edited Spawn Tracker

Post by Socky » Thu Nov 06, 2003 3:46 am

I get an error using this code and I cant figure out how to make it work.

the error I get is Calculat encountered unparsable text can anyone help me please.


- autotrack.mac -
|
| Usage: /Macro autotrack "NPC Name"

Sub Main
/declare Var1 local
/declare Time timer
/if n $strlen("@param0")==0 {
/echo Syntax: /macro autotrack <"NPC Name"> ["NPC Name"] ..
/endmacro
}
/alert clear 1
/varset Var1 0
:Loop
/alert add 1 npc "@param$int($l0)"
/if n $strlen("@param$int($calc($l0+1))")==0 /goto :Track
/varadd Var1 1
/goto :Loop
:Track
/doevents
/if $alert(1)==TRUE {
/target alert 1
/face alert 1
/if "@TELLPLAYER"=="NULL" {
/varset Time 1m
:DoAlert
/if n @Time>0 /goto :DoAlert
} else {
/echo $target(name,clean) is still up, get to Killing!
}
/delay 600
/goto :Track
}
/delay 10s
/goto :Track
/return

Socky

ignore

Post by Socky » Thu Nov 06, 2003 4:26 am

You can Ignore this post decided to go about it a different way, please check out the Help Forum for the new method