Reformat and clean up event scripts

This commit is contained in:
P0nk
2021-09-09 23:31:05 +02:00
parent 7be1d119de
commit a12feaf3e4
107 changed files with 7493 additions and 6977 deletions

View File

@@ -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() {