All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before
macro walkToSlave {
do ai manual
$rherb = @inventory ("Red Herb")
$shell = @inventory ("Shell")
$phracon = @inventory ("Phracon")
do move 22 76 morocc
pause 5
$playerID = @player("tralfamador")
pause 5
do deal $playerID
pause 1
if($rherb != -1) {
do deal add $rherb
pause 1
}
if($shell != -1) {
do deal add $shell
pause 1
}
if($phracon != -1) {
do deal add $phracon
pause 1
}
do deal
pause 5
do deal
pause 5
do ai on
}
I've tried putting the actual adding of the items into extra macros and then just calling those, OpenKore then tells me "Unrecognized -> if <- subroutine".
Thanks, found out about that myself. You just get used to the C syntax when you've been programming in it for years.
Here's what's working for me now if anyone's interested, all it does is go to my idling slave bot who sits at a fixed position and has dealAuto 2 on and deal him predetermined items that my farm bot is gonna pick up. Had to split it in two deals because all the items wouldn't fit into one deal. Rest is completely straightforward.