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

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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