HyperSecret
2008-04-01 02:47:55
got this idea from iBot. it drops all the items in the invetory EXCEPT the ones specified by the items. mainly based off SRLs drop procedure but just alittle different and i thought would be useful. also nice re-arranges inv at the end with ArrangeInv; (great procedure IMO that is under-used).
usage:
will drop all items unless uptext is 'oin' (coins) , 'uby' (ruby), 'obster' (lobster). those items will be kept in the inv
procedure DropItemsBut(Items: TStringArray);
var L: integer;
var Pr: TPoint;
begin
for L := 1 to 28 do
begin
if ExistsItem(L) then
begin
Pr := ItemCoords(L);
MMouse(Pr.x, Pr.y, 8, 8);
wait(100 + randomrange(100, 250));
if not(IsUpTextMultiCustom(Items)) then
begin
Mouse(Pr.x, Pr.y, 8, 8, False);
Wait(170 + Random(50));
if (ChooseOption('rop')) then
begin
Wait(500 + Random(100));
end;
end;
end;
end;
ArrangeInv;
end;usage:
DropItemsBut(['oin', 'uby', 'obster']);
will drop all items unless uptext is 'oin' (coins) , 'uby' (ruby), 'obster' (lobster). those items will be kept in the inv