Jump to content
  • 0
Sign in to follow this  
konichiwa08

about the castle treasure box

Question

5 answers to this question

Recommended Posts

  • 0

Yep it is, just make some kind of counter that adds one by one (I guess, on a permanent server var) and make the spawn once it reaches 7 and don't forget to reset it.

Share this post


Link to post
Share on other sites
  • 0

Even better than a counter, you can spawn them just on Sundays or other days:

 

 

*gettime(<type>)       This function returns specified information about the current system time.       1 - Seconds (of a minute)   2 - Minutes (of an hour)   3 - Hour (of a day)   4 - Week day (0 for Sunday, 6 is Saturday)   5 - Day of the month.   6 - Number of the month.   7 - Year.   8 - Day of the year.       It will only return numbers.       if (gettime(4)==6) mes "It's a Saturday. I don't work on Saturdays.";

 

For example:

 

OnClock0001: // this is the routine for treasure chests spawning  if (gettime(4) != 0) { // just spawn on Sundays   end;   }    // [rest of script comes here]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.