SRL Archive - OSR Help

is there a better way to check for gold left in inventory?


seany

2014-10-21 17:24:20

Hey, i been using this code in my script for sometime and although it usually works, sometimes for whatever reason the amount received is 0 and then the script closes.

is there a better way to detect the amount of gold left in the inventory?


if (GetAmountBox(InvBox(1)) < 15000) then
begin;
writeln('Less than 15k left ending script');
logout();
writeln('Logged Out.');
end;

please help if possible!

seany

KeepBotting

2014-10-21 17:45:07

If you're returning zero, mouse over the slot and check the mouseovertext as a failsafe?

Use a DTM, a BMP? Coin stacks change visually depending on how many geepees you have

Harrier

2014-10-21 17:54:21

From: KeepBotting
If you're returning zero, mouse over the slot and check the mouseovertext as a failsafe?

Use a DTM, a BMP? Coin stacks change visually depending on how many geepees you have

After the stack is 10k it doesn't change on osrs afaik

KeepBotting

2014-10-21 18:06:51

From: Harrier
After the stack is 10k it doesn't change on osrs afaik


true dat, but that'd only be 5k less than op's current condition

seany

2014-10-21 18:12:48

From: Harrier
After the stack is 10k it doesn't change on osrs afaik


ah that could help because i never want the cash to drop below 10-15k anyway so i could use the cash dtm or bmp not sure how to get it to work with inv items though.

seany