SRL Archive - OSR Help

Need help with a drop procedure


Brotein

2012-02-07 00:14:44

I've been trying to figure out something for doing a drop procedure, but I'm a bit lost.

I am writing a silk thieving script, and I want it to drop the silk when it reaches 28(full inv). The idea that I have is to have it call my drop procedure using
if InvFull then

The core of the drop procedure is
    for i := 1 To 28 do
begin
if ExistsItem(i) then
DropItem(i);
end;

Does this make sense or is there a more efficient way to do it?

kevin33

2012-02-07 00:17:03

Yes it makes sense and yes it should work (I say should because there is only one way to truly know if it works…test :) ) As for efficiency, I would say it is a widely used drop procedure that is quite effective.

laakerules

2012-02-07 00:48:04

Really? :O

i would use something like


ClickMouse2(false);
WaitOption('Drop',250);

Er1k

2012-02-07 08:56:33

Lag will cause the dropping to go off slightly. It's a good idea to retry dropping until everything you need to drop is dropped.

Chris

2012-02-07 09:04:43

The easy way would be to use
 DropAll; // Drops all items in inventory.  
:D

Brotein

2012-02-07 16:38:32

*smacks head*

Thanks for the input guys, I seem to do things the hard way before the easy way ;)