Titan Quest - Immortal Throne

Post gaming related scripts
User avatar
Hajin
Posts: 48
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
---------------------------------------------------------------------------------------------------------------------
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
---------------------------------------------------------------------------------------------------------------------
Dramorian
Posts: 2
Joined: 18 Oct 2020, 16:44

Re: Titan Quest - Immortal Throne

18 Oct 2020, 17:27

How am I supposed to stop the execution? I just can't and it keeps running.
And why, for example, common torchlight button smash doesn't work here?
User avatar
Hajin
Posts: 48
Joined: 13 May 2016, 09:16

Re: Titan Quest - Immortal Throne

05 Nov 2020, 17:12

Dramorian wrote:
18 Oct 2020, 17:27
How am I supposed to stop the execution? I just can't and it keeps running.
And why, for example, common torchlight button smash doesn't work here?
These scripts are very old and I don't even remember how they work anymore, coincidentally or not, I'm playing the new titan quest now and I'm making a new script, maybe I'll put it on the forum.

EDITED:
In case someone interested, I made a more updated script:
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=83394

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 10 guests