Page 1 of 1

Darkfall Casting and Gathering Macros

Posted: March 2nd, 2009, 12:49 pm
by fauzool
Not sure if this is already posted or not.

Magic Casting Script


Using ACTool
Save the following code as a .mac file.

Code: Register to unlock hidden link

// This is a simple casting script written by TeabagGus of http://www.!@#$%^*
// This macro will equip your staff, look down at the ground to damage you with the spell while casting
// It will then cast heal self once and rest.
// Change the Loop 20 in SpellCast procedure if you don't have that much mana or health (if looking down).

// Start with your staff equipped but sheathed

//HOTBAR///

//Slot 6 = Heal Self
//Slot 7 = Mana Missile or spell to be cast
//Slot 9 = Rest


// This line is necessary to select the proper window
SetActiveWindow Darkfall Online

Constants
  MouseDelay=3000
  RestDelay=180000
End

////////////////////////////////////////

Procedure EquipWeapon
  Delay 2 sec
  Keydown {DOWN} 2 sec // Comment this out if you don't want to look down and hit yourself
  Keys R
  Delay $MouseDelay
  Keys 7  
End

////////////////////////////////////////

Procedure SpellCast  
  Loop 20
    LEFTCLICK
    Delay $MouseDelay    
  End  
 Keys 6
 Delay $MouseDelay
 LeftClick
 Delay 8 sec    
End
  
/////////////////////////////////////////
  
Procedure Rest   
  Keys R
  Delay 2 sec
  Keys 9
  Delay 2 sec
  LEFTCLICK
  Delay $RestDelay
  Keys W
  Delay 2 sec
End
    
//Start Macro
  
Loop 10000    
   Call EquipWeapon
   Call SpellCast
   Call Rest
End
Gathering Script

Save the following code as a .mac file.

Edited to unequip/equip harvesting tool. This will allow you to have multiple tools in your inventory. This is a quick fix because I will be moving the macros to Autoit for Pixel and Coord tracking.

Code: Register to unlock hidden link

// Very Simple Gathering script written by TeabagGus of http://www.!@#$%^*
// This simple script will unsheath your harvesting tool and harvest 50 times, rest and then harvest 50 more times
// This should allow you to completely exhaust all the resources with failures.
// Feel free to change the Loop number in the Harvest procedure if your stamina can or can't handle that many attempts
// Start with your harvesting tool equipped but sheathed

//HOTBAR///
//Slot 8 = Harvesting Tool
//Slot 9 = Rest


// This line is necessary to select the proper window
SetActiveWindow Darkfall Online

Constants
  MouseDelay=11000
  RestDelay=180000  
End

////////////////////////////////////////

Procedure EquipWeapon  
  Delay 1000
  // Comment out this next line if you don't want to look down.
  Keydown {DOWN} 2 sec
  Keys R
  Delay 2 sec 
End

////////////////////////////////////////

Procedure Harvest 
  Loop 50
    LEFTCLICK
    Delay $MouseDelay   
  End  
End
  
/////////////////////////////////////////
  
  Procedure Rest
    Delay 1 sec
    Keys 8
    Delay 1 sec
    Keys R
    Delay 2 sec
    Keys 9
    Delay 2 sec
    LEFTCLICK
    Delay $RestDelay
    Keys W
    Delay 2 sec
    Keys 8
    Delay 1 sec
  End
  
  //Start Macro
   
Loop 2
    Call EquipWeapon
    Call MouseClick
    Call Rest    
  End

Posted: March 2nd, 2009, 2:30 pm
by Spitt
/yay for points for finding the site

Posted: March 3rd, 2009, 4:32 pm
by Tault_admin
Yea 200 points granted and moving to confirmed.

help

Posted: March 9th, 2009, 8:59 pm
by rumbler
can someone gemmi a little tutorial on how to setup AUTOHOTKEY? i feel stupid but can't get it to work

Posted: March 10th, 2009, 6:00 pm
by Tault_admin
im sure the website has a good guide for ya :)