Hi
Since there is some good formula in Enchanting and Jewecrafting and to pay my repairs (), I decided to make this AutoIt script that loot after entering in combat.
Code:
$wowWindowTitle = "World of Warcraft"
$sGatherWindowTitle = "Nodes :"
$SGatherLogControl = "[NAME:Logs; INSTANCE:1]"
$sGatherGatherSuccess = "\[BOT\] Gathering success !\s*$"
$sGatherCombat = "(?:\[BOT\] Adds detected)(.*)\s*$"
$sGatherLootMessage = IniRead("SGAutoloot.ini", "TEXT", "sGatherLootMessage", "[LOOT] Trying to loot ...")
$Cbdetect = "0"
; // BINDS //
$INTERACT = "{"&IniRead("SGAutoloot.ini", "BIND", "INTERACT", "=")&"}"
$TARGET = "{"&IniRead("SGAutoloot.ini", "BIND", "TARGET", "$")&"}"
$MOUNT = "["&IniRead("SGAutoloot.ini", "BIND", "MOUNT", "_")&"]"
AutoItSetOption("SendKeyDownDelay", 300)
While 1
If WinExists($sGatherWindowTitle) Then
$sGatherLogText = ControlGetText($sGatherWindowTitle,"",$SGatherLogControl)
If StringRegExp ($sGatherLogText, $sGatherCombat) Then
If WinExists($wowWindowTitle) Then
$Cbdetect = "1" ; You're in combat
EndIf
EndIf
if ($Cbdetect == 1) then
If StringRegExp ($sGatherLogText, $sGatherGatherSuccess) Then
If WinExists($wowWindowTitle) Then
ControlSend ($wowWindowTitle, "", "", $TARGET, 0)
ControlSend ($wowWindowTitle, "", "", $INTERACT, 0)
Sleep(1 * 500)
ControlSend ($wowWindowTitle, "", "", $MOUNT, 0)
ControlSetText($sGatherWindowTitle, "", $SGatherLogControl, $sGatherLogText & $sGatherLootMessage & @CR)
$Cbdetect = "0" ; No more in combat
Sleep(10 * 1000)
EndIf
EndIf
EndIf
EndIf
Sleep(1 * 300)
WEnd
SSGAutoloot.ini
Code:
[BIND]
INTERACT = =
TARGET = $
MOUNT = _
[TEXT]
sGatherInject = [LOOT] Trying to loot ...
Change the bind in the ini file with
- Your interact with target bind (you have to set it in game).
- TargetLastHostile bind (you have to set it in game).
- The mount of your choice (The same as SGather (!)
The bot will scan if he detect an Add and loot it
It will not loot if the Add is at range (if you put the clic to move it will loot).
It will loot only your last target mob. If you were fighting 2 mob only one will be loot (your last target).
Enjoy
Download .exe link : SGAutoloot.zip - 280 Kb
VirusTotal : VirusTotal - Free Online Virus, Malware and URL Scanner