astoria1112000
2011-12-01 09:19:12
What is the function to drop an item from the inventory??
2011-12-01 09:19:12
2011-12-01 09:26:58
DropItem(I);
2011-12-01 09:30:10
2011-12-01 09:35:32
function DropInventory: Boolean;
var
X, Y, I, DTM : Integer;
Box : TBox;
M : string;
begin
if (not(LoggedIn)) or (not(InvFull)) then Exit;
FindNormalRandoms;
M := Players[CurrentPlayer].Strings[MINING];
case Lowercase(M) of
'iron' : DTM := DTMFromString('mbQAAAHicY2VgYOhhYmCYA8S1QDwJiFuAWISRgYEf' +
'iGWhmBeITeXFgaqZUDArAyZgxILBAABOugO3');
'copper' : DTM := DTMFromString('mbQAAAHicY2VgYLjKxMBwE4jPAvF9ID4JxOKMD' +
'AzcQCwHxPJALAjEu7OtgKqZUDArAyZgxILBAAA' +
'WYgYa');
'tin' : DTM := DTMFromString('mbQAAAHicY2VgYNjGxMBwDIi3AvEyIN4AxKKMDAz' +
'8QKwIxCJAzAnEaYmJQNVMKJiLARMwYsFgAADKOgU9');
end;
for I := 1 to 28 do
begin
Box := InvBox(I);
if FindDTM(DTM, X, Y, Box.X1, Box.Y1, Box.X2, Box.Y2) then
begin
Mouse(X, Y, 5, 5, False);
WaitOption('rop', 710);
end;
Wait(RandomRange(122, 180));
end;
FreeDTM(DTM);
if (InvFull) then ExitPlayer('We were unable to drop our inventory...');
end;
procedure SimpleDrop;
var X, Y, DTM : Integer;
begin
if (not(LoggedIn)) then Exit;
FindNormalRandoms;
DTM := DTMFromString('');
if FindDTM(DTM, X, Y, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(X, Y, 5, 5, False);
ChooseOption('rop');
end;
FreeDTM(DTM);
end;
From: astoria1112000
No i dont know the inventory slot of my item , want to rtclick my item and select select drop
2011-12-01 12:11:11
From: RISK
For your edit: You should never use capital letters in your text finding, try it that way. Also make sure everything is updated.
2011-12-01 13:02:04
2011-12-01 15:09:50
for I := 1 to 28 do
begin
Box := InvBox(I);
if FindDTM(DTM, X, Y, Box.X1, Box.Y1, Box.X2, Box.Y2) then
begin
Mouse(X, Y, 5, 5, False);
WaitOption('rop', 710);
end;
// I'd Really suggest
FoundDTM: boolean;
FoundDTM := FindDTM(DTM, X, Y, MIX1, MIY1, MIX2, MIY2);
while (FoundDTM) do
begin
Mouse(X, Y, 5, 5, False);
WaitOption('rop', 710);
FoundDTM := FindDTM(DTM, X, Y, MIX1, MIY1, MIX2, MIY2);
end;