Darkfall Bots - Bot which automatically restocks
Posted: May 12th, 2010, 11:19 am
Hello.
This post is to submit a macro that automatically restocks from a bank while macroing. It uses drag and drop functionality to achieve this, so is completely safe unlike 'injection' style bots.
Introduction
I recently came back to Darkfall after not playing for 10 months. After 3 days of wasting time, I decided to buy a subscription here because all my old mount wall tricks were fixed.
Anyway, when i noticed you can earn points I decided I would start giving out some old tricks from BETA to today. Firstly I'll submit the little gem I created for macroing.
The reason I created this was because when hacks started becoming popular, people were always bugging into buildings/ground and macroing.
The problem was, other hackers would come find you and kill you for 10k regs. So I invented the macro with automatic restock. Most of the time I would come back to myself dead if i did this in town, but I would always have macroed from 1-8 hours and had lost nothing for my troubles.
Also, one secret is that I think admins can look in my pack and always saw that i had little regs on me, so it was probably saving me from getting banned because they didnt realise I was macroing with a restock tool.
My solution - The auto restocker
So the tool is used in nub or clan cities to mitigate losing regs when you die, because when you die... (and you eventually will when macroing), you wont lose much. To achieve this functionality, you will define how many regs you want to burn per restock, you could make it from say 100-1000
The last thing I did before quitting DF I also made it so you can have a pile of staves and then it restocks staves based on your input of durability.
Many people tried to make ways to macro more than 500-1000 times by switching staves. But they all sucked. I always saw this being done in a retarded way, such as assigning different staves to hotkeys in their bar and cycling. This is ridiculous. it requires you to LOAD them each time you use the macro and is annoying.
The best way to do this is you make a stack of staves in your pack on top of each other. When the macro starts, you click the pile of staves then click the hotbar you want to load. The macro then calculates how often to restock a staff (item durability X 100), and then will drag one of the staves from the pile location to the hotbar location you defined at the script start.
When I made this, it got spread around quite a bit so some of you might have already heard of it. But I can assure you that I am its original author. If anybody got points from my script then f u
The caveat for today is that I hear macro warnings through to bans are occurring, but ive been using this for a few days fine so far. You could get a warning for this, but that's like everything.
I'm going to redo this soon for AHK instead of AutoIT, so that it works with the new DFTools. This will not work with DFTools at the moment because only AHK not AutoIT is properly supported by DFTools.
If i get the points for this macro I'll update this for AHK too for free so you can run this while minimized.
It will involve about an hours work to translate it to AHK, because it has to calculate the window size of the minimzed window and then use relative mapping for the item drag/drop. i had always planned to build the minimized function for this, and I had started one myself, but DFTools is a superior framework and is the best to use.
Cheers
----
FILES:
- First one is a single cast with 1 reg.
- Second one restocks 2 regs and swaps durability. Dont mind some of the labelling being for 'bows' in the second one.
Notes ***
You will find this script will not be very nub friendly. I might answer a few questions, but i wont support it. The script mainly help intermediate to advanced programmers learn about better syntax for developing macros, rather than helping a newbie completely automate macroing.
----
Usage
Firstly open the file and have a look. There are some variables you will need to change. Like your hotkey numbers. Also, in the one with changes staff based on durability, you will noticed it works both for BOWS and STAFFS and some of the labelling is like this.
Start by opening your bank and your backpack. then Run the script.
It will ask you to spots in your pack then spots in your bank which contain the regs. your regs for restock should be in the main bank and not a bag. It is impossible for this to grab too many regs or something like that based on the way drag/drop transactions work.
Then, you may also be asked to setup the staff changer in the advanced script. In this one, you make a stack of staffs pretty much on top of each other. When you start the script, it will prompt you to click your staf of staves once, then click the hotkey you want the staves to be dragged to.
Thats pretty much it. Enjoy.
Last words
It wouldnt be too had to make this nub friendly, and enhance it. Some things that i would do if i was going to spend time improving it:
- Add a configuration file with the settings you configure and break up the 'setup' and 'script' into two different files. This way you can setup once then run it over and over, rathert han having to setup each time you run it.
-Add some more configuration parameters in the setup: we could add all thehotkey config stuff in the setup. even make a GUI for it instead of a time based dialog.
-Etc. If anybody wants to work on this, we could work on another release and make it something everybody could use, even nubs. It wont be hard for anybody with intermediate AHK skills. But wait until I release the AHK version to do this, because its kinda useless in AutoIT when it wont work with DFTools.
So say yay !@#$%^* so I will develop the better version for DFTools so you can run it while minimized!!
cheers
Jeremy
This post is to submit a macro that automatically restocks from a bank while macroing. It uses drag and drop functionality to achieve this, so is completely safe unlike 'injection' style bots.
Introduction
I recently came back to Darkfall after not playing for 10 months. After 3 days of wasting time, I decided to buy a subscription here because all my old mount wall tricks were fixed.
Anyway, when i noticed you can earn points I decided I would start giving out some old tricks from BETA to today. Firstly I'll submit the little gem I created for macroing.
The reason I created this was because when hacks started becoming popular, people were always bugging into buildings/ground and macroing.
The problem was, other hackers would come find you and kill you for 10k regs. So I invented the macro with automatic restock. Most of the time I would come back to myself dead if i did this in town, but I would always have macroed from 1-8 hours and had lost nothing for my troubles.
Also, one secret is that I think admins can look in my pack and always saw that i had little regs on me, so it was probably saving me from getting banned because they didnt realise I was macroing with a restock tool.
My solution - The auto restocker
So the tool is used in nub or clan cities to mitigate losing regs when you die, because when you die... (and you eventually will when macroing), you wont lose much. To achieve this functionality, you will define how many regs you want to burn per restock, you could make it from say 100-1000
The last thing I did before quitting DF I also made it so you can have a pile of staves and then it restocks staves based on your input of durability.
Many people tried to make ways to macro more than 500-1000 times by switching staves. But they all sucked. I always saw this being done in a retarded way, such as assigning different staves to hotkeys in their bar and cycling. This is ridiculous. it requires you to LOAD them each time you use the macro and is annoying.
The best way to do this is you make a stack of staves in your pack on top of each other. When the macro starts, you click the pile of staves then click the hotbar you want to load. The macro then calculates how often to restock a staff (item durability X 100), and then will drag one of the staves from the pile location to the hotbar location you defined at the script start.
When I made this, it got spread around quite a bit so some of you might have already heard of it. But I can assure you that I am its original author. If anybody got points from my script then f u
The caveat for today is that I hear macro warnings through to bans are occurring, but ive been using this for a few days fine so far. You could get a warning for this, but that's like everything.
I'm going to redo this soon for AHK instead of AutoIT, so that it works with the new DFTools. This will not work with DFTools at the moment because only AHK not AutoIT is properly supported by DFTools.
If i get the points for this macro I'll update this for AHK too for free so you can run this while minimized.
It will involve about an hours work to translate it to AHK, because it has to calculate the window size of the minimzed window and then use relative mapping for the item drag/drop. i had always planned to build the minimized function for this, and I had started one myself, but DFTools is a superior framework and is the best to use.
Cheers
----
FILES:
- First one is a single cast with 1 reg.
- Second one restocks 2 regs and swaps durability. Dont mind some of the labelling being for 'bows' in the second one.
Notes ***
You will find this script will not be very nub friendly. I might answer a few questions, but i wont support it. The script mainly help intermediate to advanced programmers learn about better syntax for developing macros, rather than helping a newbie completely automate macroing.
----
Usage
Firstly open the file and have a look. There are some variables you will need to change. Like your hotkey numbers. Also, in the one with changes staff based on durability, you will noticed it works both for BOWS and STAFFS and some of the labelling is like this.
Start by opening your bank and your backpack. then Run the script.
It will ask you to spots in your pack then spots in your bank which contain the regs. your regs for restock should be in the main bank and not a bag. It is impossible for this to grab too many regs or something like that based on the way drag/drop transactions work.
Then, you may also be asked to setup the staff changer in the advanced script. In this one, you make a stack of staffs pretty much on top of each other. When you start the script, it will prompt you to click your staf of staves once, then click the hotkey you want the staves to be dragged to.
Thats pretty much it. Enjoy.
Last words
It wouldnt be too had to make this nub friendly, and enhance it. Some things that i would do if i was going to spend time improving it:
- Add a configuration file with the settings you configure and break up the 'setup' and 'script' into two different files. This way you can setup once then run it over and over, rathert han having to setup each time you run it.
-Add some more configuration parameters in the setup: we could add all thehotkey config stuff in the setup. even make a GUI for it instead of a time based dialog.
-Etc. If anybody wants to work on this, we could work on another release and make it something everybody could use, even nubs. It wont be hard for anybody with intermediate AHK skills. But wait until I release the AHK version to do this, because its kinda useless in AutoIT when it wont work with DFTools.
So say yay !@#$%^* so I will develop the better version for DFTools so you can run it while minimized!!
cheers
Jeremy