Guild Wars Botting API Patcher

06/13/2018 21:55 phat34#91
Quote:
Originally Posted by Stary Pen' View Post
Code:
_('ScanLoadFinished:')
AddPattern('8D0C383BCB761E8D14183BD776176871010000BAD80D9D00B9D403A300E85C')
Like so

You need to provide an offset for this pattern?? and usually not exceed 12 bytes for a pattern??
06/23/2018 13:20 buffnar0#92
hey rheek, first of all ty for your work with the API Patcher!! helped me out alot!

recently I testet some stuff with a fiber bot, but after a certain amount of runs i think its ~15 runs it gives me a whitebox message...

if someone experienced could look over the bot, would be great!
07/02/2018 07:45 Sanatri#93
Hey guys,

I need help at updating a very nice bot.
Maybe u can help me - thank u in advance!

Quote:
Speedbook.au3 (942): ;~ Description: Change the currently displayed title.
SpeedBook\Speedbook.au3 (943): Func ChangeDisplayedTitle($aTitle)
SpeedBook\Speedbook.au3 (944): SendPacket(0x8, 0x50, $aTitle)
SpeedBook\Speedbook.au3 (945): EndFunc ;==>ChangeDisplayedTitle
07/02/2018 14:20 phat34#94
Code:
;=TITLE=

Global Const $HEADER_TITLE_DISPLAY				= 0x5D	;Displays title (from Gigis Vaettir Bot)
Global Const $HEADER_TITLE_CLEAR				= 0x5E	;Hides title (from Gigis Vaettir Bot)
07/02/2018 14:41 Stary Pen'#95
Code:
Func LoadAttributes($aAttributesArray, $aHeroNumber = 0)
	Local $lPrimaryAttribute
	Local $lDeadlock
	Local $lHeroID = GetHeroID($aHeroNumber)
	Local $lLevel

	$lPrimaryAttribute = GetProfPrimaryAttribute(GetHeroProfession($aHeroNumber))

	If $aAttributesArray[0][0] <> 0 And GetHeroProfession($aHeroNumber, True) <> $aAttributesArray[0][0] And GetHeroProfession($aHeroNumber) <> $aAttributesArray[0][0] Then
		Do
			$lDeadlock = TimerInit()
			ChangeSecondProfession($aAttributesArray[0][0], $aHeroNumber)
			Do
				Sleep(20)
			Until GetHeroProfession($aHeroNumber, True) == $aAttributesArray[0][0] Or TimerDiff($lDeadlock) > 5000
		Until GetHeroProfession($aHeroNumber, True) == $aAttributesArray[0][0]
	EndIf

	$aAttributesArray[0][0] = $lPrimaryAttribute
	For $i = 0 To UBound($aAttributesArray) - 1
		If $aAttributesArray[$i][1] > 12 Then $aAttributesArray[$i][1] = 12
		If $aAttributesArray[$i][1] < 0 Then $aAttributesArray[$i][1] = 0
	Next

	While GetAttributeByID($lPrimaryAttribute, False, $aHeroNumber) > $aAttributesArray[0][1]
		$lLevel = GetAttributeByID($lPrimaryAttribute, False, $aHeroNumber)
		$lDeadlock = TimerInit()
		DecreaseAttribute($lPrimaryAttribute, $aHeroNumber)
		Do
			Sleep(20)
		Until GetAttributeByID($lPrimaryAttribute, False, $aHeroNumber) < $lLevel Or TimerDiff($lDeadlock) > 5000
		TolSleep()
	WEnd
	For $i = 1 To UBound($aAttributesArray) - 1
		While GetAttributeByID($aAttributesArray[$i][0], False, $aHeroNumber) > $aAttributesArray[$i][1]
			$lLevel = GetAttributeByID($aAttributesArray[$i][0], False, $aHeroNumber)
			$lDeadlock = TimerInit()
			DecreaseAttribute($aAttributesArray[$i][0], $aHeroNumber)
			Do
				Sleep(20)
			Until GetAttributeByID($aAttributesArray[$i][0], False, $aHeroNumber) < $lLevel Or TimerDiff($lDeadlock) > 5000
			TolSleep()
		WEnd
	Next
	For $i = 0 To 44
		If GetAttributeByID($i, False, $aHeroNumber) > 0 Then
			If $i = $lPrimaryAttribute Then ContinueLoop
			For $j = 1 To UBound($aAttributesArray) - 1
				If $i = $aAttributesArray[$j][0] Then ContinueLoop 2
				Local $lDummy ;AutoIt 3.8.8.0 Bug
			Next
			While GetAttributeByID($i, False, $aHeroNumber) > 0
				$lLevel = GetAttributeByID($i, False, $aHeroNumber)
				$lDeadlock = TimerInit()
				DecreaseAttribute($i, $aHeroNumber)
				Do
					Sleep(20)
				Until GetAttributeByID($i, False, $aHeroNumber) < $lLevel Or TimerDiff($lDeadlock) > 5000
				TolSleep()
			WEnd
		EndIf
	Next

	While GetAttributeByID($lPrimaryAttribute, False, $aHeroNumber) < $aAttributesArray[0][1]
		$lLevel = GetAttributeByID($lPrimaryAttribute, False, $aHeroNumber)
		$lDeadlock = TimerInit()
		IncreaseAttribute($lPrimaryAttribute, $aHeroNumber)
		Do
			Sleep(20)
		Until GetAttributeByID($lPrimaryAttribute, False, $aHeroNumber) > $lLevel Or TimerDiff($lDeadlock) > 5000
		TolSleep()
	WEnd
	For $i = 1 To UBound($aAttributesArray) - 1
		While GetAttributeByID($aAttributesArray[$i][0], False, $aHeroNumber) < $aAttributesArray[$i][1]
			$lLevel = GetAttributeByID($aAttributesArray[$i][0], False, $aHeroNumber)
			$lDeadlock = TimerInit()
			IncreaseAttribute($aAttributesArray[$i][0], $aHeroNumber)
			Do
				Sleep(20)
			Until GetAttributeByID($aAttributesArray[$i][0], False, $aHeroNumber) > $lLevel Or TimerDiff($lDeadlock) > 5000
			TolSleep()
		WEnd
	Next
EndFunc   ;==>LoadAttributes
LoadAttributes not working for Hero. Any body know how fix it?
07/02/2018 16:25 phat34#96
Sure...

replace these lines in your code to what I have below:

Code:
SETVALUE("DecreaseAttributeFunction", "0x" & Hex(GETSCANNEDADDRESS("ScanDecreaseAttributeFunction", 41), 8))

_("ScanDecreaseAttributeFunction:")
ADDPATTERN("8B402C8BCE059C0000008B1089118B50")
...let me know if that worked...
07/02/2018 17:37 afmart#97
Quote:
Originally Posted by Sanatri View Post
Hey guys,

I need help at updating a very nice bot.
Maybe u can help me - thank u in advance!
Code:
SendPacket(0x8, 0x5D, $aTitle)
Share it bro
07/02/2018 17:49 Stary Pen'#98
Quote:
Originally Posted by phat34 View Post
Sure...

replace these lines in your code to what I have below:

Code:
SETVALUE("DecreaseAttributeFunction", "0x" & Hex(GETSCANNEDADDRESS("ScanDecreaseAttributeFunction", 41), 8))

_("ScanDecreaseAttributeFunction:")
ADDPATTERN("8B402C8BCE059C0000008B1089118B50")
...let me know if that worked...
Working, tyvm
07/05/2018 07:16 Sanatri#99
Quote:
Originally Posted by afmart View Post
Code:
SendPacket(0x8, 0x5D, $aTitle)
Share it bro
Thank you for your help. @[Only registered and activated users can see links. Click Here To Register...] you too.

It's working again.

Thanks to @[Only registered and activated users can see links. Click Here To Register...] for uploading the bot here.
[Only registered and activated users can see links. Click Here To Register...]
07/05/2018 16:59 Akira25#100
Quote:
Originally Posted by buffnar0 View Post
hey rheek, first of all ty for your work with the API Patcher!! helped me out alot!

recently I testet some stuff with a fiber bot, but after a certain amount of runs i think its ~15 runs it gives me a whitebox message...

if someone experienced could look over the bot, would be great!
after GWA2 update bot works fine until it stores the materials to storage (at Seitung Harbor) - then the bot is crashing every time

Maybe someone can help, unfortunately I'm not a programmer.
Thanks in advance!
07/24/2018 19:20 kONE1337#101
I am new to this botting thingy.

I downloaded AutoIT.

I downloaded GWA 2.

I downloaded the vaettire bot.

Game crashed.

Someone told me to get this patcher.

I downloaded the GWA2_Patcher

Clicked on it and this shows up:

Line 3 [File "C:\User\...\Desktop\GWA2_Patcher.au3"]:

#include "incl\GWA2_Function_Header_Table.au3"

Error: Error opening the file.

Any advices?
07/31/2018 14:03 daan1010#102
Quote:
Originally Posted by kONE1337 View Post

#include "incl\GWA2_Function_Header_Table.au3"

Error: Error opening the file.
It cannot find the GWA2_Function_Header_Table.au3 file inside the incl folder
07/31/2018 19:35 OmniTheran#103
yo god bless the op and everyone that's posted to help. you guys are fucking awesome. after about an hour of troubleshooting, i managed to download brain.exe and get the patcher working :D
08/02/2018 09:31 radasde#104
The Chest Run bot I use wasn't working before, so I patched the folder, said no files changed, so I copied GWA2_Headers and GWA2_Function_Header_Table to the folder, seems to be working so far. No idea why though, doesn't look like anything changed besides me copying those files...
08/04/2018 22:47 phat34#105
Global Const $HEADER_QUEST_ACCEPT = 0x3F ;Accepts a quest from the NPC