Reformat and clean up event scripts
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
2x EXP Event Script
|
||||
-- Author --------------------------------------------------------------------------------------
|
||||
Twdtwd
|
||||
**/
|
||||
-- Odin JavaScript --------------------------------------------------------------------------------
|
||||
2x EXP Event Script
|
||||
-- Author --------------------------------------------------------------------------------------
|
||||
Twdtwd
|
||||
**/
|
||||
|
||||
var timer1;
|
||||
var timer2;
|
||||
@@ -32,27 +32,31 @@ var timer3;
|
||||
var timer4;
|
||||
|
||||
function init() {
|
||||
/*
|
||||
/*
|
||||
if(em.getChannelServer().getId() == 1) { // Only run on channel 1.
|
||||
// AEST
|
||||
timer1 = em.scheduleAtTimestamp("start", 1428220800000);
|
||||
timer2 = em.scheduleAtTimestamp("stop", 1428228000000);
|
||||
// EDT
|
||||
timer1 = em.scheduleAtTimestamp("start", 1428271200000);
|
||||
timer2 = em.scheduleAtTimestamp("stop", 1428278400000);
|
||||
}
|
||||
// AEST
|
||||
timer1 = em.scheduleAtTimestamp("start", 1428220800000);
|
||||
timer2 = em.scheduleAtTimestamp("stop", 1428228000000);
|
||||
// EDT
|
||||
timer1 = em.scheduleAtTimestamp("start", 1428271200000);
|
||||
timer2 = em.scheduleAtTimestamp("stop", 1428278400000);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function cancelSchedule() {
|
||||
if (timer1 != null)
|
||||
if (timer1 != null) {
|
||||
timer1.cancel(true);
|
||||
if (timer2 != null)
|
||||
}
|
||||
if (timer2 != null) {
|
||||
timer2.cancel(true);
|
||||
if (timer3 != null)
|
||||
}
|
||||
if (timer3 != null) {
|
||||
timer3.cancel(true);
|
||||
if (timer4 != null)
|
||||
}
|
||||
if (timer4 != null) {
|
||||
timer4.cancel(true);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
|
||||
Reference in New Issue
Block a user