XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: How to make full afk script.

  1. #1
    biaggio12's Avatar
    Join Date
    Dec 2011
    Posts
    262
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    How to make full afk script.

    How to make full afk scripts

    Tutorial by biaggio12

    First of all, you have to answer a question. Do you really want to make full afk script, and can you spend some time on it. if you don`t, then turn off that page and head to @Neant or other sellers. They scripts are awesome, really,
    Second of all:
    making script is 4-phase activity.
    1. Choosing spot
    2. Making Waypoints
    3. Lua Scripting
    4.Testing phase

    So you really want to make full afk script. Well then let`s start. Answer a question what you would like to bot, which character, and then check if you have character.
    All done? Fine, now login to tibia, load xenobot, and head to the spot you would like to hunt and now think about how would you like to run on hunting place.
    I will use my 40 knight, to create script for magician tower north of thais.


    You have to start with something so add label start.

    Now make waypoints all over the spot.


    Because my monsters do not drop food i will add some other waypoints to kill wolfs.

    Now im thinking hey, this is really small tower, i will add something more to kill but what if my lvl is too low ?
    West of this tower is small elf camp. I will go there but only if in lua(later ill explain) will be set ElfHunt = true. On way to elfs there are few bears too.


    North of tower is double hunter spawn. Why not ? Slingshot is nice item : ).

    NOW IMPORTANT THING. YOU HAVE TO ADD ALTERNATIVE FOR CHOICE. EXAMPLE: You dont want to hunt elves so when you are going to check for it you have to add alternative not to hunt them.

    You have to check your supplies, so...

    You see labels out there ?
    PHP Code:
    NoElfs
    Check
    Wait
    Stand
    wait
    (10000)
    Leave 
    I did it that way because, if you choose not to hunt elfs, bot will skip to label NoElfs then bot will check your supplies and if you have enough of it bot will go to label Wait and will wait 10000 seconds then will go to label named Start and will go all over the tower again. I forget to put one more label after wait it should be called GotoStart so it would be like that
    PHP Code:
    NoElfs
    Check
    Wait
    Stand
    wait
    (10000)
    GotoStart
    Leave 
    Now After leave label im setting way back to city.

    You see those wpts from Leave to Enter City. Thats my way from spawn to town. I put label EnterCity and EnterDepo cuz i have in habit to name activities. Dunno why xd. but i think its a good thing. Once you are in depo, you have to add label to deposit money. "DepositCashafter that you have to add label to deposit items like i did "DepositItems". After depositing you have to reset your backpacks "ResetBPs" then you have to set way back to hunt. But you won`t go to hunt without potions right ? And you can`t buy potions without money so that`s why there is "WithdrawCash" Label.



    After reseting backpacks i set my way to mana shop.

    As it in my habit i have put label GotoManaShop, then i set waypoints to mana shop xd.
    Once im near Xodet its necessary to put STAND waypoint.

    After stand, label "BuyManas" just to buy manas - simple. Next, label named "CheckSupp" is checking supplies if your refill is done or not. If its not then in lua later we will set that bot will come back to label named "EnterDepo" so bot will try to refill again. After that we just need to set our way back to hunting spot. Waypoints after "Gotospawn are way to spawn. After that your .xbst file is ready, and you can head to step 3 - LUA SCRIPTING.
    Last edited by biaggio12; 06-12-2013 at 08:55 AM.
    //CGN

  2. #2
    biaggio12's Avatar
    Join Date
    Dec 2011
    Posts
    262
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    reserved Will finish when i have time
    //CGN

  3. #3
    biaggio12's Avatar
    Join Date
    Dec 2011
    Posts
    262
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    reserved aaa
    //CGN

  4. #4
    Lifetime Subscriber Kociii's Avatar
    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    3,586
    Mentioned
    199 Post(s)
    Tagged
    1 Thread(s)
    This is good



    Free & Open Teamspeak 3 server for everyone!




    My Spotify List



    My Tibia Life



    My Script Thread

  5. #5
    biaggio12's Avatar
    Join Date
    Dec 2011
    Posts
    262
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I`ll try to finish it tommorow. If there is something that anyone do not understand just let me know
    //CGN

  6. #6
    zxzero's Avatar
    Join Date
    May 2013
    Location
    CANADA
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <3 I have been looking for something like this, I know how to do the waypoints but the .lua is what gets me. :/

  7. #7
    biaggio12's Avatar
    Join Date
    Dec 2011
    Posts
    262
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    soon stay tuned for finishing
    //CGN

  8. #8

    Join Date
    Mar 2013
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks pretty good. Hope you can teach us how to deposit the gold.

  9. #9
    Banned
    Join Date
    Jun 2012
    Posts
    595
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    good tutorial you've made
    Last edited by popit; 06-12-2013 at 12:36 AM.

  10. #10
    Senior Member
    Join Date
    May 2013
    Posts
    659
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    I planned to make a tutorial, but I got mad because I couldn't find the right words to express & explain myself so I scrapped the idea :P

    Oh and a second Thais Magician Tower script, cheers

    Nice tut though, good job
    Last edited by Adky; 06-12-2013 at 06:43 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •