[CONTRIB] Macro for random maps

Moderator: Moderators

Message
Author
HerrSchafer
Noob
Noob
Posts: 2
Joined: 20 Jul 2011, 17:28
Noob?: No

[CONTRIB] Macro for random maps

#1 Post by HerrSchafer »

Hi!
First of all, excuse me for my bad english...

The idea of this is to change the lockMap to a random map from a previous list; I made an option to choose easier maps if zeny is below a especific value. This macro is just a part of a greater thing and I want to post it here step by step.

Code: Select all

automacro chgmap {
	priority 2
	exclusive 1
	call mapchk
	timeout 3600
}
macro mapchk {
	$mz = 100000
	if ($.zeny < $mz) goto zlow
	do conf lockMap @random ( "mapa01","mapa02","mapa03" )
	goto fimchmp
	:zlow
	do conf lockMap @random ( "mapa04","mapa05","mapa06" )
	:fimchmp
	log ----- lockMap was set to @config (lockMap) -----
}
The time was set to 1 hour (timeout 3600). I've choosed to made 2 codes because other macros of my set calls the mapchk routine; the minimal amount of zeny is defined by $mz as 100k and if bot has less than that, it will choose between maps 4~6 (wich are easier maps, to make zeny); if bot has more than that, it wil choose between maps 1~3 (wich are harder maps). You can put as many maps as you want in both @random functions, since they are between quotes ( "" ) and comma separated ( , ).

Nice up and Let's BöT!

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: [CONTRIB] Macro for random maps

#2 Post by help_us »

btw, wht this macro use for? hunt gold?
Image
Image

HerrSchafer
Noob
Noob
Posts: 2
Joined: 20 Jul 2011, 17:28
Noob?: No

Re: [CONTRIB] Macro for random maps

#3 Post by HerrSchafer »

I use this to switch the lockMap in the config file; so the bot do not stay all the time in a single map. I think it's useful for gather items in more than one place and do not be an esay target for bot-hunters.

Post Reply