The Problems you have with the Chrystalline Bot are .. uhm .. lemme call it self-made by the Developer xD.
I try to explain: The GWA2-Version was kinda outdated and someone with no real knowledge did a very dirty fix.
Im talking about this Line:
Code:
DllStructSetData($mPacket, 3, $aHeader + 1)
Back in 2014 Anet incremented all Packet Headers by 1.
Instead of doing a shitty 5 minutes work to fix the shit the correct way (adding a fukking 1 to every Packet Header in every Func with SendPacket) someone did it the way i mentioned above.
This dirty fixed GWA2 MAY have worked so far ... but now (e.g. in the Chrystalline Bot) another au3-file is additionally included to this fukkn fixed GWA2: GWAAddsOn.au3
Whitin that .au3 the SendPacket Function is also used ... eg. to flag a Hero.
Code:
SendPacket(0x14, 0x13, MEMORYREAD($lHeroStruct[1] + 0x4), $aX, $aY, 0) <== Header incremented by 1
This Line of Code is absolutely correct ... 0x13 IS the correct Header!
So why does is causes Problems?
It's because of the fukkn shitty fixed GWA2 which contains to increment the Packet Header every Time the func is called.
Code:
SendPacket(0x14, 0x13, MEMORYREAD($lHeroStruct[1] + 0x4), $aX, $aY, 0) <== Header incremented by 1
becomes
Code:
SendPacket(0x14, 0x14, MEMORYREAD($lHeroStruct[1] + 0x4), $aX, $aY, 0) <== Header incremented by 1
and this is why the Bot is messed up.
As i recommended like 2 month ago ... DON'T use outdated shit! Here you got why!
You can find a clean up-to-date Version of GWA2 in this Thread ... i uploaded it like 2-3 month ago (use search-function).
Cheers
Besides the shit above i found a really bad bug ^^
Code:
Func GetFreeSlot()
Local $freeslot[2]
For $j = 1 To 3
If $j = 1 Then
$maxslots = 20
ElseIf $j = 2 Then
$maxslots = 6
ElseIf $j = 3 Then
$maxslots = 10
EndIf
For $i = 1 To $maxslots
$aItem = GetItemBySlot($j, $i)
If DllStructGetData($aItem, 'ID') = 0 Then
$freeslot[0] = $j
$freeslot[1] = $i
Return $freeslot
EndIf
Next
Next
EndFunc
Didn't know the Belt Pouch can contain 6 Items xD