Guild Wars Botting API Patcher

04/16/2018 02:14 rheek#31
Quote:
Originally Posted by Psyk0z View Post
Hi people !

I'm from France and got some issues with english, so there are many things that I don't understand on this topic. It's about how to fix my bots with your work Rheek.
Today, I tried to start my Kilroy bot and obviously with the update, it didn't work so that's why I'm here.
I downloaded your patch, tried to follow your instructions but I guess my english isn't good enough to understand all of it.
I just wanted to ask you if you could maybe try to explain to me now that you know that I'm French.
Thank you so much for your time <3
You will find help in the readme file or on the github. Start with the TL;DR part and then the patching guide somewhere below that. For specific questions feel free to ask again.
04/16/2018 08:22 Duffy722#32
Just like to personally thank you on this, absolutely couldn’t have made it any easier to fix bots �� cracking work mate much appreciated.
04/17/2018 18:44 buffnar0#33
I want to say the same thing a MASSIVE THANKS! to you and your work makes it so easy to keep em work! keep up the good stuff! :mofo:
04/21/2018 11:52 uhlala2323#34
Thanks!

I used the patcher to patch an GWBIBLE based EOTN Runner Bot.

The gwa_missing_headers files shows 4 functions. I don't really know how to fix this and would appreciate some help.

Here are the functions:

Code:
Func AsuranRank()
	Local $lEffects = GetEffect(), $lAsuranOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Edification Then
			$lAsuranOn = True
			ExitLoop
		EndIf
	Next

	If Not $lAsuranOn Then SendPacket(0x8, 0x51, 0x26)
EndFunc   ;==>AsuranRank
Code:
Func NornRank()
	Local $lEffects = GetEffect(), $lNornOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Heart_Of_The_Norn Then
			$lNornOn = True
			ExitLoop
		EndIf
	Next

	If Not $lNornOn Then SendPacket(0x8, 0x51, 0x29)
EndFunc   ;==>NornRank
Code:
Func VanguardRank()
	Local $lEffects = GetEffect(), $lVanguardOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Rebel_Yell Then
			$lVanguardOn = True
			ExitLoop
		EndIf
	Next

	If Not $lVanguardOn Then SendPacket(0x8, 0x51, 0x28)
EndFunc   ;==>VanguardRank

Code:
Func UseSkillByID($lSkillID, $aTarget = -2, $lCallTarget = False)
	If IsDllStruct($aTarget) = 0 Then
		$lTargetID = ConvertID($aTarget)
	Else
		$lTargetID = DllStructGetData($aTarget, 'ID')
	EndIf
	Return SendPacket(0x14, 0x40, $lSkillID, 0, $lTargetID, $lCallTarget)
EndFunc   ;==>UseSkillByID
Thanks in advance!
04/21/2018 12:07 DerMoench14#35
Quote:
Originally Posted by uhlala2323 View Post
Thanks!

I used the patcher to patch an GWBIBLE based EOTN Runner Bot.

The gwa_missing_headers files shows 4 functions. I don't really know how to fix this and would appreciate some help.

Here are the functions:

Code:
Func AsuranRank()
	Local $lEffects = GetEffect(), $lAsuranOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Edification Then
			$lAsuranOn = True
			ExitLoop
		EndIf
	Next

	If Not $lAsuranOn Then SendPacket(0x8, 0x51, 0x26)
EndFunc   ;==>AsuranRank
Code:
Func NornRank()
	Local $lEffects = GetEffect(), $lNornOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Heart_Of_The_Norn Then
			$lNornOn = True
			ExitLoop
		EndIf
	Next

	If Not $lNornOn Then SendPacket(0x8, 0x51, 0x29)
EndFunc   ;==>NornRank
Code:
Func VanguardRank()
	Local $lEffects = GetEffect(), $lVanguardOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Rebel_Yell Then
			$lVanguardOn = True
			ExitLoop
		EndIf
	Next

	If Not $lVanguardOn Then SendPacket(0x8, 0x51, 0x28)
EndFunc   ;==>VanguardRank

Code:
Func UseSkillByID($lSkillID, $aTarget = -2, $lCallTarget = False)
	If IsDllStruct($aTarget) = 0 Then
		$lTargetID = ConvertID($aTarget)
	Else
		$lTargetID = DllStructGetData($aTarget, 'ID')
	EndIf
	Return SendPacket(0x14, 0x40, $lSkillID, 0, $lTargetID, $lCallTarget)
EndFunc   ;==>UseSkillByID
Thanks in advance!
Code:
If Not $lAsuranOn Then SendPacket(0x8, 0x5E, 0x26)
If Not $lNornOn Then SendPacket(0x8, 0x5E, 0x29)
If Not $lVanguardOn Then SendPacket(0x8, 0x5E, 0x28)
Return SendPacket(0x14, 0x4D, $lSkillID, 0, $lTargetID, $lCallTarget)
BTW: There's something better you can do than search the Effect-Array:
Code:
;~ Description: Returns the currently displayed Title.
Func GetDisplayedTitle()
	Local $lAgentPtr = GetAgentPtr(-2)
	Local $lLogin = MemoryRead($lAgentPtr + 384, 'long')
	Local $lOffset[5] = [0,0x18, 0x2C, 0x80C, 76 * $lLogin]
	Local $lPlayerArray = MemoryReadPtr($mBasePointer, $lOffset, 'Ptr')
	return MemoryRead($lPlayerArray[0] + 48, 'long')
EndFunc   ;==>GetDisplayedTitle
04/21/2018 12:09 rheek#36
Quote:
Originally Posted by uhlala2323 View Post
Thanks!

I used the patcher to patch an GWBIBLE based EOTN Runner Bot.

The gwa_missing_headers files shows 4 functions. I don't really know how to fix this and would appreciate some help.

Here are the functions:

Code:
Func AsuranRank()
	Local $lEffects = GetEffect(), $lAsuranOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Edification Then
			$lAsuranOn = True
			ExitLoop
		EndIf
	Next

	If Not $lAsuranOn Then SendPacket(0x8, 0x51, 0x26)
EndFunc   ;==>AsuranRank
Code:
Func NornRank()
	Local $lEffects = GetEffect(), $lNornOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Heart_Of_The_Norn Then
			$lNornOn = True
			ExitLoop
		EndIf
	Next

	If Not $lNornOn Then SendPacket(0x8, 0x51, 0x29)
EndFunc   ;==>NornRank
Code:
Func VanguardRank()
	Local $lEffects = GetEffect(), $lVanguardOn = False

	For $i = 1 to $lEffects[0]
		If $lEffects[$i] = $Rebel_Yell Then
			$lVanguardOn = True
			ExitLoop
		EndIf
	Next

	If Not $lVanguardOn Then SendPacket(0x8, 0x51, 0x28)
EndFunc   ;==>VanguardRank

Code:
Func UseSkillByID($lSkillID, $aTarget = -2, $lCallTarget = False)
	If IsDllStruct($aTarget) = 0 Then
		$lTargetID = ConvertID($aTarget)
	Else
		$lTargetID = DllStructGetData($aTarget, 'ID')
	EndIf
	Return SendPacket(0x14, 0x40, $lSkillID, 0, $lTargetID, $lCallTarget)
EndFunc   ;==>UseSkillByID
Thanks in advance!
Looks like an easy fix. I will fix it later today and pm you once I uploaded the update.

The lines that DerMoench14 posted will fix those functions manually. I will still upload a fix, so the patcher will find more headers.

Your choice now. Either fix them now yourself with the lines from DerMoench14 or wait for my fix.

Edit:
Uploaded the fix now
04/21/2018 12:40 uhlala2323#37
Awesome! Thanks to both of you guys! It's working!
05/01/2018 11:20 uhlala2323#38
new header file available yet?
05/01/2018 12:08 rheek#39
Quote:
Originally Posted by uhlala2323 View Post
new header file available yet?
Yes. Just uploaded it.

Thanks to tjubutsi for fixing most of the headers I needed yesterday. Integrated them into my file and added the ones that his gwa2 version does not use.
05/01/2018 13:35 tjubutsi#40
Oof, swapping some headers someone else worked for gets more thanks than the actual work D:
05/01/2018 14:12 Lyssa12#41
Do i just replace the header file with new one? I've tried it with several bots and I get the same error.
05/01/2018 14:51 Duffy722#42
Quote:
Originally Posted by Lyssa12 View Post
Do i just replace the header file with new one? I've tried it with several bots and I get the same error.
Download the new files he uploaded and then read the readme like stated.
05/01/2018 17:35 Lyssa12#43
Quote:
Originally Posted by Duffy722 View Post
Download the new files he uploaded and then read the readme like stated.
I did read and follow it. But i still keep getting error.
05/02/2018 01:04 rheek#44
Quote:
Originally Posted by Lyssa12 View Post
I did read and follow it. But i still keep getting error.
If you used the patcher on your bot, you would only have to exchange the headers file. Worked for me for all the bots I use currently.

Quote:
Originally Posted by Lyssa12 View Post
Do i just replace the header file with new one? I've tried it with several bots and I get the same error.
This information does not really enable to me help you. I have no idea what bots youre using, what exactly you did with them, and what exactly isnt working. What error messages do you see? Are the bots crashing at specific points? Is anything working at all?
05/02/2018 16:04 Retlaw123#45
i repeated it like last time, but now it isnt working.
i just download the @[Only registered and activated users can see links. Click Here To Register...]
tjubutsi Typo
GWA2.au3

file and then put this in the bot and delted the old filges GWa2 and headers.

then i runed zour bot and no the bot dsont start.
I think i made a mistake >&