-
Active Member
Vaal Regalia AHK Chaos Spam Script
This script has built in protection against accidentally rolling over good items. Because of this, the script can chaos spam at very high speeds. Typically:
(1000 / (Latency + 5)) times per second.
The script compares the regalia on your cursor against the last item that was successfully rerolled. If the items match, it will not click. This means that this script should have 100% accuracy.
Note, I am not sure if this works on version of the game other than English
How to use:
For best results, use this script in an area in which you have the lowest latency.
Set sleepThreshold to your latency + 5.
Set stopAboveES to what you want the script to stop above. (I recommend ~570).
Hover over regalia with chaos on cursor, hold shift and x.
Code:
SendMode Input
global sleepThreshold := 75
global stopAboveES := 570
global oldItem := "Old Item"
global currentItem := "New Item"
x:
*x::
_xIsPressed = GetKeyState("x", "p")
While (_xIsPressed)
{
ES := _getES()
currentItem := getCurrentItem()
if (ES <= stopAboveES)
{
checkForItemMatch(currentItem, oldItem)
}
oldItem = %currentItem%
Sleep, sleepThreshold
return
}
checkForItemMatch(_currentItem, _oldItem)
{
if (_currentItem != _oldItem)
{
oldItem = _currentItem
return mouseClick()
}
else
{
return
}
}
_getES()
{
clipboard :=
Send, ^C
ClipWait, .05
if (ErrorLevel = 0)
{
RegExMatch(clipboard, "Energy Shield: ([0-9]+)", es2)
StringTrimLeft, _ES, es2, 15
return _ES
}
gosub x
}
getCurrentItem()
{
_currentItem = %clipboard%
return _currentItem
}
mouseClick()
{
MouseClick, left
}
^e::
ExitApp
Last edited by xcrossover25x; 07-27-2017 at 08:58 PM.
-
Post Thanks / Like - 1 Thanks
sketax (1 members gave Thanks to xcrossover25x for this useful post)