Macro autoCrete-Potion Ver.1.4.2
(Credit By rHa, www.d-bests.com)
[codebox]
### Move to Create Position trigger by Inventory Quantity
automacro initiate {
sp > 80
location not payon 180 100 181 100
inventory "Medicine Bowl" > 0
inventory "White Herb" > 0
inventory "Empty Potion Bottle" > 0
call start
#run-once 1
timeout 10
}
macro start {
#@release initiate
move 180 100 payon
@pause 1
}
#at Create Position consider condition trigger by Quantity and sp
automacro resta {
location payon 180 100
sp < 15
inventory "White Herb" > 0
inventory "Medicine Bowl" > 0
inventory "Empty Potion Bottle" > 0
call rest
run-once 1
timeout 5
}
macro rest {
move 181 100
@release resta
@pause 1
sit
}
#at Rest Position ... condition trigger by Quantity & sp
automacro jallen {
location payon 181 100
sp > 90
inventory "White Herb" > 0
inventory "Medicine Bowl" > 0
inventory "Empty Potion Bottle" > 0
call shifta
timeout 5
}
macro shifta {
move 180 100
@pause 1
}
#at Create Position ... Create condition trigger by Quantity or Sp
automacro create {
location payon 180 100
sp > 15
inventory "White Herb" > 0
inventory "Medicine Bowl" > 0
inventory "Empty Potion Bottle" > 0
call pharmacy
run-once 1
}
##### Pharmacy Creation CODE : Credit to flakey of OpenKore Board #####
#####
http://openkore.sourceforge.net/forum/viewtopic.php?t=5000 #####
##### send (code) after invoke "ss 228 10" only ... therefore Kore terminate !
##### Red Potion = 8E 01 F5 01 00 00 00 00 00 00
##### Yellow Potion = 8E 01 F7 01 00 00 00 00 00 00
##### White Potion = 8E 01 F8 01 00 00 00 00 00 00
##### Blue Potion = 8E 01 F9 01 00 00 00 00 00 00
##### Adonyne = 8E 01 5D 02 00 00 00 00 00 00
##### Aloevera = 8E 01 5E 02 00 00 00 00 00 00
##### Red Slim = 8E 01 21 02 00 00 00 00 00 00
##### Yellow Slim = 8E 01 22 02 00 00 00 00 00 00
##### White Slim = 8E 01 23 02 00 00 00 00 00 00
##### Alcohol = 8E 01 CA 03 00 00 00 00 00 00
##### Fire Bottle = 8E 01 DF 1B 00 00 00 00 00 00
##### Acid Bottle = 8E 01 E0 1B 00 00 00 00 00 00
##### Plant Bottle = 8E 01 E1 1B 00 00 00 00 00 00
##### Mine Bottle = 8E 01 E2 1B 00 00 00 00 00 00
##### Coating Wax = 8E 01 E3 1B 00 00 00 00 00 00
macro pharmacy {
ss 228 10
@pause 0.5
send 8E 01 F8 01 00 00 00 00 00 00
@release create
@set (time) @var (.time)
}
##### Counter Relogin every 10 min ... while Pharmacy #####
### in order not to Mix up the Counter Relogin with the Process ###
### leave the Counter Relogin macro at last lines ###
#Counter Relog while Grab
#Counter Relog while Create
automacro resetKaraCreate {
var time < @eval (@var (.time) - 30)
location payon 180 100
inventory "White Herb" > 0
inventory "Medicine Bowl" > 0
inventory "Empty Potion Bottle" > 0
call reseto
timeout 60
}
macro reseto {
macro reset
@pause 1
}
#Counter Relog while Rest
#Counter Relog while Walking
# Counter Relog while Standing out of 181,100 / 180,100
# Counter Relog while Store Item
[/codebox]
config.txt
[codebox]
attackAuto 0
routeRandomWalk 0
sitAuto_idle 1
lockMap (kosongkan)
lockMap_x
lockMap_y
storageAuto 1
storageAuto_npc payon 181 104 (posisi kafra di payon)
storageAuto_distance 2
storageAuto_npc_type 3
storageAuto_npc_steps c r1 n
relogAfterStorage 0
storageAuto_password
getAuto White Herb {
minAmount 0
maxAmount 100 (perhatikan saat mengambil item ini agar berat tidak lebih dari 50%)
passive 0
}
[/codebox]
items_control.txt
Code:
All 0 0 0 0 0
White Potion 0 1 0
White Herb 100 1 0
Medicine Bowl 100 1 0
Empty Potion Bottle 100 1 0
timeouts.txt
Code:
macro_delay 0.5
ai_sit_idle 3