DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • December 11, 2017, 07:29:00 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Limiting Access  (Read 2055 times)
0 Members and 1 Guest are viewing this topic.
Ironman
Guest
« on: July 16, 2004, 07:29:09 AM »

I need some advice on how to approach what I want to do.  Every option presented in my scripts should only be done once a day.  For example, my first mod will have three options: Train with Court, train with Garrison, and get a massage.  I don't want the player to be able to get more than one massage per day.  Ditto for the other two options.

I was thinking of setting one variable for each event at the beginning of the script to 0, and then toggle it to 1 once it was selected, but worry that all a player would need to do is exit out and come back in, and the variables would be 0 again.  So, I'm not sure how to procede.  Should I create an MySQL table for this?  I'm not sure what checkday() does; would this somehow be involved?

Thanks!
Logged
lonnyl
Guest
« Reply #1 on: July 16, 2004, 09:51:15 AM »

checkday, checks to see if a user is due for a new day..... and yes a sql field for each thing would be simplest....  the special vars mod would allow you to set it.... and clear it at new day and at this point would propably be the better way to do it....
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
17 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search