Avoid All Except Certain Players

International

Moderator: Moderators

Message
Author
agentjohnsmith
Noob
Noob
Posts: 1
Joined: 08 Jul 2010, 19:19
Noob?: Yes

Avoid All Except Certain Players

#1 Post by agentjohnsmith »

Hi there,

I have a question that I could not find an answer to. Is it possible to make your bot avoid everyone except certain players? Basically, the map I'm on has exactly one other bot on it. Obviously they're not a threat to me. However, I'd like the bot to disconnect for an extended period of time when other players happen to come to the map and near my bot. Is it possible to create whitelist for certain players while disconnecting from all others?

Thanks.

hallalujaz
Plain Yogurt
Plain Yogurt
Posts: 56
Joined: 23 Jun 2009, 00:17
Noob?: Yes

Re: Avoid All Except Certain Players

#2 Post by hallalujaz »

oh my god are we getting parranoid ;)

gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Avoid All Except Certain Players

#3 Post by gamenikko »

Code: Select all

automacro whenSomeoneIsNear {
	player /^(?!EXCEPTION$)(.*)$/
	call {
	...
	...
	...
	}
}
just edit the macro,

and the (?!EXCEPTION$) with the name of the character yu want to avoid.

you can add many exceptions if you like.
Just like old times.

jozon
Noob
Noob
Posts: 2
Joined: 13 Oct 2008, 05:23
Noob?: No

Re: Avoid All Except Certain Players

#4 Post by jozon »

gamenikko wrote:

Code: Select all

automacro whenSomeoneIsNear {
	player /^(?!EXCEPTION$)(.*)$/
	call {
	...
	...
	...
	}
}
just edit the macro,

and the (?!EXCEPTION$) with the name of the character yu want to avoid.

you can add many exceptions if you like.
do you mind explaining to me how to make this work? :o

dilminha
Noob
Noob
Posts: 18
Joined: 13 Mar 2017, 12:01
Noob?: No

Re: Avoid All Except Certain Players

#5 Post by dilminha »

sorry for ress this topic

but I got just one question: is there any problem if I add a lot of exceptions ? like 20 exceptions ? I mean the code will run 'slowly' ?

EDIT --

It worked BUT nor worked well :)

Code: Select all

automacro avoidallexcep {

	 player /^(?!EXCEPTION$)(?!lllIIlIloIIllIlIIIlIllI$)(?!olloIIlIllIllIIIl$)(?!llIIlIIIloIIlIIlIIIl$)(?!llIIlIlIItIIlIllIIllIIl$)(?!lll0ll0IIlIllIIl$)(?!lll9IIllIIlIIllIiIl$)(?!98sllIIlIIlIIllIIllII$)(.*)$/
   call {
  
		do tele
		log $.lastPlayerName

   }
   timeout 1
}

my bots have weird names to avoid ban

but it teleport to all players because it doesn't wait the name player to be loaded, it warp when it's still unknown

it's says

[macro log] Unknown #363243253

and others unknown too

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: Avoid All Except Certain Players

#6 Post by Mortimal »

Why not?

Code: Select all

player /^(?!EXCEPTION$)(?!lllIIlIloIIllIlIIIlIllI$)(?!olloIIlIllIllIIIl$)(?!llIIlIIIloIIlIIlIIIl$)(?!llIIlIlIItIIlIllIIllIIl$)(?!lll0ll0IIlIllIIl$)(?!lll9IIllIIlIIllIiIl$)(?!98sllIIlIIlIIllIIllII$)(?!Unknown\s\#\d*$)(.*)$/
So it wont trigger on Unknown players and when nicks are loaded will...
Please use pin function for uploading your file contents!

Niodan
Plain Yogurt
Plain Yogurt
Posts: 83
Joined: 03 Apr 2017, 00:19
Noob?: No

Re: Avoid All Except Certain Players

#7 Post by Niodan »

I dont recommend writing this to macro.

Openkore can not run two macros at a time, so therefore
If you have a anti-GM Macro, and also this "Player detecting" macro, most likely its your "Player detecting" macro will have the priority of running first, then this will cause your anti-GM macro become useless and your character will most likely teleport right away when you see a GM, then you will get ban :(

However, if you find a way to set the anti-GM macro to run first, it is possible but everytime when your openkore run, your bot has to go through anti-GM macro first then check if there are any GMs, then run the "Player Detecting" macro, this will likely slow down your bot's efficiency and cost a little bit more on your CPU.

Niodan
Plain Yogurt
Plain Yogurt
Posts: 83
Joined: 03 Apr 2017, 00:19
Noob?: No

Re: Avoid All Except Certain Players

#8 Post by Niodan »

Just so you know.
You wont get ban when a player report you with screenshot or video.
You will only get ban when an Actual GM Caught you when you're botting.

This is how i think.

Im botting, and someone reported me.
Im like, Hmmmm, So?
Doesnt mean i dont talk to that player or ignore everyone makes me a bot,
as long as I response when the GM comes, Im not botting, Im real player.

dilminha
Noob
Noob
Posts: 18
Joined: 13 Mar 2017, 12:01
Noob?: No

Re: Avoid All Except Certain Players

#9 Post by dilminha »

Mortimal wrote:Why not?

Code: Select all

player /^(?!EXCEPTION$)(?!lllIIlIloIIllIlIIIlIllI$)(?!olloIIlIllIllIIIl$)(?!llIIlIIIloIIlIIlIIIl$)(?!llIIlIlIItIIlIllIIllIIl$)(?!lll0ll0IIlIllIIl$)(?!lll9IIllIIlIIllIiIl$)(?!98sllIIlIIlIIllIIllII$)(?!Unknown\s\#\d*$)(.*)$/
So it wont trigger on Unknown players and when nicks are loaded will...
well, my bots are at a PVP map (Gold Room) there's some people who go there only to kill bots, maybe it's dangerous to not run if their name are unknown because they can be one of these peoples that kill bots

but thanks for ur reply :)

Post Reply