I made a recovery script for my clan's buff bot, and now the bot sometimes casts buffs on its self instead of on the intended target.
The scenario goes something like this:
Person A requests a buff
x out of y casts are made on Person A
bot runs out of mp and runs the recovery script
y-x casts are made on THE BOT
The script tries to heal MP with a jumbo Dr. Lucifer, and in the process makes some random skill casts to burn off the residual MP, and then heals HP with a cast of cannelloni cocoon. I think it is these intermediate casts that are screwing up the buff target.
The scenario goes something like this:
Person A requests a buff
x out of y casts are made on Person A
bot runs out of mp and runs the recovery script
y-x casts are made on THE BOT
The script tries to heal MP with a jumbo Dr. Lucifer, and in the process makes some random skill casts to burn off the residual MP, and then heals HP with a cast of cannelloni cocoon. I think it is these intermediate casts that are screwing up the buff target.