Quote:
Originally Posted by Dupljakus
Does someone have any bot that pickups all items that are salvageable for iron? Then salvages them and store ? If not, tell me which one is best to reprogram to that function? Thx.
|
This is an old example i used - to salvage stuff i just used the "type" and added everything which is supposed to bring iron - so sword, hammer, shield, axe, ... etc.
it is pretty slow and you can make it much better but i choose this example because i guess it's the easiest to see how it works - because it is pretty basic
;as part for the Aftercare script
For $i = 1 to 3
Salvage($i)
Next
RndSleep(1000)
Func Salvage($lBag)
Local $aBag
If Not IsDllStruct($lBag) Then $aBag = GetBag($lBag)
Local $lItem
Local $lSalvageType
Local $lSalvageCount
For $i = 1 To DllStructGetData($aBag, 'Slots')
$lItem = GetItemBySlot($aBag, $i)
SalvageKit()
$q = DllStructGetData($lItem, 'Quantity')
$t = DllStructGetData($lItem, 'Type')
$m = DllStructGetData($lItem, 'ModelID')
$r = DllStructGetData($lItem, 'Rarity')
Local $IsReq8 = IsReq8Max($lItem)
Local $IsShield = IsPerfectShield($lItem)
Local $IsVamp = IsDualVampZeal($lItem)
Local $RareSkin = IsRareSkin($lItem)
If (DllStructGetData($lItem, 'ID') == 0) Then ContinueLoop
If $r = $RARITY_Gold Then ContinueLoop
If $m = 27047 Or $m = 474 Or $m = 522 Or $m = 835 Or ($t = 2 And ($IsVamp = False)) Or ($t = 15 And ($IsVamp = False And ($RareSkin = False))) Or ($t = 27 And ($IsVamp = False)) Or $t = 32 Or $t = 35 Or ($t = 24 And ($IsReq8 = False And $IsShield = False)) Then
If $q >= 1 Then
For $j = 1 To $q
SalvageKit()
StartSalvage($lItem)
Sleep(GetPing() + Random(1000, 1500, 1))
SalvageMaterials()
While (GetPing() > 1250)
RndSleep(250)
WEnd
Local $lDeadlock = TimerInit()
Local $bItem
Do
Sleep(300)
$bItem = GetItemBySlot($aBag, $i)
If (TimerDiff($lDeadlock) > 20000) Then ExitLoop
Until (DllStructGetData($bItem, 'Quantity') = $q - $j)
Next
EndIf
EndIf
Next
Return True
EndFunc