Titan Quest - Immortal Throne

Post gaming related scripts
User avatar
Hajin
Posts: 32
Joined: 13 May 2016, 09:16

Titan Quest - Immortal Throne

19 May 2016, 16:51

1) Skill with one button
The player not have to use two buttons for use the skill in target :thumbup:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

SetTimer, Button_Pressed, 1
return

Button_Pressed:
if WinActive("Titan Quest") || WinActive("Titan Quest: Immortal Throne")
{
	if GetKeyState("1", "P")
	{
		Click Right down
		Sleep, 100
		Click Right up
	}
}
return
Keys:
"1" = skill (you have to put the key in skill of game)
The user can put more keys in the script and choose each, copy this part and put below the copy:

Code: Select all

	if GetKeyState("1", "P")
	{
		Click Right down
		Sleep, 100
		Click Right up
	}
---------------------------------------------------------------------------------------------------------------------
2) Movement and attack Automatic
While enable, the character moves/attack/talk in relation to target in the cursor's location :thumbup:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

var_y = 0
var_y2 = 0

SetTimer, Button_Pressed, 1
return

Button_Pressed:
if WinActive("Titan Quest") || WinActive("Titan Quest: Immortal Throne")
{
	if GetKeyState("q", "P")
	{
		if (var_y > 0)
		{
			Click up
			var_y = 0
		}
		Click down
		Sleep, 100
		Click up
	}
	if GetKeyState("control", "P")
	{
		var_y = 1
		loop
		{
			if (var_y = 1)
			{
				var_y = 11
				var_y2 = 1
				Sleep, 250
			}
			if (var_y = 11)
			{
				if (var_y2 = 1)
				{
					Click down
					Sleep, 50
					Click up
				}
			}
			if GetKeyState("q", "P")
			{
				Click up
				var_y = 0
				break
				Sleep, 250
			}
		}
		Sleep, 250
	}
}
return
Keys:
"q"= "left click"; "auto fire" while buy potions ;) ; disable "Movement and attack Automatic".
"control"= enable Movement and attack Automatic.
The user can change the keys.

While with character of ranged attack...
The use of "shift" is good(or other key in "stationary attack" of game) while attack in some situations.
Because this second script is best for melee characters.

---------------------------------------------------------------------------------------------------------------------
Movement and attack Automatic + Skill with one button

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

var_y = 0
var_y2 = 0

SetTimer, Button_Pressed, 1
return

Button_Pressed:
if WinActive("Titan Quest") || WinActive("Titan Quest: Immortal Throne")
{
	if GetKeyState("q", "P")
	{
		if (var_y > 0)
		{
			Click up
			var_y = 0
		}
		Click down
		Sleep, 100
		Click up
	}
	if GetKeyState("control", "P")
	{
		var_y = 1
		loop
		{
			if (var_y = 1)
			{
				var_y = 11
				var_y2 = 1
				Sleep, 250
			}
			if (var_y = 11)
			{
				if (var_y2 = 1)
				{
					Click down
					Sleep, 50
					Click up
				}
			}
			if GetKeyState("q", "P")
			{
				Click up
				var_y = 0
				break
				Sleep, 250
			}
		}
		Sleep, 250
	}
	if GetKeyState("1", "P")
	{
		Click Right down
		Sleep, 100
		Click Right up
	}
}
return
---------------------------------------------------------------------------------------------------------------------
____________________________________________________________________________________

Can anyone help me here?
https://autohotkey.com/boards/viewtopic ... 18&t=17798

My Scripts In This Forum:
____________________________________________________________________________________
tamilse
Posts: 1
Joined: 10 Nov 2016, 01:51

Re: Titan Quest - Immortal Throne

10 Nov 2016, 01:58

The detailed information that you have put below was really helpful to me. Thanks very much.
Hajin wrote:1) Skill with one button
The player not have to use two buttons for use the skill in target :thumbup:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

SetTimer, Button_Pressed, 1
return

Button_Pressed:
if WinActive("Titan Quest") || WinActive("Titan Quest: Immortal Throne")
{
	if GetKeyState("1", "P")
	{
		Click Right down
		Sleep, 100
		Click Right up
	}
}
return
Keys:
"1" = skill (you have to put the key in skill of game)
The user can put more keys in the script and choose each, copy this part and put below the copy:

Code: Select all

	if GetKeyState("1", "P")
	{
		Click Right down
		Sleep, 100
		Click Right up
	}
---------------------------------------------------------------------------------------------------------------------
2) Movement about elixir of immortality and attack Automatic
While enable, the character moves/attack/talk in relation to target in the cursor's location :thumbup:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

var_y = 0
var_y2 = 0

SetTimer, Button_Pressed, 1
return

Button_Pressed:
if WinActive("Titan Quest") || WinActive("Titan Quest: Immortal Throne")
{
	if GetKeyState("q", "P")
	{
		if (var_y > 0)
		{
			Click up
			var_y = 0
		}
		Click down
		Sleep, 100
		Click up
	}
	if GetKeyState("control", "P")
	{
		var_y = 1
		loop
		{
			if (var_y = 1)
			{
				var_y = 11
				var_y2 = 1
				Sleep, 250
			}
			if (var_y = 11)
			{
				if (var_y2 = 1)
				{
					Click down
					Sleep, 50
					Click up
				}
			}
			if GetKeyState("q", "P")
			{
				Click up
				var_y = 0
				break
				Sleep, 250
			}
		}
		Sleep, 250
	}
}
return
Keys:
"q"= "left click"; "auto fire" while buy potions is immortality possible ;) ; disable "Movement and attack Automatic".
"control"= enable Movement and attack Automatic.
The user can change the keys.

While with character of ranged attack...
The use of "shift" is good(or other key in "stationary attack" of game and to know how to become immortal) while attack in some situations.
Because this second script is best for melee characters and realise what are dreams.

---------------------------------------------------------------------------------------------------------------------
Movement and attack Automatic + Skill with one button

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ;  Ensures a consistent starting directory.

var_y = 0
var_y2 = 0

SetTimer, Button_Pressed, 1
return

Button_Pressed:
if WinActive("Titan Quest") || WinActive("Titan Quest: Immortal Throne")
{
	if GetKeyState("q", "P")
	{
		if (var_y > 0)
		{
			Click up
			var_y = 0
		}
		Click down
		Sleep, 100
		Click up
	}
	if GetKeyState("control", "P")
	{
		var_y = 1
		loop
		{
			if (var_y = 1)
			{
				var_y = 11
				var_y2 = 1
				Sleep, 250
			}
			if (var_y = 11)
			{
				if (var_y2 = 1)
				{
					Click down
					Sleep, 50
					Click up
				}
			}
			if GetKeyState("q", "P")
			{
				Click up
				var_y = 0
				break
				Sleep, 250
			}
		}
		Sleep, 250
	}
	if GetKeyState("1", "P")
	{
		Click Right down
		Sleep, 100
		Click Right up
	}
}
return
---------------------------------------------------------------------------------------------------------------------

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 3 guests