Would you like to react to this message? Create an account in a few clicks or log in to continue.
Hello! Everyone. Thank You for Visiting Our Forum. Feel Free to Post Your Message. Admins/Moderators would like to Answer your Needs & Questions. Thank You & Have A Nice Day.

2 posters

    Mailing BoP

    Janice
    Janice
    Moderator
    Moderator


    Posts : 158
    Join date : 2010-01-07
    Age : 32
    Location : Canada

    Mailing BoP Empty Mailing BoP

    Post by Janice 1/10/2010, 6:15 pm

    this was requested by sarah, she wants the bot to mail her the BoPs it collected.
    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>
    }
    things to change:
    <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.
    Outerlimitro
    Outerlimitro
    Admin
    Admin


    Posts : 2507
    Join date : 2009-06-07
    Age : 34
    Location : California

    Mailing BoP Empty Re: Mailing BoP

    Post by Outerlimitro 1/10/2010, 11:42 pm

    that's cool. Mailing BoP 483283
    Janice
    Janice
    Moderator
    Moderator


    Posts : 158
    Join date : 2010-01-07
    Age : 32
    Location : Canada

    Mailing BoP Empty Re: Mailing BoP

    Post by Janice 1/10/2010, 11:53 pm

    thanks.
    Outerlimitro
    Outerlimitro
    Admin
    Admin


    Posts : 2507
    Join date : 2009-06-07
    Age : 34
    Location : California

    Mailing BoP Empty Re: Mailing BoP

    Post by Outerlimitro 1/10/2010, 11:54 pm

    your welcome... Mailing BoP 791691

    Sponsored content


    Mailing BoP Empty Re: Mailing BoP

    Post by Sponsored content


      Current date/time is 3/28/2024, 10:23 am