hi guys, im back after some age (im rusco95/koala95) my account has been closed.
im trying tu update my old bot but cant make work the fuck for load template. when the bot is doing this point
LoadSkillTemplate("Ogakgwp5ayOERD3HAAAAAA71dpqI") it stop ( no crash just stop it)
Func LoadSkillTemplate($aTemplate, $aHeroNumber = 0)
Local $lHeroID = GetHeroID($aHeroNumber)
Local $lSplitTemplate = StringSplit($aTemplate, "")
Local $lTemplateType ; 4 Bits
Local $lVersionNumber ; 4 Bits
Local $lProfBits ; 2 Bits -> P
Local $lProfPrimary ; P Bits
Local $lProfSecondary ; P Bits
Local $lAttributesCount ; 4 Bits
Local $lAttributesBits ; 4 Bits -> A
Local $lAttributes[1][2] ; A Bits + 4 Bits (for each Attribute)
Local $lSkillsBits ; 4 Bits -> S
Local $lSkills[8] ; S Bits * 8
Local $lOpTail ; 1 Bit
$aTemplate = ""
For $i = 1 To $lSplitTemplate[0]
$aTemplate &= Base64ToBin64($lSplitTemplate[$i])
Next
$lTemplateType = Bin64ToDec(StringLeft($aTemplate, 4))
$aTemplate = StringTrimLeft($aTemplate, 4)
If $lTemplateType <> 14 Then Return False
$lVersionNumber = Bin64ToDec(StringLeft($aTemplate, 4))
$aTemplate = StringTrimLeft($aTemplate, 4)
$lProfBits = Bin64ToDec(StringLeft($aTemplate, 2)) * 2 + 4
$aTemplate = StringTrimLeft($aTemplate, 2)
$lProfPrimary = Bin64ToDec(StringLeft($aTemplate, $lProfBits))
$aTemplate = StringTrimLeft($aTemplate, $lProfBits)
If $lProfPrimary <> GetHeroProfession($aHeroNumber) Then Return False
$lProfSecondary = Bin64ToDec(StringLeft($aTemplate, $lProfBits))
$aTemplate = StringTrimLeft($aTemplate, $lProfBits)
$lAttributesCount = Bin64ToDec(StringLeft($aTemplate, 4))
$aTemplate = StringTrimLeft($aTemplate, 4)
$lAttributesBits = Bin64ToDec(StringLeft($aTemplate, 4)) + 4
$aTemplate = StringTrimLeft($aTemplate, 4)
$lAttributes[0][0] = $lAttributesCount
For $i = 1 To $lAttributesCount
If Bin64ToDec(StringLeft($aTemplate, $lAttributesBits)) == GetProfPrimaryAttribute($lProfPrimary) Then
$aTemplate = StringTrimLeft($aTemplate, $lAttributesBits)
$lAttributes[0][1] = Bin64ToDec(StringLeft($aTemplate, 4))
$aTemplate = StringTrimLeft($aTemplate, 4)
ContinueLoop
EndIf
$lAttributes[0][0] += 1
ReDim $lAttributes[$lAttributes[0][0] + 1][2]
$lAttributes[$i][0] = Bin64ToDec(StringLeft($aTemplate, $lAttributesBits))
$aTemplate = StringTrimLeft($aTemplate, $lAttributesBits)
$lAttributes[$i][1] = Bin64ToDec(StringLeft($aTemplate, 4))
$aTemplate = StringTrimLeft($aTemplate, 4)
Next
$lSkillsBits = Bin64ToDec(StringLeft($aTemplate, 4)) + 8
$aTemplate = StringTrimLeft($aTemplate, 4)
For $i = 0 To 7
$lSkills[$i] = Bin64ToDec(StringLeft($aTemplate, $lSkillsBits))
$aTemplate = StringTrimLeft($aTemplate, $lSkillsBits)
Next
$lOpTail = Bin64ToDec($aTemplate)
$lAttributes[0][0] = $lProfSecondary
If $aHeroNumber == 0 Then LoadAttributes($lAttributes, $aHeroNumber)
LoadSkillBar($lSkills[0], $lSkills[1], $lSkills[2], $lSkills[3], $lSkills[4], $lSkills[5], $lSkills[6], $lSkills[7], $aHeroNumber)
EndFunc ;==>LoadSkillTemplate