this was requested by sarah, she wants the bot to mail her the BoPs it collected.
here is the code:
<map> = which map the bot is using to get BoP
<name> = the recipient of the mail, meaning the name of the character where the mail be send.
*i assume you know what to do with the code, u know, open a new notepad at the control folder of your bot then paste the codes then save then open the config file of the bot then change the macro_file to what you name the new notepad you open.
**i didn't test this one out yet but it should work just fine cause it has the same structure of the mailing pcoins my bot are using.
here is the code:
- Code:
automacro bop {
inventory "box of panting" > 100
location <map>
run-once 0
exclusive 1
priority 0
call mail
}
macro mail {
$item = box of panting
$bop = @inventory ($item)
do ma add item 100 $bop
do ms <name> BoP "sent 100 BoP"
do c @warp <map>
}
<map> = which map the bot is using to get BoP
<name> = the recipient of the mail, meaning the name of the character where the mail be send.
*i assume you know what to do with the code, u know, open a new notepad at the control folder of your bot then paste the codes then save then open the config file of the bot then change the macro_file to what you name the new notepad you open.
**i didn't test this one out yet but it should work just fine cause it has the same structure of the mailing pcoins my bot are using.