Okay, here's the thing. For some reason, my bot would not automatically go to the Tool Dealer NPC when its number of Red Potions reach 10.
Code: Select all
buyAuto Red Potion {
npc payon_in01 5 49
distance 5
minAmount 10
maxAmount 100
}
Code: Select all
automacro storagePotion {
inventory "Magnifier" > 0
inventory "Red Potion" <= 10
inventory "Novice Potion" < 1
location not payon_in01
location not alberta
location not moscovia
location not mosk_in
run-once 1
call {
do conf attackAuto 0
do autostorage
release releaseStoragePotion
}
}
automacro releaseStoragePotion {
inventory "Red Potion" > 10
run-once 1
exclusive 1
call {
do a yes
release storagePotion
}
}
Code: Select all
getAuto Red Potion {
minAmount 10
maxAmount 100
passive 0
}
Code: Select all
automacro noPotionsStorage {
console /Red Potion out of stock/i
call {
do storage close
do autobuy
}
}
Anyway, after it buys Red Potions, it initiates auto-storage again because it was interrupted when it initiated the auto-buy sequence through macro. After the auto-storage sequence, it will initiate the auto-sell sequence. NOW, here's my problem; and I have been finding answers to it but to no avail. After my bot finishes the auto-sell sequence, it goes idle and then my bot will just sit down there doing nothing. Why does it do that? Why can't it continue on and go back to the lockMap?
I found some similar posts here actually regarding this "idle" problem, but they're not the same as mine. Some had problems with syntax when it comes to the config.txt. I double-checked mine and I did not find such errors. I found another but it goes idle BEFORE it does the auto-storage sequence.
So what's wrong? I cannot understand why it goes idle for no reason. Please help me. Thank you very much.
