SRL Archive - OSR Help

InvFull?


telebrb

2013-06-14 05:27:44

Hi, I'm making a script to pickup Wine of Zamorak.

I've mastered everything except, how do I tell the bot when the inventory is full?

When I write:

Repeat
Blah;
Until(InvFull)

And click run, this happens?

Compiled successfully in 343 ms.
Error: Exception: The bitmap[0] does not exist at line 664

Thanks.

denart5

2013-06-14 05:44:34

Or you make it count the amount of wines grabbed and let it stop after 27 times

Itankbots

2013-06-14 06:33:25

That Error shouldn't have anything to do with calling InvFull. Idk what the error is for without you posting the rest of the code.

As long as you do something like

Repeat
(grab wines or whatever);
Until (InvFull);


or While Not (invFull) do

Then you should be fine, its an error cause of something else.

bob_dole

2013-06-14 06:51:47

or

repeat
// grabwine function
until (ItemExists(28));

Rich

2013-06-14 07:07:58

InvFull isn't causing that problem, so changing it to something won't help. Could you show us the whole script?

Peanuts

2013-06-14 07:38:50

I like to use something like…

begin
repeat
if invfull then
DoBankProcedure;
repeat
findzammywine;
until(invFull)

until(Collected1000wines)
end.