Openkore BOT Macro Sticky Rat Daily Quest
Remember:
The macro will not function if there is no macro plugins,
Downlaod macro plugins here.
Paste this code to your macros.txt located at BOTfolder/control/macros.txt
#CHECK IF YOU HAVE MYSTIC BALL OR IF YOU MUST CATCH RATS
macro doswab {
do move alberta 114 55
if ($swab = 0) goto skipswab
goto swab
:skipswab
call talkmessage
stop
:swab
pause 2
$mcatball = @invamount (Mystic Leaf Cat Ball)
if ($mcatball > 0) goto pasamystic
goto mustcatch
:pasamystic
do talknpc 104 60 r0 n
pause 2
do talknpc 104 60 c n
pause 2
call talkmessage
goto end
#ASK THE NPC FOR LEAF CAT BALLS
:mustcatch
$lball = @invamount (Leaf Cat Ball)
while ($lball < 5) as lball
do talknpc 104 60 r0 n
pause 1
do talk no
$lball++
log $lball
end lball
#NOW, MOVE TO ALBERTA SHIP WHERE MOST STICKY RAT RESPAWN
if ($lball = 5) goto catchem
goto end
:catchem
do move alb_ship @rand (121,125) @rand (99,100)
log moving to alb_ship
do conf attackAuto 2
do ai clear
pause 1
:end
#release swabthedeck
}
#IF YOU STILL HAVE A LEAF BALL, BE AGGRESSIVE
automacro sticky {
inventory "Leaf Cat Ball" > 0
monster Sticky Rat
run-once 1
exclusive 1
timeout 40
delay 0
call sticky
}
#AUTO ATTACK RATS
macro sticky {
do conf attackAuto 2
pause 0
release sticky
}
#YOU ARE NOW ATTACKING A RAT, WHILE YOU ATTACK AND HAVE LEAF BALL TRY TO CATCH RAT
#IF YOU RUN OUT OF LEAF BALL, BACK TO TOWN TO DELIVER THE MYSTIC BALL
#AND THEN TURN AUTOATTACK OFF
automacro mindexa {
console /You are now attacking Monster Sticky Rat \((\d+)\)/i
run-once 1
exclusive 1
timeout 8
delay 2
priority 3
call mindex
}
automacro mindex {
console /Monster Sticky Rat \((\d+)\) attacks you/i
run-once 1
exclusive 1
priority 2
timeout 8
delay 0
call mindex
}
#MONSTER TO BE CATCH TRIGGERED
macro mindex {
$lball = @invamount (Leaf Cat Ball)
if ($lball = 0) goto return
goto cont
:return
$catchedrat = 1
do conf attackAuto 0
pause 1
do move alberta 117 56
pause 2
$mball = @inventory (Mystic Leaf Cat Ball)
if (($mball > 0) && ($lball =< 0)) goto pass
call doswab
stop
:pass
do talknpc 104 60 r0 n
call msgdelivery
pause 1
:cont
$m = $.lastMatch1
log $m
do im @inventory (Leaf Cat Ball) $m
pause 0
do pet c $m
#do conf attackAuto 0
release mindex
release mindexa
}
~End
Openkore BOT Macro Sticky Rat Daily Quest
0 Comments »