Visman
01-09-2012, 02:52 AM
If InvCount= PlusOne Then
WriteLn('You got some iron!');
Repeat
MineOre;
Until (InvFull);
If (InvFull) then
DropAll;
Repeat
Dropall;
Until (InvEmpty);
Repeat
MineOre;
DropAll
Until (Logout);
I've written this code (im really new to all of this) but i cant for the life of me figure out how to make it drop all the items when it has a full inventory then start mining again and repeat. I thought this code would work but i know i need to write a lot more, Any help would be appreciated.
WriteLn('You got some iron!');
Repeat
MineOre;
Until (InvFull);
If (InvFull) then
DropAll;
Repeat
Dropall;
Until (InvEmpty);
Repeat
MineOre;
DropAll
Until (Logout);
I've written this code (im really new to all of this) but i cant for the life of me figure out how to make it drop all the items when it has a full inventory then start mining again and repeat. I thought this code would work but i know i need to write a lot more, Any help would be appreciated.