Log rearrangement + new map scripts
Changed log folders to apply yyyy-MM-dd mask. Created some scripts to fix race conditions involving delayed arrivals to travel events in-game.
This commit is contained in:
13
scripts/map/onUserEnter/103000000.js
Normal file
13
scripts/map/onUserEnter/103000000.js
Normal file
@@ -0,0 +1,13 @@
|
||||
importPackage(Packages.tools);
|
||||
|
||||
var eventName = "AirPlane";
|
||||
var toMap = 540010101;
|
||||
|
||||
function start(ms) {
|
||||
var em = ms.getClient().getEventManager(eventName);
|
||||
|
||||
//is the player late to start the travel?
|
||||
if(em.getProperty("docked") == "false") {
|
||||
ms.getClient().getPlayer().warp(toMap);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user