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?
yo *** bless the op and everyone that's posted to help. you guys are ******* awesome. after about an hour of troubleshooting, i managed to download brain.exe and get the patcher working
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...
WTS Guild Wars Gold,Guild Wars Ectos,Guild Wars Zaishen Keys for sale 02/19/2013 - Guild Wars Trading - 4 Replies Hi, i want to sell Guild Wars Gold,Guild Wars Ectos,Guild Wars Zaishen Keys.If someone is interested , you can email me and add my msn. We can talk details there. I will give u a low price of Guild Wars Gold,Guild Wars Ectos,Guild Wars Zaishen Keys including weapons. I am serious.
Email:[email protected]
MSN:[email protected]
Thank you for reading my post.