Locked Home » Forums » Legacy & Archived » Archived Content » Darkfall Online » DFO - Bots / Macros / Hacks

Darkfall Bots - Bot which automatically restocks : DFO - Bots / Macros / Hacks

Posted: May 12th, 2010
jeremy01
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 :D

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


Attachments:
magic_grinders_with_restock.zip Register to unlock hidden link
(5.07 KiB) Downloaded 17 times
Posted: May 12th, 2010
User avatar
Total Posts:414 Joined:2006
Being a Premium member already you should put this post in the "DFO - Premium - Discussions" section instead of using this public one. You can still receive TU bucks there.
Posted: May 12th, 2010
jeremy01
Admin is welcome to move it for me, IMO the forum labels are unclear on this matter.
Posted: May 17th, 2010
Total Posts:191 Joined:2009
I think the basics behind this have potential. But in itself I couldn“t bother to test it for a Yay or Nay since the macro politics have been seriously tightened, ans macroing next to a bank, no matter how few Ressources you have will get you banned rather quick.
Posted: May 25th, 2010
jeremy01
Fair assessment. I was using it on a dual screen monitor setup and an admin messaged me after about 3 days macroing, luckily i was watching.

However. since i responded to him, I have macrod about 10 days since without a problem. I do live in Australia, i wonder whether this has something to do with it or whether responding to the GM and having 0 bans is good for macroing safely.

I think ultimately what you want to do is pixel detect and auto chat to GM's but I'm not going to spread something like that because the admins will just start working around it with a logic test or something. :D
Posted: May 26th, 2010
Total Posts:191 Joined:2009
I think a step in the right direction would be a logout when you receive a PM. That alone would be a) simple and b) effective for a while. (Eventually they will stop sending a message if this gets the standard.)
Posted: May 30th, 2010
Total Posts:44 Joined:2009
dabladest wrote:I think a step in the right direction would be a logout when you receive a PM. That alone would be a) simple and b) effective for a while. (Eventually they will stop sending a message if this gets the standard.)
Said macro already exists. There are even macros that auto reply when you receive a PM. They are imperfect though.
Posted: May 31st, 2010
User avatar
administrator
Total Posts:29891 Joined:2002
2k tu bucks and moved to confirmed.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 7 guests
Locked