Jump to content
  • 0

How to change this script into announce on specific time and day?


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

-	script	News	-1,{
OnInit:
set .Time,60;		// Announce every x Minute.

setarray .News$[0],	// Random Message to be Announced
		"Example Message 1",
                "Example Message 2",
		
		
while( 1 ){
	announce .News$[ rand( getarraysize( .News$ ) ) ],0;
	sleep ( .Time * 60000 );
	}
end;
}

Hi,

How to change this script into like this.. On every Friday, at 5pm the server will announce event reminder.. At 5.15PM repeat the reminder and another 5.30PM will announce last reminder.. 

Thank you..

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

 

Hello there, try this. 

-	script	News	-1,{

OnFri1700: //5PM every Friday
OnFri1715: //5:15PM every Friday
OnFri1730: //5:30 PM every Friday

setarray .News$[0], //random
		"1st message",
                "2nd message",

announce .News$[ rand( getarraysize( .News$ ) ) ],0;

end;

}

Hi,

Your script not working.. But at least I have idea how to make this script works.. Thank you.. Below is my edited script base on your script earlier.. ^_^

 

// News Script Original Modified by Isaiah
// Re-modified by rakuzas (Milenia RO)

-	script	News	-1,{

OnSat2101: 
OnSat2102: 
OnSat2103: 

set .News$[0],"1st message";

announce .News$,0;
end;

}

-	script	News2nd	-1,{

OnSat2104: 
OnSat2105: 
OnSat2106: 

set .News$[0],"2nd message";

announce .News$,0;
end;

}
Edited by rakuzas
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  192
  • Reputation:   9
  • Joined:  05/08/13
  • Last Seen:  

Hello there, try this. 

-	script	News	-1,{

OnFri1700: //5PM every Friday
OnFri1715: //5:15PM every Friday
OnFri1730: //5:30 PM every Friday

setarray .News$[0], //random
		"1st message",
                "2nd message",

announce .News$[ rand( getarraysize( .News$ ) ) ],0;

end;

}

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...