postreply Home » Forums » Darkfall Online » Darkfall Online - Submissions

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

Posted: March 8th, 2009, 10:18 am
owner2119

Total Posts: 48
Joined: March 6th, 2007, 10:57 am
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, 4:44 pm
darkmaka

Total Posts: 18
Joined: September 6th, 2006, 9:23 pm
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, 11:15 pm
Tault_admin

Total Posts: 29974
Joined: November 9th, 2002, 9:57 am
User avatar
administrator
administrator
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, 4:59 pm
Spitt

Total Posts: 745
Joined: January 29th, 2007, 7:46 pm
User avatar
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, 5:13 pm
Tault_admin

Total Posts: 29974
Joined: November 9th, 2002, 9:57 am
User avatar
administrator
administrator
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 4 guests
postreply