konichiwa08 0 Posted March 22, 2015 i would like to make the respawn of the treasure box to be every week rather than every 12:00am.. is it possible? Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted March 23, 2015 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. Quote Share this post Link to post Share on other sites
0 konichiwa08 0 Posted March 24, 2015 (edited) can i ask for a sample script? im sorry im still a newbie Edited March 24, 2015 by konichiwa08 Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted March 25, 2015 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] Quote Share this post Link to post Share on other sites
0 konichiwa08 0 Posted March 26, 2015 can i also turn it into OnAgitEnd for it to spawn after woe? Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted March 27, 2015 I guess yes, but not sure if it'll produce any unwanted behaviour. Quote Share this post Link to post Share on other sites
i would like to make the respawn of the treasure box to be every week rather than every 12:00am.. is it possible?
Share this post
Link to post
Share on other sites