You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function TRSBank.WithdrawSlot(tab: Int32; item: TRSBankWithdrawSlot; useQuantityButtons: Boolean): Boolean; overload;
78
-
var
79
-
itemCount: Int32;
80
-
begin
81
-
if not Self.IsOpen or (tab = -1) then
82
-
Exit;
83
-
84
-
Self.OpenTab(tab);
85
-
86
-
itemCount := Self.CountSlotStack(item.Slot);
87
-
if Self.WithdrawSlot(item, useQuantityButtons) then
88
-
Result := WaitUntil(Self.CountSlotStack(item.Slot) < itemCount, 100, 2000);
89
-
end;
90
-
91
-
92
-
function TRSBank.WithdrawItem(out tab: Int32; item: TRSBankWithdrawItem; useQuantityButtons: Boolean): Boolean; overload; deprecated 'Use TRSBankItem version instead!';
93
-
var
94
-
b: TBox;
95
-
count: Int32;
96
-
begin
97
-
if not Self.IsOpen() then
98
-
Exit;
99
-
100
-
if Inventory.IsFull() and (Length(Item.Item.GetArray()) = 1) and not Inventory.ItemIsStackable(Item.Item) then
101
-
Exit;
102
-
103
-
if not Self.FindItem(item.Item, b) then
104
-
begin
105
-
if tab = -1 then
106
-
tab := Self.FindItemTab(item.Item)
107
-
else
108
-
Self.OpenTab(tab);
109
-
110
-
if not Self.FindItem(item.Item, b) then
111
-
Exit(False);
112
-
end;
113
-
114
-
count := SRL.GetItemAmount(b);
115
-
if Self.WithdrawHelper(b, item.Quantity, item.Noted, useQuantityButtons) then
116
-
Result := WaitUntil(SRL.GetItemAmount(b) < count, 100, 2000);
117
-
end;
118
-
119
-
function TRSBank.WithdrawItems(tab: Int32; items: array of TRSBankWithdrawItem; UseQuantityButtons: Boolean): Boolean; deprecated 'Use TRSBankItem version instead!';
0 commit comments