Openkore.com

OpenKore Forums
It is currently 11 Dec 2018, 08:05

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 65 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: Advance Party Search Macro REVISED : MAY 10, 2010
PostPosted: 16 Jan 2010, 02:00 
Offline
The Way Of Human
The Way Of Human
User avatar

Joined: 16 Aug 2009, 03:47
Posts: 190
Location: Gonryun
UPDATED : May, 10, 2010
This is one of my first macros, thats why first codes are wrong, i've just corrected it =p

This macro will be triggered when the slave is lost, it will send pm to master and the master will send a command to move to its current location and also the slave sends command to move the master to its current location.
Pros: faster party search, followBot 1 will just set a "meeting point" for both master and slave, but this one,, they will move to each others place, thus meeting them FAST
Cons: when the master is dead and at town, he will still go to the slave even his HP is low, so i use the SIT MACRO below, to ensure that if the master has low hp he wont move until the slave heals him =)

NOTE: in config.txt followBot should be 0


Macro for SLAVE


Code:
################################
######FIND MASTER###############
################################
#find master
automacro findMaster {
   timeout 3
   console /^I lost my master/
   call {
   $master = @config (followTarget)
   do pm "$master" x $.map $.pos
   }
}
automacro findMaster2 {
   timeout 3
   console /^Calculating route to find master/
   call {
   $master = @config (followTarget)
   do pm "$master" x $.map $.pos
   }
}
#goto master
automacro gotoMaster {
   pm /x (.*) (.*) (.*)/
   call {
   $pm = $.lastpm
   if ($pm != $master) stop
   do move $.lastMatch1 $.lastMatch2 $.lastMatch3
   }
}
#when master is found
automacro foundMaster {
   console /^Found my master!/
   call {
   do pm "$master" clear
   }
}
   


Macro for MASTER


Code:
#######################################
########FIND SLAVE#####################
#######################################
#slave is lost
automacro findSlave {
   pm /x (.*) (.*) (.*)/
   call {
   $slavemap = $.lastMatch1
   $slavemapx = $.lastMatch2
   $slavemapy = $.lastMatch3
   $mymap = $.map
   if ($slavemap == $mymap) goto findslave
   do pm "$.lastpm" x $.map $.pos
   stop
:findslave
   do pm "$.lastpm" x $.map $.pos
   do move $slavemap $slavemapx $slavemapy
   }
}
#when slave is found
automacro clear {
   pm /clear/
   call {
   do eval AI::clear("move", "route");
   }
}


i don know if this is advance or what but when i used this my bots meet up each other fast and doesn't lost each other at a great distance.

better change

for MASTER

Code:
route_step 15

to
Code:
route_step 8
or 3 or 2 but just dont put 0, 3 is enaf, and 8 is the best

for SLAVE

Code:
route_step 15

to
Code:
route_step 18


and also
set a pausemap for your master(to make sure slave will be first to enter the map for a sec.)
find these:

Code:
pauseCharServer 0
pauseMapServer

and change to this
Code:
pauseCharServer 1
pauseMapServer 1



in your config.txt

_________________
Just like old times.


Last edited by gamenikko on 10 May 2010, 15:00, edited 20 times in total.

Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 19 Jan 2010, 08:42 
Offline
Human
Human

Joined: 09 Dec 2009, 01:18
Posts: 33
Nice It is working :D

Thank you

Keep up the GOod work xD i like this macro heh


Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 19 Jan 2010, 09:49 
Offline
The Way Of Human
The Way Of Human
User avatar

Joined: 16 Aug 2009, 03:47
Posts: 190
Location: Gonryun
n00b wrote:
Nice It is working :D

Thank you

Keep up the GOod work xD i like this macro heh


thanks =p

better change

Code:
route_step 15

to
Code:
route_step 8
or 3 or 2 but just dont put 0, 3 is enaf

in your config.txt

_________________
Just like old times.


Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 27 Jan 2010, 04:54 
Offline
Noob
Noob
User avatar

Joined: 26 Jan 2010, 23:59
Posts: 5
Location: san pedro laguna phil.
sir.... your macro was great its working... but im confused... there's a yellow txt in the console saying...



move X,Y then
move is not online?



but the master is online?? is that a problem??


Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 27 Jan 2010, 07:11 
Offline
Moderators
Moderators
User avatar

Joined: 26 May 2008, 12:25
Posts: 136
ne3n wrote:
sir.... your macro was great its working... but im confused... there's a yellow txt in the console saying...



move X,Y then
move is not online?



but the master is online?? is that a problem??

Do not post everywhere your question!
Do you have set followTarget in your config.txt?

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots.
So far, the universe is winning.

Richard Cook

Wiki


Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 27 Jan 2010, 07:18 
Offline
The Way Of Human
The Way Of Human
User avatar

Joined: 16 Aug 2009, 03:47
Posts: 190
Location: Gonryun
ne3n wrote:
sir.... your macro was great its working... but im confused... there's a yellow txt in the console saying...



move X,Y then
move is not online?



but the master is online?? is that a problem??


scarya is right maybe you left you followTarget blank,
anyway i made an update please use it
=)

_________________
Just like old times.


Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 27 Jan 2010, 20:52 
Offline
Human
Human
User avatar

Joined: 20 Jan 2010, 09:07
Posts: 34
I Have a problem with your macros

Quote:
################################
######FIND MASTER###############
################################

automacro FindMaster {
console "I lost my master"
call {
$master = @config (followTarget)
$mymap = @config (lockMap)
if ($mymap != $lockmap) goto stopp
:stopp
stop
do pm "$master" move $.pos
}
}


Loading control\macros.txt...
control\macros.txt: ignoring 'automacro FindMaster {' (munch, munch, unknown automacro keyword)

_________________
Image


Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 27 Jan 2010, 21:25 
Offline
Testers Team
Testers Team

Joined: 04 Apr 2008, 21:53
Posts: 106
Location: Asia
wait for magnificat, this Link still works best with me

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 27 Jan 2010, 21:31 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1811
MiDaM wrote:
Quote:
automacro FindMaster {

control\macros.txt: ignoring 'automacro FindMaster {' (munch, munch, unknown automacro keyword)

Unclosed automacro block before that.


Top
 Profile  
 
 Post subject: Re: Advance Party Search Macro =)
PostPosted: 27 Jan 2010, 22:14 
Offline
Noob
Noob
User avatar

Joined: 26 Jan 2010, 23:59
Posts: 5
Location: san pedro laguna phil.
Scarya wrote:
ne3n wrote:
sir.... your macro was great its working... but im confused... there's a yellow txt in the console saying...



move X,Y then
move is not online?



but the master is online?? is that a problem??

Do not post everywhere your question!
Do you have set followTarget in your config.txt?








sori sir scarya.... i just post a reply here... sir scarya and sir nikko... may followtarget is blank... their a char. name on it... is it case sensitive?? for char. name?? may char. name has a space and has exclamation point like this !... the console say char. name is not online?? in yellow collor txt... is it a bug ro what??


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 65 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group