Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] How to Create a 100% afk Script (Step by Step)
#1
Hi people, I'm here to show you guys how to create a 100% afk Scripts.

First of all, you guys most know, there is a lot of ways to make a Script, my way is just one of it.

My Scripts are always organized as Labels: Start,Cave and Refiller. They are pretty logical and easy to understand.

================================================================================
Instructions:
what you will do, when i ask you to do...a...

* Fixed point (Cavebot>>Right Click>>Add>>Fixed Point)
http://wiki.bmega.net/doku.php?id=add_types (for more info)
* Label (Cavebot>>>Right Click>>Codes/Labels>>Label) A window will appear to write something (i will tell you what at the time)
http://wiki.bmega.net/doku.php?id=codes_labels (for more info)
* Withdraw (Cavebot>>>Right Click>>>Trade>>>Withdraw) a window will appear, 3 fields on it.
http://wiki.bmega.net/doku.php?id=trade_types (for more info)
* Buy (Cavebot>>Right Click>>Trade>>Buy) a window will appear, 2 fields on it.
http://wiki.bmega.net/doku.php?id=trade_types (for more info)
* Full Check Label (Cavebot>>Right Click>>Add>>Full Check Label) a window will appear, 3 fields on it.
http://wiki.bmega.net/doku.php?id=add_types (for more info)
* Sell (Cavebot>>>Right Click>>>Trade>>>Sell) a window will appear, one field on it.
http://wiki.bmega.net/doku.php?id=trade_types (for more info)
* Depositer (Cavebot>>>Right Click>>>Add>>>Depositer)
http://wiki.bmega.net/doku.php?id=add_types (for more info)
* Go Label (Cavebot>>>Right Click>>>Codes/Labels>>>Go Label) a window will apear, one field on it.
http://wiki.bmega.net/doku.php?id=codes_labels (for more info)
* Deposit All (Cavebot>>>Right Click>>>Massage>>>Hi/Deposit All/Yes)
http://wiki.bmega.net/doku.php?id=message_types (for more info)
================================================================================
Creating your Script

[Image: doxv1y.jpg]

1- Go to the Depot you wanna go back to and create a Label named Start ( when the window show up write Start on it )

2- Set Learn Marked (the green circle) just click on it.

3- Go to a bank near you and put a Fixed Point in front of it. and create a Deposit All at the same place.

4- Time to take the money to buy stuff. At the same place you created the Deposit All Create a Withdraw this time a window will appear:

First field - The ID of the item you want cash to buy. (he needs it so he can calculate how many of those you already have and how many you need to match the number of item you will put at thierd Field) (how to check ID? http://wiki.bmega.net/doku.php?id=sample...tem&s[]=id )

Second field - the cost of each of this item ( ex: Mana Potion = 50 gp, so here you will put 50)

Thierd field - how many of this itens you want? (ex: i need 300 mana potions so.. 300)

5- Go to the store you will buy the itens you withdrawed to money to and create a Fixed Point in front of it and Create a Buy a window will appear.

First field - ID of the item you wanna buy

Second field - how many you want. The number of itens you want.(ex: mana potions at 4- i will use here 300)

and Create a Go Label and name it Cave
(at the window that will appear). it will help you in the future

6- Now you are ready to hunt, Go to the place you wanna Hunt and Create a Label when a window appear write Cave on it.( you just created your Label Cave)

IMPORTANT!
You Must put this into a place that you go through, becouse when you get to the Full Check Label he will decide if he goes to the Label Refiller or go back to the Label Cave.

7- When you done making your hunt circle and you are getting near to your Label Cave its time to make a Full Check Label( make it really close the Label Cave, like next to it or at the same sqm) a window will appear.

First field - here you will put the Resources you need to keephunt or to go back DP and Refill.(use the item ID and use ; between itens) Ex:cap<30;268<25

Second field - Refiller - here you put wich Label you will go if it returns true ( if your cap is less then 30 or/and your mana potions "268" less then 25)

Third field - Cave - here you put the Label you will go if returns false.

[Image: 28ai4qd.jpg]

8- Now we create a Label reallty close Label Cave and Name it Refiller.( here is when you leave cave and go back Dp to refill)

9- If you have to sell something, go to the npc that buy the stuff you wanna sell, create a Fixed Point in front of it and create a Sell window will appear.

One field - put the ID of the item you wanna sell.

10- Go to the DP and put your character in front of the locker(dp box) and create a Depositer ( now he will deposit everything that is market in your looter as depositable)

11- now go to a point where you have put your Label Start and make a Go Label and name it Start (at the window that will appear)

Done now you have a Full afk Script!!

================================================================================

I will learn how to edit posts to make this post a little better to read.
Really hope you guys enjoy it,

If you liked/helped you Please Rep ++

If this is not the right place to this thread please move it.

Thanks.
_________________________________________________ Did I Helped? Rep me UP click /\_______________________________________________________
#2
Very good!

Btw, I'll move to English Support, looks a better place for this.
#3
U got rep+ from me , and a small idea maybe upgrade this topic with Targeting aswell and how to cast a spell on monster etc etc .

Regards,
#4
soooo nice bro like afrodick ftw bro really good but no ss no rep!
#5
I got a question on first instruction
1- Go to the Depot you wanna go back to and create a Label named Start ( when the window show up write Start on it )

From where do we go to depot, from the cave or from where D:
#6
Hi buddy, thanks for this thread, it's really helpful, but I have a problem.

I did everything that is said here, I ran the script, but when it came to the "Full check", it didn't go back to refill (I threw spears away to check if it worked, but it didn't). It just moved to the next point and kept hunting. I don't know what's wrong, I did it just like it says here.

Another problem I had is that the character won't move when it gets to the cave, and I saw that the problem is in the "label cave" and the "go label cave". In the waypoints window I can see that it tries to move to the next point but it doesn't, it just moves up and down between the label and the go label.


Forum Jump:


Users browsing this thread: 1 Guest(s)