3 Attachment(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.
http://i450.photobucket.com/albums/q...psad40a827.png
Now make waypoints all over the spot.
http://i450.photobucket.com/albums/q...psae90ef38.png
http://i450.photobucket.com/albums/q...psc68af976.png
Because my monsters do not drop food i will add some other waypoints to kill wolfs.
http://i450.photobucket.com/albums/q...ps37ebc01a.png
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.
http://i450.photobucket.com/albums/q...psce3693d8.png
http://i450.photobucket.com/albums/q...ps00fa43db.png
North of tower is double hunter spawn. Why not ? Slingshot is nice item : ).
http://i450.photobucket.com/albums/q...ps82271467.png
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.
http://i450.photobucket.com/albums/q...ps1342a406.png
You have to check your supplies, so...
http://i450.photobucket.com/albums/q...psa6a73b71.png
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.
http://i450.photobucket.com/albums/q...psbee5204d.png
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.
http://i450.photobucket.com/albums/q...psab540cb3.png
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.
http://i450.photobucket.com/albums/q...psaae4bab9.png
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.