CODE
SetActiveWindow Darkfall Online
// 2 client macro to cast untill you are out of mana, then switch clients to lend mana.
procedure Casting
delay 2000
Isblack 27,436 // target the round circle to check if your weapon is equiped
call EquipStaff
delay 2000
else
delay 1000
keys 1
delay 300
leftclick
delay 3000
end
end
procedure EquipStaff
// Procedure to equip a staff if yours breaks
delay 1000
keys l
delay 2000
MousePos 79,952 // location of staves in bag
LeftMouseDown
delay 2000
MousePos 25,101 // location of the staves in the hotbar
LeftMouseUp
delay 2000
keys l
delay 2000
keys 2
delay 2000
keys r
delay 2000
end
//procedure EquipStaff2
// Procedure to equip a staff if yours breaks on the second account
//delay 1000
//keys l
//delay 2000
//MousePos 80,954 // location of staves in bag
//LeftMouseDown
//delay 2000
//MousePos 21,102 // location of the staves in the hotbar
//LeftMouseUp
//delay 2000
//keys l
//delay 2000
//keys 1
//delay 2000
//keys r
//delay 2000
//end
procedure LendMana
SetActiveWindow Darkfall Online 2
delay 500
isblack 24,442 // Check to see if staff is equipped
call EquipStaff2
delay 2000
else
leftclick
delay 3000
loop 5
end
end
//Check mana, if below 10% will stop and switch clients to lend mana
loadRGB 651,68
if {RGBblue} > 90
call Casting
else
call LendMana
end
end
// 2 client macro to cast untill you are out of mana, then switch clients to lend mana.
procedure Casting
delay 2000
Isblack 27,436 // target the round circle to check if your weapon is equiped
call EquipStaff
delay 2000
else
delay 1000
keys 1
delay 300
leftclick
delay 3000
end
end
procedure EquipStaff
// Procedure to equip a staff if yours breaks
delay 1000
keys l
delay 2000
MousePos 79,952 // location of staves in bag
LeftMouseDown
delay 2000
MousePos 25,101 // location of the staves in the hotbar
LeftMouseUp
delay 2000
keys l
delay 2000
keys 2
delay 2000
keys r
delay 2000
end
//procedure EquipStaff2
// Procedure to equip a staff if yours breaks on the second account
//delay 1000
//keys l
//delay 2000
//MousePos 80,954 // location of staves in bag
//LeftMouseDown
//delay 2000
//MousePos 21,102 // location of the staves in the hotbar
//LeftMouseUp
//delay 2000
//keys l
//delay 2000
//keys 1
//delay 2000
//keys r
//delay 2000
//end
procedure LendMana
SetActiveWindow Darkfall Online 2
delay 500
isblack 24,442 // Check to see if staff is equipped
call EquipStaff2
delay 2000
else
leftclick
delay 3000
loop 5
end
end
//Check mana, if below 10% will stop and switch clients to lend mana
loadRGB 651,68
if {RGBblue} > 90
call Casting
else
call LendMana
end
end