|Usage: /mac Petkill <radius> <Main Target> <Main Target PH> <Secondary Target> <Secondary Target PH>
|ex: /mac Petkill 150 Kindle goblin Synge a_
|-this will watch 150 foot radius and attack any NPCs with the following things in their names: Kindle, goblin, Singy, a_
|-beware with "a_" as Sara Conner would be a valid target and get attacked and, as a terminator and former teenage girl, she'll mess you up.
|-If you only wanted to kill bats and skeletons, you could use /macro petkill 150 bat skeleton bat bat (the 2nd and 3rd mention of the name doesn't add anything therefore pointless)
|-if you wanted to kill everything in the 150 radius, /mac petkill 150 npc npc npc npc (see next line)
|-this is still a little WIP - haven't added a check for the length of the variable to verify it's > 2. With the length check, it's possible use /mac petkill 150 THISMOBONLY and it'll wait for that mob to appear instead of having to type the current /mac petkill 150 THISMOBONLY THISMOBONLY THISMOBONLY THISMOBONLY
Sub Main (int PetKillRange, string NamedToFind1, string PHToFind1, string NamedToFind2, string PHToFind2)
/echo Killing ${NamedToFind1}/${PHToFind1} - ${NamedToFind2}/${PHToFind2} in ${PetKillRange} feet
:Loop
/if (${SpawnCount[NPC ${NamedToFind1} radius ${PetKillRange}]}>0 && !${Pet.Target.ID}) {
/pet kill ${NearestSpawn[NPC ${NamedToFind1} radius ${PetKillRange}].CleanName}
/delay 5
}
/if (${SpawnCount[NPC ${PHToFind1} radius ${PetKillRange}]}>0 && !${Pet.Target.ID}) {
/pet kill ${NearestSpawn[NPC ${PHToFind1} radius ${PetKillRange}].CleanName}
/delay 5
}
/if (${SpawnCount[NPC ${NamedToFind2} radius ${PetKillRange}]}>0 && !${Pet.Target.ID}) {
/pet kill ${NearestSpawn[NPC ${NamedToFind2} radius ${PetKillRange}].CleanName}
/delay 5
}
/if (${SpawnCount[NPC ${PHToFind2} radius ${PetKillRange}]}>0 && !${Pet.Target.ID}) {
/pet kill ${NearestSpawn[NPC ${PHToFind2} radius ${PetKillRange}].CleanName}
/delay 5
}
/goto :Loop
/return