Based on assumption for lack of information
Ok, this is a modified version of my Monk Bug macro
I set your grav, zwarp, Nauto before the main loop (causing the program to only do it once) and then the main loop first checks for GM, and your set amount of PC's in the zone via the parameter at the start of the mac /mac Gkauto 1 (just yourself)
/mac Gkauto 2 (you and a box)
Etc depending on how many PC's you are willing to risk being in the zone with you.
Then it passes to the TrgtNPC Sub which tells it to target the nearest NPC not on the alert list. The alert list is explained in the coding of the Macro, so open it with a text editor and read anything with a | before it. IE:
|This is the code used to target the NPC nearest you that is not on the alert list. make a hotkey
|/alert add 3 id ${Target.ID}
|Target the NPC you want to add to the do not target list IE: Quest NPC, NPC's you can't attack etc and click your hotkey
Try it out. Give me the errors. This is going to kill really fast depending on your ability, its a really small macro which makes GM and PC checks so frequent it will turn off the GK plugin using before the other character is in the physically in the zone and able to move. GM's don't need to be in the zone with you to kick, suspend, or ban you, so use at your own risk.