Jump to content
  • 0

Check Previous Day if player logged in or not


PandaLovesHamster

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Hi, I know the usage of gettimetick, however I do want to compare the day, for instance Tuesday, Wednesday etc. I'm not that good at scripting so I'd like to have a few ideas to work on.

 

For instance, player logged in at Monday, didn't log in at Tuesday then logged back in Wednesday, how do I make the NPC recognize the skipped date and reset his log in count?

 

Thanks.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   597
  • Joined:  11/25/11
  • Last Seen:  

Man, to be honest, I would use arrays.
Set one array per month and, when player log in, you can set the 'day' position of array, (like day 22), and check it whenever it may be necessary.

Dunno, just an idea.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

you could do a query to retrieve all information if you have the log_login option enabled.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...