If the inventory is full, you don't have a then begin so it will do just the thing after if(InvFull) and do the rest no matter what! So even if the inventory isn't full, it will do the dropping and everything after that. But if it is full, it will make the MouseSpeed := 100; So do this:
if (invfull = true) then
begin
mousespeed:=100;
dropto(startat,28);
wait(1500+random(100));
end;
So now if the inventory is full, it will do those 3 things. MouseSpeed 100 is reallllly slow though.. :p try something more like 10.
And to learn standards and a LOT of other things you need to become a SRL member, check out my tut (links in sig) Learning the things to become a SRL member.