Put this in your main loop:
So it will look something like:
Next, add this where your subs are:
Remember you can have your character do anything after finding a player. I had mine run to my druid who would then teleport me (I can post this code if you guys like), or you can have it /gate and then camp. Just add whatever commands you like after the "/echo player nearby" it's very easy.
If you are powerleveling players, you will want to decide which players you do NOT want to set off the alert. You can either do this manually by typing
"/alert add 2 pc playername"
before you run the macro, or if you have a lot of people you don't want to trigger the alert (for example, you're powerleveling your entire guild), you can make a seperate macro to do it for you like this:
and run that BEFORE you run your other macro.
Rich (BB code):
/call playercheck
So it will look something like:
Rich (BB code):
:Loop
/doevents
/call playercheck
/call GMcheck
/if (${PauseFlag}==1) {
/delay 1
/doevents AddAvoid
/doevents RemoveAvoid
/goto :Loop
Next, add this where your subs are:
Rich (BB code):
Sub playercheck
/if (${Spawn[pc noalert 2 radius 300].ID}) {
/echo player nearby
/g let's get outta here
/keypress up
/delay 2m
/say I have to go, my dog is on fire.
/sit
/camp desk
/unload
/end
}
/return
Remember you can have your character do anything after finding a player. I had mine run to my druid who would then teleport me (I can post this code if you guys like), or you can have it /gate and then camp. Just add whatever commands you like after the "/echo player nearby" it's very easy.
If you are powerleveling players, you will want to decide which players you do NOT want to set off the alert. You can either do this manually by typing
"/alert add 2 pc playername"
before you run the macro, or if you have a lot of people you don't want to trigger the alert (for example, you're powerleveling your entire guild), you can make a seperate macro to do it for you like this:
Rich (BB code):
|alert.mac
|RUN THIS FIRST
|list of players to NOT run away from
|Using alert 2 because alert 1 is used by many chant macros
Sub Main
/alert add 2 pc furor
/alert add 2 pc thott
/alert add 2 pc siddin
/alert add 2 pc infernal
/end
/return
and run that BEFORE you run your other macro.

