30-04-2024, 04:42 AM
Hi guys, i made a little macro for a master/slave party to warp to a destination
In slave macros.txt write as below
In master's macros.txt
In example above, master will request a warp when it is in the specified map, has those items in inventory and is below 47% by sending a PM to the slave with warp 1 or warp 2 or warp 3 or warp 4 (choose the desired warp destination). The slave will then open a warp at a near location and instruct the master to move into the warp with a private message.
Both should auth 1 each other.
Change the map, inventory items, etc at you convenience!
In slave macros.txt write as below
Code:
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 ("-3", "3"))
$yy = @eval ($y + @random ("-3", "3"))
$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 "Master" w $.lastMatch1 $.lastMatch2
pause 5
do move $.lastMatch1 $.lastMatch2
}
}
In master's macros.txt
Code:
automacro timetohunt {
location map
inventory "Mastela Fruit" > 5
inventory "Awakening Potion" > 1
inventory "Fly Wing" > 1
inventory "Butterfly Wing" > 0
weight < 47%
timeout 30
call {
pause 5
do pm Slave warp 1 | warp 2 | warp 3 | warp 4
}
}
automacro warpmove {
pm /w (.*) (.*)/
exclusive 1
call {
do move $.lastMatch1 $.lastMatch2
pause 20
}
}
In example above, master will request a warp when it is in the specified map, has those items in inventory and is below 47% by sending a PM to the slave with warp 1 or warp 2 or warp 3 or warp 4 (choose the desired warp destination). The slave will then open a warp at a near location and instruct the master to move into the warp with a private message.
Both should auth 1 each other.
Change the map, inventory items, etc at you convenience!