Sandstorm
2008-11-06 18:14:51
I created this as all I could see was DropAll;. All it does is skip the inventory spots you define. Nothing advanced, just useful in my opinion. I couldn't fully test it because my Gametabs are really screwing up, and I wouldn't mind some help :). Anyways, here's the procedure:
Usage:
DropAllExcept([1, 2, 3, 4, 5]);
Usage:
DropExcept(1, 28, true, [1, 2, 3, 4 ,5]);
{*******************************************************************************
Procedure DropAllExcept(A : Array of Integer);
By: Sand Storm
Description: Drops everything except the user defined inventory spaces.
*******************************************************************************}
procedure DropAllExcept(A : Array of Integer);
var
i: Integer;
begin
For I:=1 To 28 Do
if not(InIntArray(a, i)) then
DropItem(i);
end;Usage:
DropAllExcept([1, 2, 3, 4, 5]);
{*******************************************************************************
procedure DepositExcept(slot, toslot, vType: Variant; ItemsToSkip: Array of Integer);
by: Edited by Sandstorm, Originally made by: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town
Description: Deposits from Slot to ToSlot, skipping user defined slots.
vType True = Deposit All. vType False = Deposit one by one.
Any integer is deposit with Deposit X. (except for 5 and 10)
*******************************************************************************}
Procedure DepositExcept(SlotFrom, SlotTo: Integer; vType: Variant; ItemsToSkip: Array of Integer);
Var
DepositX: Boolean;
All: Variant;
I, T, x, y: Integer;
Begin
If Not BankScreen Then
Exit;
If vType = 2 Then
srl_Warn('Deposit', '2 now means store per 2, not ''All''', 15);
DepositX := False;
Case VarType(vType) Of
3: Begin
DepositX := Not InIntArray([1, 5, 10], vType);
If vType = 1 Then
All := False
Else
All := True;
End;
11: All := vType;
End;
For I := SlotFrom To SlotTo Do
Begin
If Not ExistsItem(I) Then
Continue;
If not(InIntArray(ItemsToSkip, I)) Then
MouseItem(I, Not All);
If DepositX Then
Begin
ChooseOption('Deposit-X');
T := GetSystemTime;
While (Not FindColor(x, y, 8388608, MCX1, MCY1, MCX2, MCY2)) And (GetSystemTime - T < 3000) Do
Wait(100);
TypeSend(vType);
End Else If VarType(vType) = 3 Then
ChooseOption('Deposit-' + vType)
Else
ChooseOption('Deposit-All');
T := GetSystemTime;
Wait(RandomRange(200, 300));
While ExistsItem(I) And (GetSystemTime - T < 2000) Do
Wait(50);
End;
End;
Usage:
DropExcept(1, 28, true, [1, 2, 3, 4 ,5]);