-- starting combat: send pet and put hunter's mark:
/cast Hunter's Mark
/script PetAttack()
-- below are arcane/mongoose serpent/raptor macros. If enemy is close use melee, otherwise ranged.
/run if CheckInteractDistance("target", 3) then CastSpellByName('Mongoose Bite') else CastSpellByName ...