• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X Script to Verify if passed 1 day

Yan18

Member
Joined
Jun 14, 2014
Messages
104
Solutions
3
Reaction score
17
Hello, i want to know how to do a script that verify if passed 24 hours to player can do the quest again, if not, receive message saying "You can't do the quest again. You will in the xx:xx:xx hours again."
 
 
Code:
if getPlayerStorageValue(cid, daily_check_storageID) - os.time() <= 0 then
    setPlayerStorageValue(cid, daily_check_storageID, os.time() + (24 * 60 * 60))
    doQUEST...
else
    you need to wait until next day...
end


 
Last edited:
Back
Top