[AC Tool] Simple ACTool Magic Casting Script

08/14/2009 11:48 Penakle#1
Code:
// This is a simple casting script written by TeabagGus
// 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