Want to add a player check to my mac

TheTempest

New member
Joined
Jul 9, 2009
Messages
56
Reaction score
0
Points
0
Age
38
Can anyone please provide the code I can add to my macro that will check for players, and if there is more than 1 (myself) it will pause for 1-2 minutes, then recheck for more than 1 players, etc, etc, until there is only 1 player and then continue on with the mac.

Thank you very much for your time and help.
 
Last edited:
Code:
:loop
/echo -*-*-*Checking for players-*-*-*
/if (${SpawnCount[pc]}>1) {
/echo -*-*-* Others in zone -*-*-*
/echo -*-*-* Pausing *-*-*
/sit
/afk taking a shit
/delay 300s ${SpawnCount[PC]}==1
/goto :loop


This is just a bit of code i took from one of my macro's change as you need
 
Thanks a lot. Does it matter where I put the code?
 
well, to an extent it does, its got to be inside your main loop or in a sub of its own with a call to it inside your main loop. quickly touching up above for use as a sub:
Code:
Sub PcCheck
:Pcloop
/echo -*-*-*Checking for players-*-*-*
/if (${SpawnCount[pc]}>1) {
/echo -*-*-* Others in zone -*-*-*
/echo -*-*-* Pausing *-*-*
/sit
/afk taking a shit
/delay 300s ${SpawnCount[PC]}==1
/goto :Pcloop
}
/return
 
Last edited:
I have never coded a macro in my life so take this thought for what its worth ... ( plus ive drank an entire bottle of my favorate vodka tonight) but if you have a boxed group you may want to add a safe pc list
 
Can anyone please provide the code I can add to my macro that will check for players, and if there is more than 1 (myself) it will pause for 1-2 minutes, then recheck for more than 1 players, etc, etc, until there is only 1 player and then continue on with the mac.

Thank you very much for your time and help.
http://www.mmobugs.com/wiki/index.php/MQ2PCSafety

And add the command /end or "/mqpause on" to the list.

Just another option.

htw
 
Sick.

I was using:

|
Code:
 -------------------------------------------------

Sub CheckForIntruders
   /if (!${Spawn[gm].ID} || (${SpawnCount[pc radius 300 loc ${Ground.Y} ${Ground.X}]}=1)) /return
   /beep
   /beep
   /beep
   /echo Entering Intruder Mode...
   /delay 1s
   /afk ${PCMsg}
   :waitabit
   /delay 5m
   /if (${Spawn[gm].ID} || (${SpawnCount[pc radius 300 loc ${Ground.Y} ${Ground.X}]}>1)) /goto :waitabit
   /afk off
   /delay 1s
/return
| -------------------------------------------------

But the plugin looks pretty good.