I want to make a script called lotto:
set %lotto $rand(1,100) {
if (%lotto == 1) { /msg $chan CONGRADULATIONS $nick You are now an op for a day! | /mode #avatarrp +o $nick }
if (%lotto == 2) { /msg $chan CONGRADULATIONS $nick You are now an op for a day! | /mode #avatarrp +o $nick }
if (%lotto == 3) { /msg $chan CONGRADULATIONS $nick You are now a halfop for a day! | /mode #avatarrp +h $nick }
if (%lotto == 4) { /msg $chan CONGRADULATIONS $nick You are now a halfop for a day! | /mode #avatarrp +h $nick }
if (%lotto == 5) { /msg $chan CONGRADULATIONS $nick You are now a halfop for a day! | /mode #avatarrp +h $nick }
if (%lotto == 6) { /msg $chan CONGRADULATIONS $nick You are now a halfop for a day! | /mode #avatarrp +h $nick }
if (%lotto == 49) { /msg $chan CONGRADULATIONS $nick You win the GRAND PRIZE and are now an ADMINISTRATOR for a day! /mode #avatarrp +a $nick }
else /msg $chan SORRY $nick...better luck next time :) | set %lottoplay %lottoplay $nick
}
}
}
Don't worry about the first part....but the problem is I want to reset it once a day AUTOMATICALLY, at a specific time.
How do I do that?
And also on day...and stuff like that
Thanks