slave and master warp portal

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
-Saint Seiya-
The Way Of Human
The Way Of Human
Posts: 182
Joined: 11 Apr 2008, 07:03

slave and master warp portal

#1 Post by -Saint Seiya- »

im trying to make my slave priest open warp to lockmap and follow after my master enters, but i cant figure out how to make my master enter portal, tried using this but my master doesnt react at all.

Code: Select all

automacro timetohunt {
	location not gef_fild10, orcsdun02
	weight < 89%
	inventory "Arrow" > 1
	exclusive 1
	call {
		do pm "xxxx" warp 2
		pause 10
	}
}

automacro movemove {
	console /\(From: (.*)\) : (\d+) (\d+)/i
	exclusive 1
	call {
		do move $.lastMatch1 $.lastMatch2
	}
}
and this is the macro my slave is using

Code: Select all

automacro warp {
   console /\(From: (.*)\) : (warp 1|warp 2|warp 3|warp 4)/
   call {
	$warp1 = warp 1
	$warp2 = warp 2
	$warp3 = warp 3
	$warp4 = warp 4
        $x = @arg("$.pos", 1)
        $y = @arg("$.pos", 2)
        $x0 = @eval($x + @rand(1,3))
        $x1 = @eval($x - @rand(1,3))
        $y0 = @eval($y - @rand(1,3))
        do sl 27 @random("$x0", "$x1") $y0
	pause 2
	if ($warp1 = warp 1) goto warp1
	if ($warp2 = warp 2) goto warp2
	if ($warp3 = warp 3) goto warp3
	if ($warp4 = warp 4) goto warp4
stop
:warp1
   do warp 0
stop
:warp2
   do warp 1
stop
:warp3
   do warp 2
stop
:warp4
   do warp 3
stop
}
}

automacro portalOpened {
   exclusive 1
   console /You opened Warp Portal on \((.*), (.*)\)/i
   call {
	do pm "xxxx" $.lastMatch1 $.lastMatch2
	pause 5
	do move $.lastMatch1 $.lastMatch2
   }
}
how to make my slave and master enter the warp? please point out my mistake thanks

i've edited with the code i got from here and here both doesnt works for me so i edited it myself in order for it to cast warp

mooleh659
Noob
Noob
Posts: 18
Joined: 02 May 2012, 02:51
Noob?: No

Re: slave and master warp portal

#2 Post by mooleh659 »

1. Use auth to authorize the slave to command it's master (yea it's kind of ironic).
2. Remove your movemove automacro, it might interfere with Kore's built-in move chat command.

-Saint Seiya-
The Way Of Human
The Way Of Human
Posts: 182
Joined: 11 Apr 2008, 07:03

Re: slave and master warp portal

#3 Post by -Saint Seiya- »

anyone??

-Saint Seiya-
The Way Of Human
The Way Of Human
Posts: 182
Joined: 11 Apr 2008, 07:03

Re: slave and master warp portal

#4 Post by -Saint Seiya- »

someone help thanks

chocobrowny
Noob
Noob
Posts: 19
Joined: 21 Jul 2011, 01:16
Noob?: No

Re: slave and master warp portal

#5 Post by chocobrowny »

Explain your step and where bot stuck.

Your captured data are wrong in automacro movemove.

Suggest,

areaspell is usefull if you use 1-1.
"...Every coin have two sides, think more widely and Not everything is black and white, there are shades of grey..."
Image

-Saint Seiya-
The Way Of Human
The Way Of Human
Posts: 182
Joined: 11 Apr 2008, 07:03

Re: slave and master warp portal

#6 Post by -Saint Seiya- »

my bot is stuck on my master config, which is movemove automacro. other then that everything else works fine

randomguy
Human
Human
Posts: 24
Joined: 02 Jan 2014, 09:10
Noob?: No

Re: slave and master warp portal

#7 Post by randomguy »

This is the PERFECT macro for a master/slave combo to train at distant maps. It took me a little while at first the warp portal wouldnt take me to the right place and the slave didnt follow but in the end i got it to work. Here is my config:

Depending on which map you want your guys to go to change the location in the timetohunt automacro to reflect:
location not XXXXXX <---- the map you want to train in
and also change were the master pm's the slave "warp X" to the corresponding warp number your slave has the map saved to

For the Master

Code: Select all

####################################
#########WARP TO TRAIN##############
###################################

automacro timetohunt {
   location not gef_fild10, orcsdun02
   weight < 89%
   timeout 10
   call {
      pause 5	
      do pm "####### <----change the ### to your slaves name" warp 2
   }
}

automacro warpmove {
   pm /w (.*) (.*)/
   exclusive 1
   call {
      do move $.lastMatch1 $.lastMatch2
   }
}
For the Slave

Code: Select all

################################
########WARP TO TRAIN###########
################################

automacro warp {
   console /\(From: (.*)\) : (warp 1|warp 2|warp 3|warp 4)/
   call {
$x = @arg ("$.pos", 1)
$y = @arg ("$.pos", 2)
$xx = @eval ($x + @random ("-1", "1"))
$yy = @eval ($y + @random ("-1", "1"))
$loc = $.lastMatch2
   do sl 27 $xx $yy
pause 2
   if ($loc = warp 1) goto warp1
   if ($loc = warp 2) goto warp2
   if ($loc = warp 3) goto warp3
   if ($loc = warp 4) goto warp4
stop
###########################
:warp1
   do warp 0
stop
###########################
:warp2
   do warp 1
stop
###########################
:warp3
   do warp 2
stop
###########################
:warp4
   do warp 3
stop
}
}

automacro portalOpened {
   console /You opened Warp Portal on \((.*), (.*)\)/i
   exclusive 1
   call {
   pause 1
   do pm "###### <---- change the #### to your master's name" w $.lastMatch1 $.lastMatch2
   pause 5
   do move $.lastMatch1 $.lastMatch2
   }
}


Locked