Jump to content
rsutton

Not finding full inv and stopping script

Recommended Posts

{$DEFINE RS2}

{$DEFINE OSI_Color_Anti_Randoms}

{$I OSI\OSI.scar}

{$I OSI\RS2\Extended\Object.Scar}

 

//{$DEFINE SMART} // Comment out to disable SMART

var

Bx, By,i, Minedtimes : Integer;

procedure ScriptTerminate;

begin

FreeOSI;

end;

 

 

procedure Miner;

begin

if FindObjSize(bx, by, 9342619{color}, 17{Tol}, 32{x}, 35{y}, ['mine', 'ine', 'Rocks', 'ocks']) then

begin

GetMousePos(bx, by);

Mouse(bx, by, 1, 0, True);

OSIFindRandoms;

Wait(5000);

// make a check if item just incremented inventory ( just mined ore )

end;

end;

 

begin

repeat

SetUpOSI;

ActivateClient;

Miner;

until (InvFull) = True;

end.

 

 

 

 

Just keeps running after my inventoiry is full

 

---------- Post added at 01:17 AM ---------- Previous post was at 12:43 AM ----------

 

plenty of people viewing, no one answering lol

Link to comment
Share on other sites

I did in the until loop at bottom, it just is not catching nad stopping

 

---------- Post added at 02:50 AM ---------- Previous post was at 01:24 AM ----------

 

Just still sitting here waiting for 1 out of the 2 people who knows how the osi works...

 

---------- Post added at 03:25 AM ---------- Previous post was at 02:50 AM ----------

 

Ok Once i used it with SMART it worked.... is there any sense in this ?

Link to comment
Share on other sites

You could do something like this...

 

{$DEFINE RS2}
{$DEFINE OSI_Color_Anti_Randoms}
{$I OSI\OSI.scar}
{$I OSI\RS2\Extended\Object.Scar}

//{$DEFINE SMART} // Comment out to disable SMART
var
 Bx, By,i, Minedtimes : Integer;
procedure ScriptTerminate;
begin
 FreeOSI;
end;


procedure Miner;
begin
 repeat
   if FindObjSize(bx, by, 9342619{color}, 17{Tol}, 32{x}, 35{y}, ['mine',
     'ine', 'Rocks', 'ocks']) then GetMousePos(bx, by);
   Mouse(bx, by, 1, 0, True);
   OSIFindRandoms;
   Wait(5000)
 until (InvFull);
{Repeat so it doesn't stop after only mining one ore. Stops when full }
 If (InvFull) then DropAllExclude([0]);
 //Drops all but first inventory slot
end;

begin
   SetUpOSI;
   ActivateClient;
 repeat
   Miner;
 until (Not (LoggedIn));
end.

Edited by wyn10
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...