Hello Guys,
i have finally learnt to setup the Whole thing;
here is my script to cook food at lumby portables
dont forget to change id for food you wanna cook
Code:
program Test;
{$loadlib MemoryError}
var
x,y: Integer;
begin
wait(100);
SetupRSReading(True,'inputuridhere',-1,2);
Begin
repeat
repeat
If (InvItemcount(383)<1) then
begin
repeat
FindDobj([79036],1,16,0,False,0,'Use');
wait(random(1000,2000));
BankOpen();
wait(random(1000,2000));
Until(BankOpen()=true);
KeyPress("1");
wait(random(1000,2000));
end
until(InvItemcount(383)>1);
Begin
If (InvItemcount(383)>1) then
FindAobj([89768],1,50,1,True,0,'Cook');
wait(random(1500,2000));
KeyPress(" ");
wait(random(2000,3000));
Repeat
wait(random(2000,6000));
WriteLn(InvItemcount(383));
WriteLn(InvFreecount());
Until(InvItemcount(383)=0);
end
Until(InvFreecount()=0)
end
end