I have a table in SQL which stores the datetime when the player did something (datetime format: YYYY-MM-DD HH:MM:SS).
I want to make a check up when the player try to talk to the NPC, that he will only proceed if the delay between the stored datetime in SQL and the current time in-game is less or equal to 25 hours.
So, if the current time is more then 25 hours later from the stored value in the SQL (datetime), the NPC won't talk.
But i do not know how to make those checks. How can i compare a datetime value in SQL to the current time in server plus some hours/days?
Thanks!