Dear daileyj93,
thank you for helping me.
i was going to use this for a waitloop from this guide
https://villavu.com/forum/showthread.php?t=118229
when i try to put it in simba code it all goes to shat idk why so i just copy pasted it.
{************************************************* ******************************
Name: waitLoop();
Function: Waits until we have collected our cabbage
************************************************** *****************************}
procedure waitLoop();
var
InvCount: Integer;
T: TTimeMarker;
begin
if not SRL.isLoggedIn() then
Exit;
InvCount := Inventory.Count(); //Gets the count in our inventory
T.Start; //Start our timer
repeat
wait(randomRange(75, 250)); //Wait a random amount of time
until((Inventory.Count() > InvCount) or (T.GetTime > 7000)); //Stop repeating once inv count changes or we time out
end;