GM/player detect

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
BeyondNames
Posts: 104
Joined: Thu Jun 27, 2013 7:39 pm

GM/player detect

#1 Post by BeyondNames » Sat Aug 03, 2013 3:24 pm

Is it possible to have the bot stop if there are players near? with gm detect

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: GM/player detect

#2 Post by Ego95 » Sat Aug 03, 2013 5:12 pm

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
For example.

AlterEgo95

BeyondNames
Posts: 104
Joined: Thu Jun 27, 2013 7:39 pm

Re: GM/player detect

#3 Post by BeyondNames » Sat Aug 03, 2013 11:07 pm

K thx

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: GM/player detect

#4 Post by rock5 » Sun Aug 04, 2013 12:53 am

He should probably have mentioned that the CountPlayer function is from a userfunction.
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

BeyondNames
Posts: 104
Joined: Thu Jun 27, 2013 7:39 pm

Re: GM/player detect

#5 Post by BeyondNames » Sun Aug 04, 2013 2:06 pm

works thank you Alter and rock

BeyondNames
Posts: 104
Joined: Thu Jun 27, 2013 7:39 pm

Re: GM/player detect

#6 Post by BeyondNames » Sat Aug 10, 2013 2:44 pm

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: GM/player detect

#7 Post by rock5 » Sat Aug 10, 2013 3:15 pm

  • 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

BeyondNames
Posts: 104
Joined: Thu Jun 27, 2013 7:39 pm

Re: GM/player detect

#8 Post by BeyondNames » Mon Aug 12, 2013 1:12 pm

k ty

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests