Locked Home » Forums » Legacy & Archived » Archived Content » Darkfall Online » DFO - Bots / Macros / Hacks

DFO Bots - Two Accounts, One Computer Melee & Magic / Parry : DFO - Bots / Macros / Hacks

Posted: June 4th, 2009
Total Posts:9 Joined:2009
Here are two macros I created for melee / parry on one computer with two accounts. Both accounts need to be ran in windowed mode.

Program used is AutoIt V3

Dual Magic / Parry

Code: Register to unlock hidden link

#cs ----------------------------------------------------------------------------
	Script by: Eiles


	Script requires two Accounts running on same computer in window mode.
	4 Individual Staffs should be placed in Hotbar 1 - 4 on the Attacking Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer.
	4 Individual Shields should be placed in Hotbar 1 - 4 on the Parrying Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer

	Begin the script with Attacking account unequiped and Focused in FPS mode.
	Make sure the Parrying account has only the sword equiped. The shields should be unequiped and in your inventory.
	Parrying Account should be in FPS mode and in the background upon Scrip activation.

	Script begins 10 seconds after you answer the questions, so you should have enough time to ensure Accounts are setup properly and alt-tabing between each other fluidly.

#ce-------------------------------------------------------



Dim $a, $b, $c, $d, $e
Dim $Weapon
Global $Paused
$b = InputBox( "Question", "How many times would you like to Cast?", "40" )
$c = InputBox( "Question", "How long would you like to rest? (1 sec = 1000)", "120000" )
$d = InputBox( "Question", " What Hotkey is your spell on?", "5" )
$e = InputBox( "Question", "What is the cast time of the spell? (1 sec = 1000)", "2000" )
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$Weapon = 1
$Shield = 1
$a = 0
Sleep ( 10000 )

while 1
	sleep ( 100 )
		Call ("EquipAttack")
		sleep ( 500 )
		Call ("CombatModeA")
		sleep ( 500 )
		Call ("EquipDefense")
		sleep ( 500 )
		Call ("CombatModeD")
		sleep ( 500 )
		Call("Attack")
		sleep ( 500 )
		Call ("Rest")
WEnd

Func EquipAttack()
	Sleep(1000)
	;send ("{1} - {4}") ; Weapon
	Send("{" & $Weapon & "}")
	$Weapon = $Weapon + 1
	If $Weapon = 5 Then
		$Weapon = 1
	EndIf
	Sleep(1000)
EndFunc

Func CombatModeA()
	Sleep (100 )
	Send ( "r" )
	Sleep ( 1000 )
	Send ( $d )
	Sleep ( 200 )
EndFunc

Func EquipDefense()
	send ( "!{TAB}" )
	sleep ( 500 )
	;send ("{1} - {4}") ; Shield
	Send("{" & $Shield & "}")
	$Shield = $Shield + 1
	If $Shield = 5 Then
		$Shield = 1
	EndIf
	Sleep(1000)
EndFunc

Func CombatModeD()
	Sleep (100 )
	Send ( "r" )
	Sleep ( 1000 )
	send ( "!{TAB}" )
EndFunc

Func Attack()
	Do
		sleep ( 100 )
		Mouseclick ( "Left" )
		sleep ( $e - 1000 )
		send ( "!{TAB}" )
		sleep ( 100 )
		Send ( "{V DOWN}" )
		sleep ( 1000 )
		Send ( "{V UP}" )
		sleep ( 500 )
		send ( "!{TAB}" )
		sleep ( 1000 )
		$a = $a + 1
	Until $a = $b
	$a = 0
EndFunc

Func Rest()
	Send ( "R" )
	Sleep ( 1500 )
	Send ( "0" )
	Sleep ( 1500 )
	Mouseclick ( "Left" )
	Sleep ( 1500 )
	send ( "!{TAB}" )
	Sleep ( 1500 )
	Send ( "R" )
	Sleep ( 1500 )
	Send ( "0" )
	Sleep ( 1500 )
	Mouseclick ( "Left" )
	Sleep ( 1500 )
	send ( "!{TAB}" )
	Sleep ( $c )
	Send ( "w" )
	Sleep ( 1500 )
	send ( "!{TAB}" )
	Sleep ( 1500 )
	Send ( "w" )
	Sleep ( 2000 )
	send ( "!{TAB}" )
	Sleep ( 1500 )
EndFunc

Func TogglePause()
	$Paused = Not $Paused
	While $Paused
		Sleep(100)
	WEnd
EndFunc   ;==>TogglePause

Func Terminate( )
    Exit 0
EndFunc
Melee / Parry Macro

Code: Register to unlock hidden link

#cs ----------------------------------------------------------------------------
	Script by: Eiles


	Script requires two Accounts running on same computer in window mode.
	4 Individual Weapons should be placed in Hotbar 1 - 4 on the Attacking Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer.
	4 Individual Shields should be placed in Hotbar 1 - 4 on the Parrying Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer

	Begin the script with Attacking account unequiped and Focused in FPS mode.
	Make sure the Parrying account has only the sword equiped. The shields should be unequiped and in your inventory.
	Parrying Account should be in FPS mode and in the background upon Scrip activation.

	Script begins 10 seconds after you answer the questions, so you should have enough time to ensure Accounts are setup properly and alt-tabing between each other fluidly.
	
	Pause Key Pauses the Script
	Esc Key Ends the Script

#ce-------------------------------------------------------

Dim $a, $b, $c
Dim $Weapon
Global $Paused
$b = InputBox( "Question", "How many times would you like to swing? (1 sec = 1000)", "25" )
$c = InputBox( "Question", "How long would you like to rest? (1 sec = 1000)", "155000")
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$Weapon = 1
$Shield = 1
$a = 0
Sleep ( 10000 )

while 1
	sleep ( 100 )
		Call ("EquipAttack")
		sleep ( 500 )
		Call ("CombatMode")
		sleep ( 500 )
		Call ("EquipDefense")
		sleep ( 500 )
		Call ("CombatModeD")
		sleep ( 500 )
		Call("Attack")
		sleep ( 500 )
		Call ("Rest")
WEnd

Func EquipAttack()
	Sleep(1000)
	;send ("{1} - {4}") ; Weapon
	Send("{" & $Weapon & "}")
	$Weapon = $Weapon + 1
	If $Weapon = 5 Then
		$Weapon = 1
	EndIf
	Sleep(1000)
EndFunc   ;==>Equip

Func CombatMode()
	Sleep (100 )
	Send ( "r" )
	Sleep ( 1000 )
EndFunc

Func EquipDefense()
	send ( "!{TAB}" )
	sleep ( 500 )
	;send ("{1} - {4}") ; Shield
	Send("{" & $Shield & "}")
	$Shield = $Shield + 1
	If $Shield = 5 Then
		$Shield = 1
	EndIf
	Sleep(1000)
EndFunc

Func CombatModeD()
	Sleep (100 )
	Send ( "r" )
	Sleep ( 1000 )
	send ( "!{TAB}" )
EndFunc

Func Attack()
	Do
		sleep ( 100 )
		Mouseclick ( "Left" )
		sleep ( 100 )
		send ( "!{TAB}" )
		sleep ( 100 )
		Send ( "{V DOWN}" )
		sleep ( 1000 )
		Send ( "{V UP}" )
		sleep ( 500 )
		send ( "!{TAB}" )
		sleep ( 1000 )
		$a = $a + 1
	Until $a = $b
	$a = 0
EndFunc

Func Rest()
	Send ( "R" )
	Sleep ( 1500 )
	Send ( "0" )
	Sleep ( 1500 )
	Mouseclick ( "Left" )
	Sleep ( 1500 )
	send ( "!{TAB}" )
	Sleep ( 1500 )
	Send ( "R" )
	Sleep ( 1500 )
	Send ( "0" )
	Sleep ( 1500 )
	Mouseclick ( "Left" )
	Sleep ( 1500 )
	send ( "!{TAB}" )
	Sleep ( $c )
	Send ( "w" )
	Sleep ( 1500 )
	send ( "!{TAB}" )
	Sleep ( 1500 )
	Send ( "w" )
	Sleep ( 2000 )
	send ( "!{TAB}" )
	Sleep ( 1500 )
EndFunc

Func TogglePause()
	$Paused = Not $Paused
	While $Paused
		Sleep(100)
	WEnd
EndFunc   ;==>TogglePause

Func Terminate( )
    Exit 0
EndFunc
Posted: June 5th, 2009
User avatar
administrator
Total Posts:29891 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: June 5th, 2009
Total Posts:9 Joined:2009
UPDATE

REVISED MY SCRIPTS

Be sure to read the instructions on the scripts to setup macro successfully.


Melee / Parry

Code: Register to unlock hidden link

#cs ----------------------------------------------------------------------------
	Script by: Eiles


	Script requires two Accounts running on same computer in window mode.
	4 Individual Weapons should be placed in Hotbar 1 - 4 on the Attacking Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer.
	4 Individual Shields should be placed in Hotbar 1 - 4 on the Parrying Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer

	Begin the script with Attacking account unequiped and Focused in FPS mode.
	Make sure the Parrying account has only the sword equiped and Unsheathed. The shields should be unequiped and in your inventory.
	Parrying Account should be in FPS mode and in the background upon Scrip activation.

	Script begins 10 seconds after you answer the questions, so you should have enough time to ensure Accounts are setup properly and alt-tabing between each other fluidly.

	Pause Key Pauses the Script
	Esc Key Ends the Script

#ce-------------------------------------------------------

Dim $a, $b, $c
Dim $Weapon
Global $Paused
$b = InputBox( "Question", "How many times would you like to swing? (1 sec = 1000)", "25" )
$c = InputBox( "Question", "How long would you like to rest? (1 sec = 1000)", "155000")
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$Weapon = 1
$Shield = 1
$a = 0
Sleep ( 10000 )

while 1
	sleep ( 100 )
		Call ("EquipAttack")
		sleep ( 500 )
		Call ("CombatMode")
		sleep ( 500 )
		Call ("EquipDefense")
		sleep ( 500 )
		Call("Attack")
		sleep ( 500 )
		Call ("Rest")
WEnd

Func EquipAttack()
	Sleep(500)
	;send ("{1} - {4}") ; Weapon
	Send("{" & $Weapon & "}")
	$Weapon = $Weapon + 1
	If $Weapon = 5 Then
		$Weapon = 1
	EndIf
	Sleep(500)
EndFunc   ;==>Equip

Func CombatMode()
	Sleep (100 )
	Send ( "r" )
	Sleep ( 500 )
EndFunc

Func EquipDefense()
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
	;send ("{1} - {4}") ; Shield
	Send("{" & $Shield & "}")
	$Shield = $Shield + 1
	If $Shield = 5 Then
		$Shield = 1
	EndIf
	Sleep(500)
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
EndFunc

Func Attack()
	Do
		sleep ( 100 )
		Mouseclick ( "Left" )
		sleep ( 100 )
		Send ( "{Alt Down}" )
		Sleep ( 100 )
		Send ( "{TAB Down}" )
		Sleep ( 100 )
		Send ( "{TAB UP}" )
		Sleep ( 100 )
		Send ( "{Alt Up}" )
		sleep ( 100 )
		Send ( "{V DOWN}" )
		sleep ( 1000 )
		Send ( "{V UP}" )
		sleep ( 500 )
		Send ( "{Alt Down}" )
		Sleep ( 100 )
		Send ( "{TAB Down}" )
		Sleep ( 100 )
		Send ( "{TAB UP}" )
		Sleep ( 100 )
		Send ( "{Alt Up}" )
		sleep ( 1000 )
		$a = $a + 1
	Until $a = $b
	$a = 0
EndFunc

Func Rest()
	Sleep ( 500 )
	Send ( "R" )
	Sleep ( 1500 )
	Send ( "0" )
	Sleep ( 1500 )
	Mouseclick ( "Left" )
	Sleep ( $c )
	Send ( "w" )
	Sleep ( 1000 )
EndFunc

Func TogglePause()
	$Paused = Not $Paused
	While $Paused
		Sleep(100)
	WEnd
EndFunc   ;==>TogglePause

Func Terminate( )
    Exit 0
EndFunc

Heal Self | Mana Missile or Offensive Spell / Parry

Code: Register to unlock hidden link

#cs ----------------------------------------------------------------------------
	Magic / Parry Macro
	Script by: Eiles

	This is a two Macros in one Script. You have the options to select either Combination Heal Self / Mana Missile Script, or the Offensive Spell Script.
	The Heal Self / Mana Missile Script Loops Heal Self then Mana Missile 8 Times as one Cycle. A new character should be able to do 4 cycles before rest.
	The Offensive Spell Script allows you to set up a Parrying account for your Mana Missile or other Offensive Spell.
	
	MAKE SURE YOU SETUP YOUR ACCOUNTS AS STATED BELOW

	Script requires two Accounts running on same computer in window mode.
	4 Individual Staffs should be placed in Hotbar 1 - 4 on the Attacking Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer.
	4 Individual Shields should be placed in Hotbar 1 - 4 on the Parrying Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer

	Begin the script with Attacking account unequiped and Focused in FPS mode.
	Make sure the Parrying account has only the sword equiped and Unsheathed. The shields should be unequiped and in your inventory.
	Parrying Account should be in FPS mode and in the background upon Scrip activation.

	Script begins 10 seconds after you answer the questions, so you should have enough time to ensure Accounts are setup properly and alt-tabing between each other fluidly.

	Pause Key Pauses the Script
	Esc Key Ends the Script

#ce-------------------------------------------------------



Dim $a, $b, $c, $d, $e, $f, $g, $h, $i
Dim $Weapon
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$Weapon = 1
$Shield = 1
$a = 0
$e = 0
$i = 8
$h = InputBox( "Question", "Would you like to use Heal Self / Mana Missile Macro?(1 = Yes, 2 = No)", "1" )

If $h = 1 Then
	$g = InputBox( "Question", "How many times would you like to Loop Heal Self / Mana Missile? (1 Loop = Heal Self + Mana Missile 8 Times)", "4" )
	$c = InputBox( "Question", "How long would you like to rest? (1 sec = 1000)", "120000" )
	$d = InputBox( "Question", " What Hotkey is your Mana Missile spell on?", "5" )
	$f = InputBox( "Question", "What Hotkey is your Heal Self Spell on?", "6" )
		Sleep ( 10000 )
		While 1
			Sleep ( 1000 )
			Call ("EquipAttack")
			Sleep (500)
			Call ( "CombatMode")
			Sleep (500)
			Call ("EquipDefense")
			Sleep (500)
			Do
				Call ( "Heal" )
				$a = $a + 1
				Do
					Call ( "AttackH" )
					$e = $e + 1
				Until $e = $i
				$e = 0
			Until $a = $g
			$a = 0
			Call ( "Rest" )
		WEnd

ElseIf $h = 2 Then
	$b = InputBox( "Question", "How many times would you like to Cast Offensive Spell?", "40" )
	$c = InputBox( "Question", "How long would you like to rest? (1 sec = 1000)", "120000" )
	$d = InputBox( "Question", " What Hotkey is your Offensive spell on?", "5" )
	$e = InputBox( "Question", "What is the cast time of the spell? (1 sec = 1000)", "2000" )
		Sleep ( 10000 )
		while 1
				sleep ( 100 )
				Call ("EquipAttack")
				sleep ( 500 )
				Call ("CombatModeA")
				sleep ( 500 )
				Call ("EquipDefense")
				sleep ( 500 )
				Call("Attack")
				sleep ( 500 )
				Call ("Rest")
			WEnd
EndIf


Func EquipAttack()
	Sleep(500)
	;send ("{1} - {4}") ; Weapon
	Send("{" & $Weapon & "}")
	$Weapon = $Weapon + 1
	If $Weapon = 5 Then
		$Weapon = 1
	EndIf
	Sleep(500)
EndFunc

Func CombatModeA()
	Sleep ( 500 )
	Send ( "r" )
	Sleep ( 1000 )
	Send ( $d )
	Sleep ( 1000 )
EndFunc

Func EquipDefense()
	Sleep ( 500 )
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
	;send ("{1} - {4}") ; Shield
	Send("{" & $Shield & "}")
	$Shield = $Shield + 1
	If $Shield = 5 Then
		$Shield = 1
	EndIf
	Sleep ( 1000 )
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
EndFunc

Func CombatMode()
	Sleep (100 )
	Send ( "r" )
	Sleep ( 500 )
EndFunc

Func Heal()
	Sleep (500)
	Send ( $f )
	Sleep ( 500 )
	MouseClick ( "Left" )
	Sleep ( 4300 )
	Send ( $d )
	Sleep (200)
EndFunc

Func Attack()
	Do
		sleep ( 100 )
		Mouseclick ( "Left" )
		sleep ( 500 )
		Send ( "{Alt Down}" )
		Sleep ( 100 )
		Send ( "{TAB Down}" )
		Sleep ( 100 )
		Send ( "{TAB UP}" )
		Sleep ( 100 )
		Send ( "{Alt Up}" )
		sleep ( $e - 1500 )
		Send ( "{V DOWN}" )
		sleep ( 1000 )
		Send ( "{V UP}" )
		sleep ( 1000 )
		Send ( "{Alt Down}" )
		Sleep ( 100 )
		Send ( "{TAB Down}" )
		Sleep ( 100 )
		Send ( "{TAB UP}" )
		Sleep ( 100 )
		Send ( "{Alt Up}" )
		sleep ( 500 )
		$a = $a + 1
	Until $a = $b
	$a = 0
EndFunc

Func AttackH()
	sleep ( 100 )
	Mouseclick ( "Left" )
	sleep ( 500 )
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
	Send ( "{V DOWN}" )
	sleep ( 800 )
	Send ( "{V UP}" )
	sleep ( 500 )
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
EndFunc

Func Rest()
	Sleep ( 500 )
	Send ( "R" )
	Sleep ( 1500 )
	Send ( "0" )
	Sleep ( 1500 )
	Mouseclick ( "Left" )
	Sleep ( $c )
	Send ( "w" )
	Sleep ( 1000 )
EndFunc

Func HealSelf()
		Sleep ( 500 )
		Send ( "r" )
		Sleep ( 1000 )
		Send ( $f )
		Sleep ( 500 )
	Do
		Sleep ( 500 )
		MouseClick ( "Left" )
		Sleep (

	$a = $a + 1
	Until $a = $g
	$a = 0
EndFunc

Func TogglePause()
	$Paused = Not $Paused
	While $Paused
		Sleep(100)
	WEnd
EndFunc   ;==>TogglePause

Func Terminate( )
    Exit 0
EndFunc
Posted: June 6th, 2009
Total Posts:9 Joined:2009
Ive spent a lot of time on these. Anybody use them?
Posted: June 6th, 2009
Total Posts:3 Joined:2009
eiles wrote:Ive spent a lot of time on these. Anybody use them?
Ye, thx a lot =)

Good work)) Can you pls add function "mana to stamina" to melee script?
It goes skill up melee faster)))
Posted: June 6th, 2009
Total Posts:19 Joined:2004
Yay, works
Posted: June 6th, 2009
Total Posts:9 Joined:2009
Ill see what I can do with the mana to stamina. Ill have to factor people who dont have the skill and make it a optional thing.
Posted: June 6th, 2009
Total Posts:9 Joined:2009
REVISED MELEE SCRIPT

UPDATED TO REQUEST

Revised the script to allow users to specify if they want to use mana2stam spell. Its the same script as previously unless you want to run mana2stam in which case it will use the specified ammount of reagents in your bag, then revert back to melee / rest. Hope you Enjoy this. Just need 1 more ya!

Code: Register to unlock hidden link

#cs ----------------------------------------------------------------------------
	Script by: Eiles

	Melee & Mana2Stam or Melee / Parry

	Script requires two Accounts running on same computer in window mode.
	4 Individual Weapons should be placed in Hotbar 1 - 4 on the Attacking Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer.
	4 Individual Shields should be placed in Hotbar 1 - 4 on the Parrying Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer.
	---NOTE----
	If you are running Mana2Stam Spell you will need a staff and the spell on the hotbar. (It is user prefered, macro will ask where they are.)
	Make sure you read all the questions and answer them correctly. If you input wrong data it could mess up the macro.

	Begin the script with Attacking account unequiped and Focused in FPS mode.
	Make sure the Parrying account has only the sword equiped and Unsheathed. The shields should be unequiped and in your inventory.
	Parrying Account should be in FPS mode and in the background upon Scrip activation.

	Script begins 10 seconds after you answer the questions, so you should have enough time to ensure Accounts are setup properly and alt-tabing between each other fluidly.

	Pause Key Pauses the Script
	Esc Key Ends the Script

#ce-------------------------------------------------------
Dim $a, $b, $c, $d, $e, $f, $g, $h, $i, $j
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$Weapon = 1
$Shield = 1
$a = 0
$i = 0
$j = 0
Dim $Weapon
Global $Paused
$d = InputBox( "Question", "Would you like to use Mana to Stamina spell before cycleing rest?(1 = Yes, 2 = No)", "1" )

If $d = 1 Then
	$b = InputBox( "Question", "How many times would you like to swing? (1 sec = 1000)", "25" )
	$c = InputBox( "Question", "How long would you like to rest? ( For a full Stamina Bar, Cycles after you have used your reagents )(1 sec = 1000)", "155000" )
	$e = InputBox( "Question", "How many cast of Mana2Stamina until full stamina?", "10" )
	$f = InputBox( "Question", "How many times will you be able to recover full stamina with Mana2Stamina (Divide number of Reagents by Casts till full stamina)?", "9" )
	$g = InputBox( "Question", " What Hotkey is your Staff on?", "5" )
	$h = InputBox( "Question", " What Hotkey is your Mana2Stamina spell on?", "7" )
	Sleep ( 10000 )

		$i = 0
		while $i <f>Equip

Func CombatMode()
	Sleep (100 )
	Send ( "r" )
	Sleep ( 500 )
EndFunc

Func EquipDefense()
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
	;send ("{1} - {4}") ; Shield
	Send("{" & $Shield & "}")
	$Shield = $Shield + 1
	If $Shield = 5 Then
		$Shield = 1
	EndIf
	Sleep(500)
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
EndFunc

Func Attack()
	Do
		sleep ( 100 )
		Mouseclick ( "Left" )
		sleep ( 100 )
		Send ( "{Alt Down}" )
		Sleep ( 100 )
		Send ( "{TAB Down}" )
		Sleep ( 100 )
		Send ( "{TAB UP}" )
		Sleep ( 100 )
		Send ( "{Alt Up}" )
		sleep ( 100 )
		Send ( "{V DOWN}" )
		sleep ( 1000 )
		Send ( "{V UP}" )
		sleep ( 500 )
		Send ( "{Alt Down}" )
		Sleep ( 100 )
		Send ( "{TAB Down}" )
		Sleep ( 100 )
		Send ( "{TAB UP}" )
		Sleep ( 100 )
		Send ( "{Alt Up}" )
		sleep ( 1000 )
		$a = $a + 1
	Until $a = $b
	$a = 0
EndFunc

Func Rest()
	Sleep ( 500 )
	Send ( "R" )
	Sleep ( 1500 )
	Send ( "0" )
	Sleep ( 1500 )
	Mouseclick ( "Left" )
	Sleep ( $c )
	Send ( "w" )
	Sleep ( 1000 )
EndFunc

Func Mana2Stam()
	sleep ( 500 )
	Send ( $g )
	sleep ( 500 )
	Send ( $h )
	Sleep (500)
	Do
		MouseClick ( "Left" )
		Sleep ( 10000 )
		$j = $j + 1
	Until $j = $e
	$j = 0
	sleep ( 500 )
	Send ( "r" )
EndFunc

Func TogglePause()
	$Paused = Not $Paused
	While $Paused
		Sleep(100)
	WEnd
EndFunc   ;==>TogglePause

Func Terminate( )
    Exit 0
EndFunc
Posted: June 6th, 2009
Total Posts:3 Joined:2009
last script error on 45 line
missing separator character after keyword
Posted: June 6th, 2009
Total Posts:9 Joined:2009
Not sure why it copied over like that. Here is what it is supposed to be. Let me know if it works out.

Code: Register to unlock hidden link

#cs ----------------------------------------------------------------------------
	Script by: Eiles

	Melee & Mana2Stam or Melee / Parry

	Script requires two Accounts running on same computer in window mode.
	4 Individual Weapons should be placed in Hotbar 1 - 4 on the Attacking Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer.
	4 Individual Shields should be placed in Hotbar 1 - 4 on the Parrying Account. These will be cycled through to provide a greater amount of durability and keep you skilling up longer.
	---NOTE----
	If you are running Mana2Stam Spell you will need a staff and the spell on the hotbar. (It is user prefered, macro will ask where they are.)
	Make sure you read all the questions and answer them correctly. If you input wrong data it could mess up the macro.

	Begin the script with Attacking account unequiped and Focused in FPS mode.
	Make sure the Parrying account has only the sword equiped and Unsheathed. The shields should be unequiped and in your inventory.
	Parrying Account should be in FPS mode and in the background upon Scrip activation.

	Script begins 10 seconds after you answer the questions, so you should have enough time to ensure Accounts are setup properly and alt-tabing between each other fluidly.

	Pause Key Pauses the Script
	Esc Key Ends the Script

#ce-------------------------------------------------------
Dim $a, $b, $c, $d, $e, $f, $g, $h, $i, $j
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$Weapon = 1
$Shield = 1
$a = 0
$i = 0
$j = 0
Dim $Weapon
Global $Paused
$d = InputBox( "Question", "Would you like to use Mana to Stamina spell before cycleing rest?(1 = Yes, 2 = No)", "1" )

If $d = 1 Then
	$b = InputBox( "Question", "How many times would you like to swing? (1 sec = 1000)", "25" )
	$c = InputBox( "Question", "How long would you like to rest? ( For a full Stamina Bar, Cycles after you have used your reagents )(1 sec = 1000)", "155000" )
	$e = InputBox( "Question", "How many cast of Mana2Stamina until full stamina?", "10" )
	$f = InputBox( "Question", "How many times will you be able to recover full stamina with Mana2Stamina (Divide number of Reagents by Casts till full stamina)?", "9" )
	$g = InputBox( "Question", " What Hotkey is your Staff on?", "5" )
	$h = InputBox( "Question", " What Hotkey is your Mana2Stamina spell on?", "7" )
	Sleep ( 10000 )
		$i = 0
		while $i <= $f - 1
			sleep ( 500 )
			Call ("EquipAttack")
			sleep ( 500 )
			Call ("CombatMode")
			sleep ( 500 )
			Call ("EquipDefense")
			sleep ( 500 )
			Call("Attack")
			sleep ( 500 )
			Call ("Mana2Stam")
			$i = $i + 1
		WEnd

		while 1
			sleep ( 100 )
			Call ("EquipAttack")
			sleep ( 500 )
			Call ("CombatMode")
			sleep ( 500 )
			Call ("EquipDefense")
			sleep ( 500 )
			Call("Attack")
			sleep ( 500 )
			Call ("Rest")
		WEnd




ElseIf $d = 2 Then
	$b = InputBox( "Question", "How many times would you like to swing? (1 sec = 1000)", "25" )
	$c = InputBox( "Question", "How long would you like to rest? (1 sec = 1000)", "155000" )
	Sleep ( 10000 )

		while 1
				sleep ( 100 )
				Call ("EquipAttack")
				sleep ( 500 )
				Call ("CombatMode")
				sleep ( 500 )
				Call ("EquipDefense")
				sleep ( 500 )
				Call("Attack")
				sleep ( 500 )
				Call ("Rest")
		WEnd
EndIf


Func EquipAttack()
	Sleep(500)
	;send ("{1} - {4}") ; Weapon
	Send("{" & $Weapon & "}")
	$Weapon = $Weapon + 1
	If $Weapon = 5 Then
		$Weapon = 1
	EndIf
	Sleep(500)
EndFunc   ;==>Equip

Func CombatMode()
	Sleep (100 )
	Send ( "r" )
	Sleep ( 500 )
EndFunc

Func EquipDefense()
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
	;send ("{1} - {4}") ; Shield
	Send("{" & $Shield & "}")
	$Shield = $Shield + 1
	If $Shield = 5 Then
		$Shield = 1
	EndIf
	Sleep(500)
	Send ( "{Alt Down}" )
	Sleep ( 100 )
	Send ( "{TAB Down}" )
	Sleep ( 100 )
	Send ( "{TAB UP}" )
	Sleep ( 100 )
	Send ( "{Alt Up}" )
	sleep ( 500 )
EndFunc

Func Attack()
	Do
		sleep ( 100 )
		Mouseclick ( "Left" )
		sleep ( 100 )
		Send ( "{Alt Down}" )
		Sleep ( 100 )
		Send ( "{TAB Down}" )
		Sleep ( 100 )
		Send ( "{TAB UP}" )
		Sleep ( 100 )
		Send ( "{Alt Up}" )
		sleep ( 100 )
		Send ( "{V DOWN}" )
		sleep ( 1000 )
		Send ( "{V UP}" )
		sleep ( 500 )
		Send ( "{Alt Down}" )
		Sleep ( 100 )
		Send ( "{TAB Down}" )
		Sleep ( 100 )
		Send ( "{TAB UP}" )
		Sleep ( 100 )
		Send ( "{Alt Up}" )
		sleep ( 1000 )
		$a = $a + 1
	Until $a = $b
	$a = 0
EndFunc

Func Rest()
	Sleep ( 500 )
	Send ( "R" )
	Sleep ( 1500 )
	Send ( "0" )
	Sleep ( 1500 )
	Mouseclick ( "Left" )
	Sleep ( $c )
	Send ( "w" )
	Sleep ( 1000 )
EndFunc

Func Mana2Stam()
	sleep ( 500 )
	Send ( $g )
	sleep ( 500 )
	Send ( $h )
	Sleep (500)
	Do
		MouseClick ( "Left" )
		Sleep ( 10000 )
		$j = $j + 1
	Until $j = $e
	$j = 0
	sleep ( 500 )
	Send ( "r" )
EndFunc

Func TogglePause()
	$Paused = Not $Paused
	While $Paused
		Sleep(100)
	WEnd
EndFunc   ;==>TogglePause

Func Terminate( )
    Exit 0
EndFunc
Posted: June 8th, 2009
Total Posts:24 Joined:2009
Can you please add support for special attacks such as whirlwind and powerattack?

ty

P.S

YAY
Posted: June 8th, 2009
Total Posts:9 Joined:2009
For whirlwind and power attack ill probably just make another macro. Ill get on it tomorrow, bit late today. Thanks for the support guys and glad you enjoy the script.
Posted: June 9th, 2009
Total Posts:24 Joined:2009
Np. Thanks eiles, this is a great alternative for me since I don't have two computers and vmware runs too slow.

Just need those special attacks :)
Posted: June 9th, 2009
Total Posts:7 Joined:2007
yay,

ty eiles... got this from you already tho :D
Posted: June 9th, 2009
User avatar
administrator
Total Posts:29891 Joined:2002
Moved to confirmed and premium granted.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 7 guests
Locked