Random walk when no monsters around

International

Moderator: Moderators

Jonathandp08
Noob
Noob
Posts: 13
Joined: 13 Jun 2008, 23:00
Noob?: Yes

Random walk when no monsters around

#1 Post by Jonathandp08 »

Good morming everyone.

I want to know if its possible to the bot do a random walk only when no monsters around. I'm trying to bot with my alchemist and its homunculus.

Thank you for your time in advance.
BonScott
Developers
Developers
Posts: 32
Joined: 08 Aug 2008, 15:35
Noob?: No

Re: Random walk when no monsters around

#2 Post by BonScott »

Macros?

Code: Select all

automacro walk {
	monster Zombie,Andre Egg
	run-once 1
	call {
	do conf route_randomWalk 0
	release walk
}

automacro dontWalk {
	monster not Zombie,Andre Egg
	run-once 1
	call {
	do conf route_randomWalk 1
	release dontWalk
}
for um openKore more powerfull!
Jonathandp08
Noob
Noob
Posts: 13
Joined: 13 Jun 2008, 23:00
Noob?: Yes

Re: Random walk when no monsters around

#3 Post by Jonathandp08 »

Omg, I didn't think on that. I do macros but I didn't think on that macro xD.

Thank you so much.
yakuzi
Noob
Noob
Posts: 2
Joined: 09 Dec 2012, 18:41
Noob?: No

Re: Random walk when no monsters around

#4 Post by yakuzi »

dont work for me ><
flashdbest
Plain Yogurt
Plain Yogurt
Posts: 61
Joined: 12 Nov 2012, 09:22
Noob?: Yes

Re: Random walk when no monsters around

#5 Post by flashdbest »

yakuzi wrote:dont work for me ><

Code: Select all


automacro walk {
   monster Zombie,Andre Egg  //<--- [b]Change this part accordingly[/b]
   run-once 1
   call {
   do conf route_randomWalk 0
   release walk
}

automacro dontWalk {
   monster not Zombie,Andre Egg //<--- [b]Change this part accordingly[/b]
   run-once 1
   call {
   do conf route_randomWalk 1
   release dontWalk
}

make sure you specify the monsters in the map
yakuzi
Noob
Noob
Posts: 2
Joined: 09 Dec 2012, 18:41
Noob?: No

Re: Random walk when no monsters around

#6 Post by yakuzi »

Code: Select all

automacro walk {
	monster Rocker,Savage Babe
	run-once 1
	call {
	do conf route_randomWalk 0
	release walk
}

automacro dontWalk {
	monster not Rocker,Savage Babe
	run-once 1
	call {
	do conf route_randomWalk 1
	release dontWalk
}




control\macros.txt: ignoring 'automacro dontWalk {' (munch, munch, unknown automacro keyword)
error loading control\macros.txt.
flashdbest
Plain Yogurt
Plain Yogurt
Posts: 61
Joined: 12 Nov 2012, 09:22
Noob?: Yes

Re: Random walk when no monsters around

#7 Post by flashdbest »

Code: Select all


automacro walk {
   monster Rocker,Savage Babe
   run-once 1
   call {
   do conf route_randomWalk 0
   release walk
   } <----- forgot one bracket. 
}

automacro dontWalk {
   monster not Rocker,Savage Babe
   run-once 1
   call {
   do conf route_randomWalk 1
   release dontWalk
   }  <----- forgot one bracket. 
}