11 lines
281 B
JavaScript
11 lines
281 B
JavaScript
|
var eventName = "Trains";
|
||
|
var toMap = 200090100;
|
||
|
|
||
|
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().warpAhead(toMap);
|
||
|
}
|
||
|
}
|