Detection

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

exuviae
decaying skeleton
decaying skeleton
Posts: 9
Joined: Wed Feb 11, 2004 8:12 pm

Detection

Post by exuviae » Wed Feb 11, 2004 8:39 pm

First let me say that i never run a script and walk away so no AFK macroing here, however I do have some questions concerning some macro's i have created. First, I switch targets frequently as i bot a cleric in my groups that repeatedly targets a group member and checks hitpoints and decides whether to heal or not. When i switch targets, is that something that EQ gets notifed of? I am assuming that the $gm command is pure evil as it will basically do a /who gm which if repeated 1000 times can easily grab attention so i never do the $gm command. Lastly I tried the $spawn command to get health without targetting, but it always failed My command looked something like this

/for tempvar 0 to @GroupMax
/if n $spawn(@tempvar,hp,pct)<45 {
| left out for brevity
}

however the if command always fails even when the condition is true, i was trying this to not have to target the mob, and thus hopefully further shield myself from detection.

Exuvie

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Wed Feb 11, 2004 8:45 pm

Take a look at the genbot code in bothealer.inc.

If you will only be healing people that are in group you should be fine using the $spawn method. The reason that genbot targets players is because it has the functionality to heal people outside of group. The server doesn't always update health percentages unless you target the player/mob (when the player is outside of your group).

Using the $gm check I don't believe does any server side communication. But... it isn't very reliable either.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Wed Feb 11, 2004 8:48 pm

Also in your code, did you have a:

/next tempvar

in there?

take a look at the genbot code, you should get the idea.