Guest User

Untitled

a guest
Apr 26th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.38 KB | None | 0 0
  1. Func SALVAGE($bagIndex)
  2.     $bag = GetBag($bagIndex)
  3.     For $i = 1 To DllStructGetData($bag, 'slots')
  4.  
  5.         $aitem = GetItemBySlot($bagIndex, $i)
  6.         If DllStructGetData($aitem, 'ID') = 0 Then ContinueLoop
  7.             For $k = 1 to DllStructGetData($aitem, 'Quantity')
  8.             StartSalvage($aItem)
  9.             Sleep(1000)
  10.             SalvageMaterials()
  11.             Sleep(Random(2000, 2500))
  12.             Next
  13.     Next
  14. EndFunc   ;==>IDENT
Add Comment
Please, Sign In to add comment