After reading all the faq and the guide I could find on the wiki, forum and some others posts. I still can't found how to do the specific action I want to.
I've to admit that I'm fairly new on Openkore but I did manage to do some bot by myself (mainly autobuff bots, and hunter bot for farming/xp) thank to all the guides you provided and I'm trying to do my best for understanding much complex scripts.
If anyone can help me, that would be greatly appreciated.
I'm struggling to make my bot auto disconnecting after he receives a particular item in inventory. According to me there is 2 way in which I can to this :
First of all, I could do a macro that would check console messages and make the bot disconnect when it appears.
Secondly, I could do an inventory check and make the bot disconnect if openkore detects the specific item on my inventory.
I did try to found a guide that would explain me how to interprate console messages (in term of scripts with if conditions) but no success and not easy to understand.
This is why I tried to do a simple macro, but not working, got some problems with if statement conditions.
Here is my macro:
Code: Select all
macro start {
do c @autoloot rate 2
do c @autoloot item royal jelly
do c @autoloot item honey
}
automacro dcdrop {
exclusive 1
call {
if inventory "Creamy Card" = 1 goto dc
if inventory "Creamy Card" != 1 goto continue
:dc
charselect
:continue
}
}
Is it better to use automacro that trigger for a specific event ?
If anyone can point out my mistakes and explain me how to use these statements correctly, it would be greatly appreciated, I'm learning.
Slamer