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.

5 posters

    Macro for bots

    Janice
    Janice
    Moderator
    Moderator


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

    Macro for bots Empty Macro for bots

    Post by Janice 1/8/2010, 12:40 am

    ok... I don't know if i can do this but I mentioned this a little to Brass.
    This is a macro that makes your bot automatically give you the items (in this case gold and poring coins) he/she is carrying when you pm it.

    Here's how it works.
    1. You pm the bot your current coordinates in prontera (eg. prontera 140 151)
    2. The bot will teleport to you and deal you the items (gold and poring coins)
    3. You pm the bot either "quit" or "go" (quit - if you want the bot to close openkore, go - if you want the bot to return to gold room and continue collecting items.

    What you need to do.
    1. Change <name1> and <name2> to your desired character who will the bot follow when you pm it. (I use 2 characters as my receiver of the items in this case. One is Mi Gao and the other... the other is a secret)


    Code:
    ######## Being Called ########
    automacro called {
       pm /prontera/ <name1>, <name2>
       run-once 0
       overrideAI 1
       call lipad
    }

    macro lipad {
       $pl = @player ($.lastpm)
       $warp = $.lastpmMsg
       do c @warp $warp
       do sit
       do deal $pl
    }

    ######## The Trade ########
    automacro lagay {
       console /Engaged Deal/
       run-once 0
       overrideAI 1
       call add
    }

    macro add {
       $nume = 30000
       $item = gold
       $item1 = poring coin
       $gold = @invamount ($item)
       $gold1 = @storamount ($item)
       $gold2 = @inventory ($item)
       $pcoin = @invamount ($item1)
       $pcoin1 = @storamount ($item1)
       $pcoin2 = @inventory ($item1)
       $m1 = Engaged Deal with <name1>
       $m2 = Engaged Deal with <name2>
       if ($.lastLogMsg != $m1 && $.lastLogMsg == $m2) goto one
       if ($.lastLogMsg != $m1 || $.lastLogMsg != $m2) goto two
       if ($.lastLogMsg == $m1 && $.lastLogMsg != $m2) goto one
       :two
       do deal no
       do c gomen... wrong send
       do e sry
       stop
       :one
       [
       do deal add $gold2
       do deal add $pcoin2
    ]
       stop   
    }

    ######## The Deal ########
    automacro sure {
       console /(<name1>|<name2>) finalized the Deal/
       run-once 0
       overrideAI 1
       call final
    }

    macro final {
       do deal
       do deal
    }

    ######## Stop or Continue ########
    automacro complete {
       pm /go|quit/ <name1>, <name2>
       run-once 0
       overrideAI 1
       call decide
    }

    macro decide {
       if ($.lastpmMsg == go) goto continue
       if ($.lastpmMsg == quit) goto done
       :continue
       do stand
       do tele
       stop
       :done
       do stand
       do tele
       do quit
    }

    ######## Storage ########
    automacro storage {
       location lou_fild01
       weight >= 90%
       timeout 600
       overrideAI 1
       call store
    }

    macro store {
       do c @go 0
       do talknpc 153 187 r1
    }

    automacro proccess {
       console "Storage opened."
       exclusive 1
       call step
    }

    macro step {
       $nume = 30000
       $item = gold
       $item1 = poring coin
       $gold = @invamount ($item)
       $gold1 = @storamount ($item)
       $gold2 = @inventory ($item)
       $pcoin = @invamount ($item1)
       $pcoin1 = @storamount ($item1)
       $pcoin2 = @inventory ($item1)
       $sum = @eval ($gold + $gold1)
       $sum1 = @eval ($pcoin + $pcoin1)
       $diff = @eval ($nume - $gold1)
       $diff1 = @eval ($nume - $pcoin1)

       if ($sum < $nume) goto one
       if ($sum >= $nume) goto one1

       :one
       do storage add $gold2
       if ($sum1 < $nume) goto two
       if ($sum1 >= $nume) goto two2
       stop

       :one1
       if ($diff == 0) goto one1one
       if ($diff > 0) goto one1two
       stop

       :one1one
       if ($sum1 < $nume) goto 1two
       if ($sum1 >= $nume) goto 1two2
       stop

       :one1two
       do storage add $gold2 $diff
       if ($sum1 < $nume) goto 1two
       if ($sum1 >= $nume) goto 1two2
       stop

       :two
       do storage add $pcoin2
       do storage close
       do tele
       stop

       :two2
       if ($diff1 == 0) goto 2three
       if ($diff1 > 0) goto please
       stop

       :please
       do storage add $pcoin2 $diff1
       do storage close
       do tele
       stop

       :1two
       do storage add $pcoin2
       do storage close
       do quit
       
       :1two2
       if ($diff1 == 0) goto 2three
       if ($diff1 > 0) goto 2three3
       stop

       :2three
       do storage close
       do tele
       do quit

       :2three3
       do storage add $pcoin2 $diff1
       do storage close
       do tele
       do quit
    }

    ######## Tele ########

    automacro warp {
       location not lou_fild01
       location not prontera
       overrideAI 1
       timeout 10
       call fly
    }

    macro fly {
       do c @warp lou_fild01
    }

    ######## Must Heal ########

    automacro park {
       hp < 20%
       timeout 90
       exclusive 1
       overrideAI 1
       call heal
    }

    macro heal {
       do c @go 0
       do sit
       do talknpc 155 187 r0
       do stand
       do tele
    }

    ---Notes---
    1. This one should have no problems at all since I'm using this for 2 weeks already with no problems.
    2. There are 8 things you need to change here: 4 <name1> and 4 <name2>
    3. All <name1> should be the same (eg. if you change the first <name1> to Mi Gao, all the other 3 <name1> should also be Mi Gao.) as well as for <name2>.
    4. If you are assigning <name1> or <name2> with the character name that have a space, use quotation marks. (my character name is Mi Gao so I write it as "Mi Gao".) eg. pm /prontera/ "Mi Gao", Antrax

    ---Added Notes---
    i didn't mention this when i first post this i don't actually know this yet at that time:
    the name of the character that you will change <name1> & <name2> [u]should not[/i] have any parenthesis "()" and/or braces "[]" in them. (eg. Cris`[])
    i don't know about quotes (") or apostrophes (') yet, if you happened to tried it pls tell me the outcome.


    Last edited by Janice on 1/8/2010, 9:26 pm; edited 1 time in total
    Outerlimitro
    Outerlimitro
    Admin
    Admin


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

    Macro for bots Empty Re: Macro for bots

    Post by Outerlimitro 1/8/2010, 12:55 am

    That's cool. this would help those players in needs. Macro for bots 766993
    mranderson692004
    mranderson692004
    1st Class
    1st Class


    Posts : 265
    Join date : 2009-08-15
    Age : 38
    Location : washington, USA

    Macro for bots Empty Re: Macro for bots

    Post by mranderson692004 1/8/2010, 12:38 pm

    can this be used on say other bots. like for example i have bots i use for farming certain items and all they do is just use storage. is it possible to tweak that so that those bots will send me the items its has and say i certain point. like 300 of an item then it mails it to me. or something like that
    Janice
    Janice
    Moderator
    Moderator


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

    Macro for bots Empty Re: Macro for bots

    Post by Janice 1/8/2010, 2:56 pm

    mranderson692004 wrote:can this be used on say other bots. like for example i have bots i use for farming certain items and all they do is just use storage. is it possible to tweak that so that those bots will send me the items its has and say i certain point. like 300 of an item then it mails it to me. or something like that

    any bot can use this to farm at gold room.
    you can change this easily to suit what you need as long as you need 2 items only.
    let say you need jelopy and fluff: change:
    $item = gold to $item = jelopy
    $item1 = poring coin to $item1 = fluff

    i set this one so that the bot will give you all the items you specified at $item and $item1 when you call it to have a deal.
    if you want a certain amount, just add the amount of items you want to get at the line like this:
    do deal add $gold2 300
    do deal add $pcoin2 400
    this one will give you 300 of the first item and 400 of the second.

    you can only get the items through deal when the bot is called.
    i'm working on using the mail to send the items automatically. i'll post it when i finished it.
    AngeLo Cris
    AngeLo Cris
    Super Novice
    Super Novice


    Posts : 227
    Join date : 2009-08-28
    Age : 30
    Location : Canada

    Macro for bots Empty Re: Macro for bots

    Post by AngeLo Cris 1/9/2010, 10:14 am

    woow ate janice ur so smart....
    Bunnie
    Bunnie
    1st Class
    1st Class


    Posts : 278
    Join date : 2009-06-11
    Age : 31
    Location : Bunnie World

    Macro for bots Empty Re: Macro for bots

    Post by Bunnie 1/12/2010, 1:44 pm

    Macro for bots 336146 Galing ni Ampalaya..Nice Nice Macro for bots 544737
    AngeLo Cris
    AngeLo Cris
    Super Novice
    Super Novice


    Posts : 227
    Join date : 2009-08-28
    Age : 30
    Location : Canada

    Macro for bots Empty Re: Macro for bots

    Post by AngeLo Cris 1/12/2010, 4:15 pm

    ampalaya?? Macro for bots 12999
    Outerlimitro
    Outerlimitro
    Admin
    Admin


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

    Macro for bots Empty Re: Macro for bots

    Post by Outerlimitro 1/12/2010, 11:48 pm

    wat the toot nde ako yon hehehehe wat the toot @ampalaya Macro for bots 12999

    Sponsored content


    Macro for bots Empty Re: Macro for bots

    Post by Sponsored content


      Current date/time is 3/29/2024, 1:11 am