Added code support for Kites. Reviewed concurrent access issues with pet autopot. Addressed PlayerStorage issue where characters would not be properly deregistered from channel PlayerStorage in certain situations. Implemented harp quest (questid 3314) because of reasons. Added SFX to signalize KC/NLC subway departing/approaching. Changed traveling time values to work similarly to GMS. Properly developed the PlayerNPC feature in the source. Added autodeployable PlayerNPC system and Hall of Fame. Solved a glitch with NLC mayor's quiz questline that would allow a player to restart the quiz as many times one would see fit. Added a custom server flag that allows overwriting the ToT 999 mobs to a new value (technically it doesn't overwrite, rather sets the player at quest start with 999 - n credited mobs). Fixed permanent pets expiring after a while. Added code support for Cash Shop Surprise item. Reviewed login handler system as a whole, protecting many exposed flaws. Solved a bug with ULTRA_THREE_SNAILS sometimes taking wrong etc shell from inventory.
29 lines
673 B
JavaScript
29 lines
673 B
JavaScript
function enter(pi) {
|
|
pi.playPortalSound();
|
|
|
|
switch (pi.getPlayer().getMapId()) {
|
|
case 130000000:
|
|
pi.warp(130000100, 5); //or 130000101
|
|
break;
|
|
case 130000200:
|
|
pi.warp(130000100, 4); //or 130000101
|
|
break;
|
|
case 140010100:
|
|
pi.warp(140010110, 1); //or 140010111
|
|
break;
|
|
case 120000101:
|
|
pi.warp(120000105, 1);
|
|
break;
|
|
case 103000003:
|
|
pi.warp(103000008, 1); //or 103000009
|
|
break;
|
|
case 100000201:
|
|
pi.warp(100000204, 1); //or 100000205
|
|
break;
|
|
default:
|
|
pi.warp(pi.getMapId() + 1, 1); //or + 2
|
|
break;
|
|
}
|
|
|
|
return true;
|
|
} |