Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.55 KB | None | 0 0
  1. Func Withdraw_Golds()
  2.    If $bRunning = False Then
  3.        $ocbty=$cbtype
  4.        $counter = 0
  5.        $Slot_Counter = 0
  6.  
  7.         _GWCA_CloseStream()
  8.         $input_character = GUICtrlRead($inputCharacter)
  9.         $sGW = "Guild Wars - " & $input_character
  10.  
  11.         $i_info = CmdCB($CA_FindEmptySlot)
  12.         Switch $i_info[0]
  13.             Case 1
  14.                 $i = $i_info[1]
  15.             Case 2
  16.                 $i = $i_info[1] + 20
  17.             Case 3
  18.                 $i = $i_info[1] + 25
  19.             Case 4
  20.                 $i = $i_info[1] + 35
  21.         EndSwitch
  22.  
  23.             $Slot_Counter = $i
  24.             For $slot=$i to 45 step 1
  25.                 $counter += 1
  26.                 If $counter <= 20 Then
  27.                     Select
  28.                         Case $Slot_Counter <= 20
  29.                             MoveItem(8,$counter, 1, 0)
  30.                             $Slot_Counter += 1
  31.                         Case $Slot_Counter <= 25
  32.                             MoveItem(8,$counter, 2, 0)
  33.                             $Slot_Counter += 1
  34.                         Case $Slot_Counter <= 35
  35.                             MoveItem(8,$counter, 3, 0)
  36.                             $Slot_Counter += 1
  37.                         Case $Slot_Counter <= 45
  38.                             MoveItem(8,$counter, 4, 0)
  39.                             $Slot_Counter += 1
  40.                     EndSelect
  41.                 ElseIf $counter <= 40 Then
  42.                         Select
  43.                             Case $Slot_Counter <= 20
  44.                                 MoveItem(9,$counter - 20, 1, 0)
  45.                                 $Slot_Counter += 1
  46.                             Case $Slot_Counter <= 25
  47.                                 MoveItem(9,$counter - 20, 2, 0)
  48.                                 $Slot_Counter += 1
  49.                             Case $Slot_Counter <= 35
  50.                                 MoveItem(9,$counter - 20, 3, 0)
  51.                                 $Slot_Counter += 1
  52.                             Case $Slot_Counter <= 45
  53.                                 MoveItem(9,$counter - 20, 4, 0)
  54.                                 $Slot_Counter += 1
  55.                         EndSelect
  56.                 EndIf
  57.             Next
  58.             For $i = 1 to 10
  59.                 MoveItem(3,$i,1,0)
  60.             Next
  61.             For $i = 1 to 10
  62.                 MoveItem(4,$i,1,0)
  63.             Next
  64.             $cbtype=$ocbty
  65.     EndIf
  66. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement