Skip to content
User Avatar
#2921
Auto-translated
Gerter
It's simple, you create a check loop:
function CheckStacks()
while 1 do
local x
for i, stack in stacks do
if IsObjectExists(stack) then
x = not nil
end
end
if not x then
SetObjectiveState('desired_objective', OBJECTIVE_COMPLETED)
break
end
if GetDate(DAY) == desired_day then
break
end
sleep()
end
end

startThread(CheckStacks)

Okay. Thank you very much.

Statistics

Welcome our newest member: artem

Users Online 0 users 1631 guests

The tavern is quiet... be the first to arrive!