GM/player detect
-
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
GM/player detect
Is it possible to have the bot stop if there are players near? with gm detect
Re: GM/player detect
Code: Select all
if CountPlayers(nil,true,true) > 0 then
print("1 or more players found. Don't bot. Wait")
repeat
yrest(10000)
until 1 > CountPlayers(nil,true,true)
end
AlterEgo95
Re: GM/player detect
He should probably have mentioned that the CountPlayer function is from a userfunction.
http://www.solarstrike.net/phpBB3/viewt ... 781#p36781
http://www.solarstrike.net/phpBB3/viewt ... 781#p36781
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
Re: GM/player detect
works thank you Alter and rock
-
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
Re: GM/player detect
im back
Ok
how do u have it check for players near the bot but ignore the ones i tell him 2 ignore? Also how do u have it look for people in a certain radius?
Thanks for the quick feedback
Ok
how do u have it check for players near the bot but ignore the ones i tell him 2 ignore? Also how do u have it look for people in a certain radius?
Thanks for the quick feedback
Re: GM/player detect
- CountPlayers(inrange, printnames, ignoreFriends)
Set 'inrange' to the range you want to use.
Set 'printnames' to true if you want it to print the names when the function runs.
Set 'ignorefriends' to true if you want it to ignore names in the player friends list. That's the bot friend list, not the in game friends list.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Who is online
Users browsing this forum: Ahrefs [Bot] and 6 guests