Feel like I'm going backwards rather than forwards trying to learn to script.
Anybody else having issues with InvFull? since the upgrade to 27 (may be co-incidental) I cannot detect whether the inventory is full.
As a test I used just this and...nothing.
Colorfinding routines that used to work are also wonky. Work 1 out of 2-3 tries. Drives me nuts trying to test/debug anything.SCAR Code:SetupSRL;
ActivateClient;
if (InvFull()) then
writeln('full inventory');
if (InvCount() = 28) then
writeln(full inventory (count)');
for i := 1 to 28 do
if (ExistsItem(i)) then
writeln('exists: ' + IntToStr(i));
Edit: I have an inventory of 28 oak logs when trying this.
Edit: Just for kicks rolled back to rev 25 - working, forward to 26 - working, forward to 27 - working? What the h***?
Edit: Just reloaded RS and what do you know...not working again. After a bit of testing it will work for a random number of tries then just stop detecting. Grrr.
I give up trying to write a script when the routines give a different result everytime you run it.![]()


Reply With Quote








