lua code:
--[[ time in 24 hour format, eg, 21:00, 12:30, 04:35 ]]
local hourTime = 11 -- time in hours (00 to 24)
local minsTime = 50 -- time in minutes (00 to 60)
--[[ leave below this alone]]
function creatureCount()
local count = 0
for name, cid in Creature.iMonsters() do
count = count + 1
end
return count
end
while true do
-- get local time
local logTime = os.date("*t")
if logTime.hour == hourTime and logTime.min == minsTime then
-- stop the walker if time is equal to variable time
Walker.Stop()
-- wait until there are no creatures on screen..
while creatureCount() ~= 0 or Self.isInFight() do
wait(1000)
end
-- ..then exit the client
os.exit()
end
wait(5000)
end