first of all thx to all in this Board helping to keep all the Bots working!!!
I have rewritten some Bots to do things i want but in this case have problems and i dont know why...
I tried to use the actual working Vaettire Bot not to sell the stuff he should Salvage the stuff cause i need materials.
This function I use to salvage the stuff but gw always crashes.... i tried more sleep time but gw always crashes with the "Send to Anet" thing..
I hope some1 can help me.....
Code:
Func SalvageThis($aItem)
Local $lModelID = DllStructGetData($aitem, "ModelID")
If $lModelID = 22751 Then Return False
If $lModelID = 21798 Then Return False
Return True
EndFunc
Func Salvage()
Local $counter
For $n = 1 to 4
$counter = 1
While True
If $n = 1 And $counter > 20 then ExitLoop
If $n = 2 And $counter > 5 then ExitLoop
If $n = 3 And $counter > 10 then ExitLoop
If $n = 4 And $counter > 10 then ExitLoop
If FindSalvageKit() > 0 Then
Local $aItem = GetItemsBySlot($n, $counter)
If SalvageThis($aItem) Then
StartSalvage($aitem)
Sleep(Random(1000, 1500))
SalvageMaterials()
Sleep(Random(1000, 1500))
EndIf
Else
Return 0
EndIf
$counter += 1
WEnd
Next
EndFunc






