SRL Archive - MSI Archives

banking


Shuttleu

2010-07-20 08:12:13

when banking it should bank everything except things that it needs
so for woodcutting, hatchet

i was woodcutting and got 2 strange rocks, and it wont bank them, only the logs

its a small and quick, easy change

~shut

i luffs yeww

2010-07-20 10:22:57


procedure MSI_Deposit;
var
i, Axe, x, y: Integer;
Item: TBox;
begin
FindDTM(Axe_DTM, x, y, MIX1, MIY1, MIX2, MIY2);
Axe := CoordsToItem(x, y);
for i := 1 to 28 do
begin
if(i = Axe)then
Break;
if(ExistsItem(i))then
begin
Item := InvBox(i);
Mouse(Item.x1, Item.y1, Item.x2 - Item.x1, Item.y2 - Item.y1, False);
ChooseOption('All');
end;
end;
end;

Liek dis? I've never even looked at an MSI script so I dunno if this would fit in, or if depositing is already in a banking function or something. Either way this would work.

NCDS

2010-07-20 10:48:50

From: Shuttleu
when banking it should bank everything except things that it needs
so for woodcutting, hatchet

i was woodcutting and got 2 strange rocks, and it wont bank them, only the logs

its a small and quick, easy change

~shut

We'll take care of it today.

From: i luffs yeww

procedure MSI_Deposit;
var
i, Axe, x, y: Integer;
Item: TBox;
begin
FindDTM(Axe_DTM, x, y, MIX1, MIY1, MIX2, MIY2);
Axe := CoordsToItem(x, y);
for i := 1 to 28 do
begin
if(i = Axe)then
Break;
if(ExistsItem(i))then
begin
Item := InvBox(i);
Mouse(Item.x1, Item.y1, Item.x2 - Item.x1, Item.y2 - Item.y1, False);
ChooseOption('All');
end;
end;
end;

Liek dis? I've never even looked at an MSI script so I dunno if this would fit in, or if depositing is already in a banking function or something. Either way this would work.

That wouldn't work for MSI, as every function needs to be able to be used for every skill basically ;)

i luffs yeww

2010-07-20 10:52:38

Well then you can simply add the DTM/bitmap/black list to the function? :p

NCDS

2010-07-20 10:56:17

From: i luffs yeww
Well then you can simply add the DTM/bitmap/black list to the function? :p


We already have generalized functions for all the banking, I'm just going to edit it to a DepositAllExcept(TOOL); type deal.

Coh3n

2010-07-20 17:56:54

From: i luffs yeww
Well then you can simply add the DTM/bitmap/black list to the function? :p

You should take a look at the MSI functions. There is a lot more to take into consideration then what you have. Once you see some of the functions you'll know what I mean. ;)