Post Reply Home » Forums » Darkfall Online » Darkfall Online - Submissions

Autoit script for mana missile, heal and rest. : Darkfall Online - Submissions

Posted: March 8th, 2009
Total Posts:48 Joined:2007
This is a script that will look at the grounf then cast mana missile. This will do damge and raise you defense and magic. It will use heal 2 times during the casting. This will raise your heals. It will rest then start all over again. Your rest will raise aswell.

You must have staff out and be able to cast mana missile before starting the script.

You need Autoit installed. Then just copy the code here to a txt file and name it darkfallscript.au3. Then just double click darkfallscript.au3 and click in darkfall.

This does not work in fullscreen!!!!

Key bindings. Change as needed or use my setup.
3 staff
4 mana missile
5 heal
0 rest
p needs to be binded in game to down arrow

#Include <Misc>
; Detect windows by class name
opt("winTitleMatchMode", 4)

; Set Coordinate mode to relative to window
AutoItSetOption ( "PixelCoordMode", 2 )
AutoItSetOption ( "MouseCoordMode", 2 )
AutoItSetOption ( "SendKeyDownDelay", 50 )

global $Window = winGetHandle("classname=SFMainWindow")
If @error Then
MsgBox(4096, "Error", "Could not find the correct window WinActivate($Window); ")
endif


sleep(5000)


; Main Loop
While WinExists($Window)





Send("{p down}")
sleep(5000)
Send("{p up}")
sleep(1000)


MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)

Send ( "5" )
MouseClick("left")
sleep (10000)

Send ( "4" )
sleep (1000)



MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)

Send ( "5" )
MouseClick("left")
sleep (10000)







Send ( "r" )
sleep (1000)
Send ( "0" )
sleep (1000)
MouseClick("left")
sleep (160000)
Send ( "w" )
sleep (5000)
Send ( "r" )
sleep (5000)
Send ( "4" )
sleep (1000)




Wend
Posted: March 8th, 2009
Total Posts:18 Joined:2006
This is look good.

You can change

Code: Select all

MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000)
MouseClick("left")
sleep (5000) 
Into:

Code: Select all

		For $count = 1 to 10

			MouseClick("left")
			Sleep (5000) 

		Next


And why this macro won't work in fullscreen?
Posted: March 8th, 2009
User avatar
administrator
Total Posts:29917 Joined:2002
Can members say yay or nay to this so we may give tu bucks and/or premium. If you nay the submission remember to include as to why.
Posted: March 9th, 2009
User avatar
Total Posts:739 Joined:2007
If the guy can fix the macro to make it more neat, then I would say yay. For now, it's kinda long and could be a lot cleaner.
Posted: March 10th, 2009
User avatar
administrator
Total Posts:29917 Joined:2002
Clean up your code and then join the premium area i believe is what zycam means :)
Want Advertisements After The Last Post Removed? Create A Free Account!
blue large dotWho is online
Users browsing this forum: No registered users and 11 guests
Post Reply