I haven't used xenobot in 4 years and I'm not sure of the details of your problem so idk if it's even possible, but here's the script I used on archlight 4 years ago to bot monster essences, maybe it helps?
messages = {
"*item*","*gold*","*buff*","*exp*",
}...