Doer of Deeds AHK Script

Posts 115 of 21 · Page 1 of 2
Doer of Deeds AHK Script
Inspiration from this thread: http://www.mpgh.net/forum/showthread.php?t=826413

THIS SCRIPT USES A CHAR WITH 75 SPD, IF YOU HAVE LESS THAN 75 SPD YOU WILL HAVE TO EDIT THE SCRIPT

Step 1: Read the above. It's important. Do it. Now.

Step 2: Open a client with connect to production and auto aim hacks on it; THE AUTO AIM HACK MUST ALSO TURN ON AUTO FIRE. You can do this using OryxRape 1.1's parameters for auto aim. Also, the auto aim must be turned on by the "i" key.

Step 3: Download the ahk file and put it on your desktop, or somewhere that you can easily access it.

Step 4: Double click on the .ahk file, then press f6 to turn it on.

Step 5: Make sure that your cursor is placed directly in front of your character, and let it work its magic.

So what's the point of the program? To get the doer of deeds achievement. It's very hard to get by just completing quests like normal, so this automates the process. More than just that though, you can use it to roll your chars while you're afk, and to fame farm (granted it'll be REALLY slow fame farming, but hey it's autopilot).

My character went a couple tiles, moved around a little, and then shot a couple times. Da fuq? This is because you are not using a character with exactly 75 speed. You have to edit the .ahk file to match your speed stats. For example, if your speed is 20 then you'd go through the program, and increase all the numbers by 3.75x. If you have 30 speed then you'd increase it by 2.5x, and so on.

Can I do other things while it runs? Afraid not, you'll need to keep your cursor in front of your character for the duration of the script (it automatically cycles 1,000 times, but you can stop it early by going to your toolbar and stopping it there... Or rebooting, of course).

Can I edit it? YES. By all means PLEASE edit it and make it better.
Code:
f6::
#NoEnv  
; #Warn 
SendMode Input
SetWorkingDir %A_ScriptDir%

loop 1000
{
	SendInput /tutorial
	SendInput {Enter}
	Sleep 7000 ; Why the big wait time? In case of lag/connection problems. Otherwise it'd throw the whole program off.

	Send {W down}
	Sleep 920
	Send {W up}

	Send {A down}
	Sleep 825
	Send {A up}

	Send {W down}
	Sleep 800
	Send {W up}

	Send {D down}
	Sleep 900
	Send {D up}

	Send {W down}
	Sleep 680
	Send {W up}

	Send {A down}
	Sleep 600
	Send {A up}

	Send {W down}
	Sleep 700
	Send {W up}

	Send {D down}
	Sleep 400
	Send {D up}

	Send {w down}
	Sleep 400
	Send {w up}

	Send {a down}
	Sleep 400
	Send {a up}

	Send {w down}
	Sleep 600
	Send {w up}

	Send {d down}
	Sleep 370
	Send {d up}

	Send {w down}
	Sleep 500
	Send {w up}

	Send {a down}
	Sleep 320
	Send {a up}

	Send {w down}
	Sleep 4350
	Send {w up}

	Send {i down}

	Send {a down}
	Sleep 200
	Send {a up}

	Send {D down}
	Sleep 275
	Send {D up}

	Send {W down}
	Sleep 4200
	Send {W up}

	Send {a down}
	Sleep 200
	Send {a up}

	Send {D down}
	Sleep 300
	Send {D up}

	Send {a down}
	Sleep 200
	Send {a up}

	Send {w down}
	Sleep 2000
	Send {w up}

	Sleep 2000
	Send {i up}
}
Pic of it working:


Virus scans:
Jotti
Virus Total


Please note that this version is still in beta. It could use a LOT of fine tuning, so if you have some spare time on your hands feel free to mess around with it.
DoerOfDeeds_mpgh.net.zip505 B · 79 downloads Clean
Should be in Tutorial/Source code section.

Also, Adding a hotkey to toggle it on and off would be a better solution to your "screen switching" problem
Quote Originally Posted by Daenerys View Post
Should be in Tutorial/Source code section.

Also, Adding a hotkey to toggle it on and off would be a better solution to your "screen switching" problem
Thanks, I'm going to fix that and re-upload with the hotkey soon as I find out how. Also, my apologies to the mods for posting this in the wrong section, if @Lovroman or @Raple could move it for me I'd appreciate it.
EDIT: Done.
Quote Originally Posted by Kia8 View Post


Thanks, I'm going to fix that and re-upload with the hotkey soon as I find out how. Also, my apologies to the mods for posting this in the wrong section, if @Lovroman or @Raple could move it for me I'd appreciate it.
EDIT: Done.
Put your script that you want to run in:
Code:
[Key]::
//Code here
Return
Quote Originally Posted by Kia8 View Post
Can I do other things while it runs? Afraid not, you'll need to keep your cursor in front of your character for the duration of the script (it automatically cycles 1,000 times, but you can stop it early by going to your toolbar and stopping it there... Or rebooting, of course).
For this, there is a solution to it. Something called ControlSend. Search it up on AHK references and you will understand .
It is pretty useful.
Quote Originally Posted by Daenerys View Post
Put your script that you want to run in:
Code:
[Key]::
//Code here
Return
Thanks.

For this, there is a solution to it. Something called ControlSend. Search it up on AHK references and you will understand .
It is pretty useful.
I appreciate the tip, that'll probably come in handy with future scripts. The problem is that the mouse still needs to positioned in front of the character for the script to work correctly (if autoaim destroyed obstructing blocks this wouldn't be the case). Plus, for some odd reason that I really cannot figure out, ControlSend keeps sending "/tutorial" as "//tutorial".
You can also use a steam achievement unlocker to do it instantly... It's faster too
Quick note for those who don't like to read;
Code:
Send {i down}
	Sleep 1000
	Send {i up}
	Sleep 1000
Replace the bold letter with your autoaim key or change it in game to i
Good mod
Not that it's too hard to do myself but makemake the scrpt for different classes. Already done some myself.
 
29 speed
Code:
f6::
#NoEnv  
; #Warn 
SendMode Input
SetWorkingDir %A_ScriptDir%

loop 1000
{
	SendInput /tutorial
	SendInput {Enter}
	Sleep 7000 
Send {Enter down}
send {Enter up}
Send /tutorial
Send {Enter down}
send {Enter up}
Sleep 5000
Send {i down} 
Send {a down}
Send {w down}
Sleep 1800
send {a up}
Sleep 1200
Send {w up}
Send {d down}
sleep 1320
Send {d up}
Send {w down}
Sleep 1000
Send {w up}
Send {a down}
sleep 550
Send {a up}
send {w down}
Sleep 900
Send {w up}
send {a down}
Sleep 1120
Send {a up}
send {w down}
Sleep 1100
Send {w up}
send {d down}
send {w down}
Sleep 1500
Send {w up}
Send {d up}
send {a down}
Sleep 150
Send {a up}
send {w down}
Sleep 8000
Send {w up}
send {w down}
Sleep 12300
Send {w up}
}
Easy way to recalculate values:
YouSpeed / 75 = multiplier, then multiply all of the delays in the script by multiplier.
//Approved
I got part way into making the script work for 10-74 spd, but realized how freaking long that would take. So instead I just made a c++ program that'll tell you what the next number you should plug in to make the script work for you is.

Code:
#include <iostream>

using namespace std;

int main ( )

{
	float Convert;
	float Spd;
	float Output;
	float Multiplier;
	int Completed = 1;

	cout << "In order to successfully update your ahk file, there will be 22 numbers you have to input." << endl;
	cout << endl;
	cout << "How much speed do you have?" << endl;
	cin >> Spd;

	while (Completed < 23)
	{

		cout << endl;
		cout << "You are on number " << Completed << " of 22." << endl;

	
		cout << "What number would you like to convert?" << endl;
		cin >> Convert;

		Multiplier = Spd / 75;
		Output = Convert / Multiplier;

		cout << endl;
		cout << "Your answer is:" << endl;
		cout << Output << endl;

		Completed = Completed++;
	 }

	system ("PAUSE");
}
Thanks to @krazyshank for the formula. Although it's either YouSpeed / 75 = Multiplier = Number / Multiplier, or 75 / YouSpeed = Multiplier = Multiplier * Number.

I know it's possible to get this to basically build the script for you by having it export the numbers, but I'm gonna figure that out later.
my speed is 19 can anyone here put the code for speed 19?

sorry im noob
Quote Originally Posted by BARm View Post
Code:
Change:
Multiplier = Spd / 75;
To:
Multiplier = Spd / 19;
Such a great help...

It's like taking a flashlight away from a kid who's lost in forest
I did what you guys said for the multiplier but it wont work for 50 speed can someone help me out thanks
im sorry but how do i open/use this ahk file? i seriously dont know can someone please teach me? thank you
Posts 115 of 21 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

Need help?