Pancakes
2007-10-04 01:54:31
Well I'm watching my private power-mining script run, and he drops a ruby and a diamond. And I'm there thinking 'wouldn't it be great if he kept those?' Well, now you can.
BEHOLD!
Post bugs / improvements / suggestions etc. :)
Tested, works like a charm :)
Edit: Added the other procedure, cleaned them up alot.
BEHOLD!
//Supply the procedure with an array of strings, and it will drop everything except those items.
procedure DropExceptName(ItemList : TStringArray);
var J : TPoint;
var i, X, Y : Integer;
begin
GameTab(4);
for i := 1 To 28 do
begin
if (Not(ExistsItem(i))) then Continue;
J := ItemCoords(i);
MMouse(J.X, J.Y, 3, 3);
Wait(150 + Random(150));
if (Not(IsUpTextMultiCustom(ItemList))) then
begin
GetMousePos(X, Y);
Mouse(X, Y, 0, 0, False);
Wait(150 + Random(150));
ChooseOption('rop');
end;
end;
end;
//Supply the procedure with an array of strings, and it will only drop those items.
procedure DropOnlyName(ItemList : TStringArray);
var J : TPoint;
var i, X, Y : Integer;
begin
GameTab(4);
for i := 1 To 28 do
begin
if (Not(ExistsItem(i))) then Continue;
J := ItemCoords(i);
MMouse(J.X, J.Y, 3, 3);
Wait(150 + Random(150));
if (IsUpTextMultiCustom(ItemList)) then
begin
GetMousePos(X, Y);
Mouse(X, Y, 0, 0, False);
Wait(150 + Random(150));
ChooseOption('rop');
end;
end;
end;
Post bugs / improvements / suggestions etc. :)
Tested, works like a charm :)
Edit: Added the other procedure, cleaned them up alot.