Reformat and clean up event scripts
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
/**
|
||||
* @Author Ronan
|
||||
* Event - Jonathan's Test Quest
|
||||
**/
|
||||
**/
|
||||
|
||||
var entryMap = 912020000;
|
||||
var exitMap = 120000102;
|
||||
@@ -37,7 +37,7 @@ function getMaxLobbies() {
|
||||
}
|
||||
|
||||
function init() {
|
||||
em.setProperty("noEntry","false");
|
||||
em.setProperty("noEntry", "false");
|
||||
}
|
||||
|
||||
function setup(level, lobbyid) {
|
||||
@@ -68,7 +68,7 @@ function playerUnregistered(eim, player) {}
|
||||
function playerExit(eim, player) {
|
||||
eim.unregisterPlayer(player);
|
||||
eim.dispose();
|
||||
em.setProperty("noEntry","false");
|
||||
em.setProperty("noEntry", "false");
|
||||
}
|
||||
|
||||
function playerLeft(eim, player) {}
|
||||
@@ -84,7 +84,9 @@ function playerDisconnected(eim, player) {
|
||||
}
|
||||
|
||||
function changedMap(eim, chr, mapid) {
|
||||
if(mapid < minMapId || mapid > maxMapId) playerExit(eim, chr);
|
||||
if (mapid < minMapId || mapid > maxMapId) {
|
||||
playerExit(eim, chr);
|
||||
}
|
||||
}
|
||||
|
||||
function clearPQ(eim) {
|
||||
|
||||
Reference in New Issue
Block a user