Thread: [614] Chaos Tunnels portals, entrances and exits

Results 1 to 7 of 7
  1. #1 [614] Chaos Tunnels portals, entrances and exits 
    ;D
    biggyBeat's Avatar
    Join Date
    Jan 2018
    Posts
    108
    Thanks given
    131
    Thanks received
    14
    Discord
    View profile
    Rep Power
    30
    Hello! These are all portals, entrances and exits for the Chaos Tunnels. EDIT: Updated the snippet based on Stimulant and Gregs replies.
    Source used: Matrix 614

    Code:
    switch (object.getId()) {
    		case 28782:
    			if (object.getX() == 3183 && object.getY() == 5470 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3059, 3549, 0));
    				player.getControlerManager().startControler("Wilderness");
    				break;
    			} else if (object.getX() == 3248 && object.getY() == 5490 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3120, 3571, 0));
    				player.getControlerManager().startControler("Wilderness");
    				break;
    			} else if (object.getX() == 3292 && object.getY() == 5479 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3165, 3562, 0));
    				player.getControlerManager().startControler("Wilderness");
    				break;
    			} else if (object.getX() == 3291 && object.getY() == 5538 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3165, 3617, 0));
    				player.getControlerManager().startControler("Wilderness");
    				break;
    			} else if (object.getX() == 3234 && object.getY() == 5559 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3108, 3639, 0));
    				player.getControlerManager().startControler("Wilderness");
    				break;
    			}
    		case 28891:
    			if (object.getX() == 3059 && object.getY() == 3550 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3183, 5469, 0));
    				break;
    			}
    		case 28892:
    			if (object.getX() == 3165 && object.getY() == 3561 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3293, 5479, 0));
    				break;
    			} else if (object.getX() == 3165 && object.getY() == 3618 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3290, 5539, 0));
    				break;
    			}
    		case 28893:
    			if (object.getX() == 3119 && object.getY() == 3571 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3249, 5490, 0));
    				break;
    			} else if (object.getX() == 3107 && object.getY() == 3639 && object.getPlane() == 0) {
    				player.setNextWorldTile(new WorldTile(3235, 5560, 0));
    				break;
    			}
    		case 28779:
    			ChaosTunnelsPortal portal = ChaosTunnelsPortal.getPortal(object);
    			if (portal != null) {
    				portal.teleportPlayer(player);
    				return true;
    			}
    		}

    ChaosTunnelsPortal.java
    Code:
    package com.rs.game.player.content;
    
    import java.util.concurrent.TimeUnit;
    
    import com.rs.cores.CoresManager;
    import com.rs.game.Graphics;
    import com.rs.game.WorldTile;
    import com.rs.game.player.Player;
    
    public enum ChaosTunnelsPortal {
    	PORTAL_0(new WorldTile(3191, 5495, 0), new WorldTile(3194, 5490, 0)),
    	PORTAL_1(new WorldTile(3194, 5490, 0), new WorldTile(3191, 5495, 0)),
    	PORTAL_2(new WorldTile(3185, 5478, 0), new WorldTile(3191, 5482, 0)),
    	PORTAL_3(new WorldTile(3191, 5482, 0), new WorldTile(3185, 5478, 0)),
    	PORTAL_4(new WorldTile(3192, 5472, 0), new WorldTile(3186, 5472, 0)),
    	PORTAL_5(new WorldTile(3186, 5472, 0), new WorldTile(3192, 5472, 0)),
    	PORTAL_6(new WorldTile(3187, 5460, 0), new WorldTile(3189, 5444, 0)),
    	PORTAL_7(new WorldTile(3189, 5444, 0), new WorldTile(3187, 5460, 0)),
    	PORTAL_8(new WorldTile(3168, 5456, 0), new WorldTile(3178, 5460, 0)),
    	PORTAL_9(new WorldTile(3178, 5460, 0), new WorldTile(3168, 5456, 0)),
    	PORTAL_10(new WorldTile(3143, 5443, 0), new WorldTile(3155, 5449, 0)),
    	PORTAL_11(new WorldTile(3155, 5449, 0), new WorldTile(3143, 5443, 0)),
    	PORTAL_12(new WorldTile(3142, 5462, 0), new WorldTile(3154, 5462, 0)),
    	PORTAL_13(new WorldTile(3154, 5462, 0), new WorldTile(3142, 5462, 0)),
    	PORTAL_14(new WorldTile(3171, 5473, 0), new WorldTile(3167, 5471, 0)),
    	PORTAL_15(new WorldTile(3167, 5471, 0), new WorldTile(3171, 5473, 0)),
    	PORTAL_16(new WorldTile(3167, 5478, 0), new WorldTile(3171, 5478, 0)),
    	PORTAL_17(new WorldTile(3171, 5478, 0), new WorldTile(3167, 5478, 0)),
    	PORTAL_18(new WorldTile(3142, 5489, 0), new WorldTile(3141, 5480, 0)),
    	PORTAL_19(new WorldTile(3141, 5480, 0), new WorldTile(3142, 5489, 0)),
    	PORTAL_20(new WorldTile(3239, 5498, 0), new WorldTile(3244, 5495, 0)),
    	PORTAL_21(new WorldTile(3244, 5495, 0), new WorldTile(3239, 5498, 0)),
    	PORTAL_22(new WorldTile(3241, 5469, 0), new WorldTile(3233, 5470, 0)),
    	PORTAL_23(new WorldTile(3233, 5470, 0), new WorldTile(3241, 5469, 0)),
    	PORTAL_24(new WorldTile(3222, 5488, 0), new WorldTile(3218, 5497, 0)),
    	PORTAL_25(new WorldTile(3218, 5497, 0), new WorldTile(3222, 5488, 0)),
    	PORTAL_26(new WorldTile(3222, 5474, 0), new WorldTile(3224, 5479, 0)),
    	PORTAL_27(new WorldTile(3224, 5479, 0), new WorldTile(3222, 5474, 0)),
    	PORTAL_28(new WorldTile(3235, 5457, 0), new WorldTile(3229, 5454, 0)),
    	PORTAL_29(new WorldTile(3229, 5454, 0), new WorldTile(3235, 5457, 0)),
    	PORTAL_30(new WorldTile(3233, 5445, 0), new WorldTile(3241, 5445, 0)),
    	PORTAL_31(new WorldTile(3241, 5445, 0), new WorldTile(3233, 5445, 0)),
    	PORTAL_32(new WorldTile(3214, 5456, 0), new WorldTile(3212, 5452, 0)),
    	PORTAL_33(new WorldTile(3212, 5452, 0), new WorldTile(3214, 5456, 0)),
    	PORTAL_34(new WorldTile(3215, 5475, 0), new WorldTile(3218, 5478, 0)),
    	PORTAL_35(new WorldTile(3218, 5478, 0), new WorldTile(3215, 5475, 0)),
    	PORTAL_36(new WorldTile(3210, 5477, 0), new WorldTile(3208, 5471, 0)),
    	PORTAL_37(new WorldTile(3208, 5471, 0), new WorldTile(3210, 5477, 0)),
    	PORTAL_38(new WorldTile(3254, 5451, 0), new WorldTile(3250, 5448, 0)),
    	PORTAL_39(new WorldTile(3250, 5448, 0), new WorldTile(3254, 5451, 0)),
    	PORTAL_40(new WorldTile(3197, 5448, 0), new WorldTile(3204, 5445, 0)),
    	PORTAL_41(new WorldTile(3204, 5445, 0), new WorldTile(3197, 5448, 0)),
    	PORTAL_42(new WorldTile(3317, 5496, 0), new WorldTile(3307, 5496, 0)),
    	PORTAL_43(new WorldTile(3307, 5496, 0), new WorldTile(3317, 5496, 0)),
    	PORTAL_44(new WorldTile(3303, 5477, 0), new WorldTile(3299, 5484, 0)),
    	PORTAL_45(new WorldTile(3299, 5484, 0), new WorldTile(3303, 5477, 0)),
    	PORTAL_46(new WorldTile(3322, 5480, 0), new WorldTile(3318, 5481, 0)),
    	PORTAL_47(new WorldTile(3318, 5481, 0), new WorldTile(3322, 5480, 0)),
    	PORTAL_48(new WorldTile(3290, 5463, 0), new WorldTile(3302, 5469, 0)),
    	PORTAL_49(new WorldTile(3302, 5469, 0), new WorldTile(3290, 5463, 0)),
    	PORTAL_50(new WorldTile(3299, 5450, 0), new WorldTile(3296, 5455, 0)),
    	PORTAL_51(new WorldTile(3296, 5455, 0), new WorldTile(3299, 5450, 0)),
    	PORTAL_52(new WorldTile(3283, 5448, 0), new WorldTile(3287, 5448, 0)),
    	PORTAL_53(new WorldTile(3287, 5448, 0), new WorldTile(3283, 5448, 0)),
    	PORTAL_54(new WorldTile(3285, 5474, 0), new WorldTile(3286, 5470, 0)),
    	PORTAL_55(new WorldTile(3286, 5470, 0), new WorldTile(3285, 5474, 0)),
    	PORTAL_56(new WorldTile(3280, 5460, 0), new WorldTile(3273, 5460, 0)),
    	PORTAL_57(new WorldTile(3273, 5460, 0), new WorldTile(3280, 5460, 0)),
    	PORTAL_58(new WorldTile(3260, 5491, 0), new WorldTile(3266, 5446, 0)),
    	PORTAL_59(new WorldTile(3266, 5446, 0), new WorldTile(3260, 5491, 0)),
    	PORTAL_60(new WorldTile(3259, 5446, 0), new WorldTile(3265, 5491, 0)),
    	PORTAL_61(new WorldTile(3265, 5491, 0), new WorldTile(3259, 5446, 0)),
    	PORTAL_62(new WorldTile(3285, 5527, 0), new WorldTile(3282, 5531, 0)),
    	PORTAL_63(new WorldTile(3282, 5531, 0), new WorldTile(3285, 5527, 0)),
    	PORTAL_64(new WorldTile(3289, 5533, 0), new WorldTile(3288, 5536, 0)),
    	PORTAL_65(new WorldTile(3288, 5536, 0), new WorldTile(3289, 5533, 0)),
    	PORTAL_66(new WorldTile(3291, 5555, 0), new WorldTile(3285, 5556, 0)),
    	PORTAL_67(new WorldTile(3285, 5556, 0), new WorldTile(3291, 5555, 0)),
    	PORTAL_68(new WorldTile(3299, 5533, 0), new WorldTile(3297, 5536, 0)),
    	PORTAL_69(new WorldTile(3297, 5536, 0), new WorldTile(3299, 5533, 0)),
    	PORTAL_70(new WorldTile(3315, 5552, 0), new WorldTile(3321, 5554, 0)),
    	PORTAL_71(new WorldTile(3321, 5554, 0), new WorldTile(3315, 5552, 0)),
    	PORTAL_72(new WorldTile(3325, 5518, 0), new WorldTile(3323, 5531, 0)),
    	PORTAL_73(new WorldTile(3323, 5531, 0), new WorldTile(3325, 5518, 0)),
    	PORTAL_74(new WorldTile(3297, 5510, 0), new WorldTile(3300, 5514, 0)),
    	PORTAL_75(new WorldTile(3300, 5514, 0), new WorldTile(3297, 5510, 0)),
    	PORTAL_76(new WorldTile(3280, 5501, 0), new WorldTile(3285, 5508, 0)),
    	PORTAL_77(new WorldTile(3285, 5508, 0), new WorldTile(3280, 5501, 0)),
    	PORTAL_78(new WorldTile(3208, 5527, 0), new WorldTile(3211, 5523, 0)),
    	PORTAL_79(new WorldTile(3211, 5523, 0), new WorldTile(3208, 5527, 0)),
    	PORTAL_80(new WorldTile(3206, 5553, 0), new WorldTile(3204, 5546, 0)),
    	PORTAL_81(new WorldTile(3204, 5546, 0), new WorldTile(3206, 5553, 0)),
    	PORTAL_82(new WorldTile(3214, 5533, 0), new WorldTile(3211, 5533, 0)),
    	PORTAL_83(new WorldTile(3211, 5533, 0), new WorldTile(3214, 5533, 0)),
    	PORTAL_84(new WorldTile(3224, 5553, 0), new WorldTile(3230, 5547, 0)),
    	PORTAL_85(new WorldTile(3230, 5547, 0), new WorldTile(3224, 5553, 0)),
    	PORTAL_86(new WorldTile(3243, 5526, 0), new WorldTile(3241, 5529, 0)),
    	PORTAL_87(new WorldTile(3241, 5529, 0), new WorldTile(3243, 5526, 0)),
    	PORTAL_88(new WorldTile(3249, 5546, 0), new WorldTile(3252, 5543, 0)),
    	PORTAL_89(new WorldTile(3252, 5543, 0), new WorldTile(3249, 5546, 0)),
    	PORTAL_90(new WorldTile(3256, 5561, 0), new WorldTile(3253, 5561, 0)),
    	PORTAL_91(new WorldTile(3253, 5561, 0), new WorldTile(3256, 5561, 0)),
    	PORTAL_92(new WorldTile(3266, 5552, 0), new WorldTile(3262, 5552, 0)),
    	PORTAL_93(new WorldTile(3262, 5552, 0), new WorldTile(3266, 5552, 0)),
    	PORTAL_94(new WorldTile(3268, 5534, 0), new WorldTile(3261, 5536, 0)),
    	PORTAL_95(new WorldTile(3261, 5536, 0), new WorldTile(3268, 5534, 0)),
    	PORTAL_96(new WorldTile(3232, 5501, 0), new WorldTile(3238, 5507, 0)),
    	PORTAL_97(new WorldTile(3238, 5507, 0), new WorldTile(3232, 5501, 0)),
    	PORTAL_98(new WorldTile(3143, 5535, 0), new WorldTile(3147, 5541, 0)),
    	PORTAL_99(new WorldTile(3147, 5541, 0), new WorldTile(3143, 5535, 0)),
    	PORTAL_100(new WorldTile(3162, 5557, 0), new WorldTile(3158, 5561, 0)),
    	PORTAL_101(new WorldTile(3158, 5561, 0), new WorldTile(3162, 5557, 0)),
    	PORTAL_102(new WorldTile(3166, 5553, 0), new WorldTile(3162, 5545, 0)),
    	PORTAL_103(new WorldTile(3162, 5545, 0), new WorldTile(3166, 5553, 0)),
    	PORTAL_104(new WorldTile(3148, 5533, 0), new WorldTile(3153, 5537, 0)),
    	PORTAL_105(new WorldTile(3153, 5537, 0), new WorldTile(3148, 5533, 0)),
    	PORTAL_106(new WorldTile(3171, 5542, 0), new WorldTile(3168, 5541, 0)),
    	PORTAL_107(new WorldTile(3168, 5541, 0), new WorldTile(3171, 5542, 0)),
    	PORTAL_108(new WorldTile(3180, 5557, 0), new WorldTile(3174, 5558, 0)),
    	PORTAL_109(new WorldTile(3174, 5558, 0), new WorldTile(3180, 5557, 0)),
    	PORTAL_110(new WorldTile(3190, 5549, 0), new WorldTile(3190, 5554, 0)),
    	PORTAL_111(new WorldTile(3190, 5554, 0), new WorldTile(3190, 5549, 0)),
    	PORTAL_112(new WorldTile(3152, 5520, 0), new WorldTile(3156, 5523, 0)),
    	PORTAL_113(new WorldTile(3156, 5523, 0), new WorldTile(3152, 5520, 0)),
    	PORTAL_114(new WorldTile(3165, 5515, 0), new WorldTile(3173, 5530, 0)),
    	PORTAL_115(new WorldTile(3173, 5530, 0), new WorldTile(3165, 5515, 0)),
    	PORTAL_116(new WorldTile(3187, 5531, 0), new WorldTile(3182, 5530, 0)),
    	PORTAL_117(new WorldTile(3182, 5530, 0), new WorldTile(3187, 5531, 0)),
    	PORTAL_118(new WorldTile(3185, 5518, 0), new WorldTile(3181, 5517, 0)),
    	PORTAL_119(new WorldTile(3181, 5517, 0), new WorldTile(3185, 5518, 0)),
    	PORTAL_120(new WorldTile(3190, 5515, 0), new WorldTile(3190, 5519, 0)),
    	PORTAL_121(new WorldTile(3190, 5519, 0), new WorldTile(3190, 5515, 0)),
    	PORTAL_122(new WorldTile(3202, 5515, 0), new WorldTile(3196, 5512, 0)),
    	PORTAL_123(new WorldTile(3196, 5512, 0), new WorldTile(3202, 5515, 0)),
    	PORTAL_124(new WorldTile(3201, 5531, 0), new WorldTile(3197, 5529, 0)),
    	PORTAL_125(new WorldTile(3197, 5529, 0), new WorldTile(3201, 5531, 0)),
    	PORTAL_126(new WorldTile(3159, 5501, 0), new WorldTile(3169, 5510, 0)),
    	PORTAL_127(new WorldTile(3169, 5510, 0), new WorldTile(3159, 5501, 0)),
    	PORTAL_128(new WorldTile(3191, 5495, 0), new WorldTile(3194, 5490, 0)),
    	PORTAL_129(new WorldTile(3194, 5490, 0), new WorldTile(3191, 5495, 0)),
    	PORTAL_130(new WorldTile(3185, 5478, 0), new WorldTile(3191, 5482, 0)),
    	PORTAL_131(new WorldTile(3191, 5482, 0), new WorldTile(3185, 5478, 0)),
    	PORTAL_132(new WorldTile(3192, 5472, 0), new WorldTile(3186, 5472, 0)),
    	PORTAL_133(new WorldTile(3186, 5472, 0), new WorldTile(3192, 5472, 0)),
    	PORTAL_134(new WorldTile(3187, 5460, 0), new WorldTile(3189, 5444, 0)),
    	PORTAL_135(new WorldTile(3189, 5444, 0), new WorldTile(3187, 5460, 0)),
    	PORTAL_136(new WorldTile(3168, 5456, 0), new WorldTile(3178, 5460, 0)),
    	PORTAL_137(new WorldTile(3178, 5460, 0), new WorldTile(3168, 5456, 0)),
    	PORTAL_138(new WorldTile(3143, 5443, 0), new WorldTile(3155, 5449, 0)),
    	PORTAL_139(new WorldTile(3155, 5449, 0), new WorldTile(3143, 5443, 0)),
    	PORTAL_140(new WorldTile(3142, 5462, 0), new WorldTile(3154, 5462, 0)),
    	PORTAL_141(new WorldTile(3154, 5462, 0), new WorldTile(3142, 5462, 0)),
    	PORTAL_142(new WorldTile(3171, 5473, 0), new WorldTile(3167, 5471, 0)),
    	PORTAL_143(new WorldTile(3167, 5471, 0), new WorldTile(3171, 5473, 0)),
    	PORTAL_144(new WorldTile(3167, 5478, 0), new WorldTile(3171, 5478, 0)),
    	PORTAL_145(new WorldTile(3171, 5478, 0), new WorldTile(3167, 5478, 0)),
    	PORTAL_146(new WorldTile(3142, 5489, 0), new WorldTile(3141, 5480, 0)),
    	PORTAL_147(new WorldTile(3141, 5480, 0), new WorldTile(3142, 5489, 0)),
    	PORTAL_148(new WorldTile(3239, 5498, 0), new WorldTile(3244, 5495, 0)),
    	PORTAL_149(new WorldTile(3244, 5495, 0), new WorldTile(3239, 5498, 0)),
    	PORTAL_150(new WorldTile(3241, 5469, 0), new WorldTile(3233, 5470, 0)),
    	PORTAL_151(new WorldTile(3233, 5470, 0), new WorldTile(3241, 5469, 0)),
    	PORTAL_152(new WorldTile(3222, 5488, 0), new WorldTile(3218, 5497, 0)),
    	PORTAL_153(new WorldTile(3218, 5497, 0), new WorldTile(3222, 5488, 0)),
    	PORTAL_154(new WorldTile(3222, 5474, 0), new WorldTile(3224, 5479, 0)),
    	PORTAL_155(new WorldTile(3224, 5479, 0), new WorldTile(3222, 5474, 0)),
    	PORTAL_156(new WorldTile(3235, 5457, 0), new WorldTile(3229, 5454, 0)),
    	PORTAL_157(new WorldTile(3229, 5454, 0), new WorldTile(3235, 5457, 0)),
    	PORTAL_158(new WorldTile(3233, 5445, 0), new WorldTile(3241, 5445, 0)),
    	PORTAL_159(new WorldTile(3241, 5445, 0), new WorldTile(3233, 5445, 0)),
    	PORTAL_160(new WorldTile(3214, 5456, 0), new WorldTile(3212, 5452, 0)),
    	PORTAL_161(new WorldTile(3212, 5452, 0), new WorldTile(3214, 5456, 0)),
    	PORTAL_162(new WorldTile(3215, 5475, 0), new WorldTile(3218, 5478, 0)),
    	PORTAL_163(new WorldTile(3218, 5478, 0), new WorldTile(3215, 5475, 0)),
    	PORTAL_164(new WorldTile(3210, 5477, 0), new WorldTile(3208, 5471, 0)),
    	PORTAL_165(new WorldTile(3208, 5471, 0), new WorldTile(3210, 5477, 0)),
    	PORTAL_166(new WorldTile(3254, 5451, 0), new WorldTile(3250, 5448, 0)),
    	PORTAL_167(new WorldTile(3250, 5448, 0), new WorldTile(3254, 5451, 0)),
    	PORTAL_168(new WorldTile(3197, 5448, 0), new WorldTile(3204, 5445, 0)),
    	PORTAL_169(new WorldTile(3204, 5445, 0), new WorldTile(3197, 5448, 0)),
    	PORTAL_170(new WorldTile(3317, 5496, 0), new WorldTile(3307, 5496, 0)),
    	PORTAL_171(new WorldTile(3307, 5496, 0), new WorldTile(3317, 5496, 0)),
    	PORTAL_172(new WorldTile(3303, 5477, 0), new WorldTile(3299, 5484, 0)),
    	PORTAL_173(new WorldTile(3299, 5484, 0), new WorldTile(3303, 5477, 0)),
    	PORTAL_174(new WorldTile(3322, 5480, 0), new WorldTile(3318, 5481, 0)),
    	PORTAL_175(new WorldTile(3318, 5481, 0), new WorldTile(3322, 5480, 0)),
    	PORTAL_176(new WorldTile(3290, 5463, 0), new WorldTile(3302, 5469, 0)),
    	PORTAL_177(new WorldTile(3302, 5469, 0), new WorldTile(3290, 5463, 0)),
    	PORTAL_178(new WorldTile(3299, 5450, 0), new WorldTile(3296, 5455, 0)),
    	PORTAL_179(new WorldTile(3296, 5455, 0), new WorldTile(3299, 5450, 0)),
    	PORTAL_180(new WorldTile(3283, 5448, 0), new WorldTile(3287, 5448, 0)),
    	PORTAL_181(new WorldTile(3287, 5448, 0), new WorldTile(3283, 5448, 0)),
    	PORTAL_182(new WorldTile(3285, 5474, 0), new WorldTile(3286, 5470, 0)),
    	PORTAL_183(new WorldTile(3286, 5470, 0), new WorldTile(3285, 5474, 0)),
    	PORTAL_184(new WorldTile(3280, 5460, 0), new WorldTile(3273, 5460, 0)),
    	PORTAL_185(new WorldTile(3273, 5460, 0), new WorldTile(3280, 5460, 0)),
    	PORTAL_186(new WorldTile(3260, 5491, 0), new WorldTile(3266, 5446, 0)),
    	PORTAL_187(new WorldTile(3266, 5446, 0), new WorldTile(3260, 5491, 0)),
    	PORTAL_188(new WorldTile(3259, 5446, 0), new WorldTile(3265, 5491, 0)),
    	PORTAL_189(new WorldTile(3265, 5491, 0), new WorldTile(3259, 5446, 0)),
    	PORTAL_190(new WorldTile(3285, 5527, 0), new WorldTile(3282, 5531, 0)),
    	PORTAL_191(new WorldTile(3282, 5531, 0), new WorldTile(3285, 5527, 0)),
    	PORTAL_192(new WorldTile(3289, 5533, 0), new WorldTile(3288, 5536, 0)),
    	PORTAL_193(new WorldTile(3288, 5536, 0), new WorldTile(3289, 5533, 0)),
    	PORTAL_194(new WorldTile(3291, 5555, 0), new WorldTile(3285, 5556, 0)),
    	PORTAL_195(new WorldTile(3285, 5556, 0), new WorldTile(3291, 5555, 0)),
    	PORTAL_196(new WorldTile(3299, 5533, 0), new WorldTile(3297, 5536, 0)),
    	PORTAL_197(new WorldTile(3297, 5536, 0), new WorldTile(3299, 5533, 0)),
    	PORTAL_198(new WorldTile(3315, 5552, 0), new WorldTile(3321, 5554, 0)),
    	PORTAL_199(new WorldTile(3321, 5554, 0), new WorldTile(3315, 5552, 0)),
    	PORTAL_200(new WorldTile(3325, 5518, 0), new WorldTile(3323, 5531, 0)),
    	PORTAL_201(new WorldTile(3323, 5531, 0), new WorldTile(3325, 5518, 0)),
    	PORTAL_202(new WorldTile(3297, 5510, 0), new WorldTile(3300, 5514, 0)),
    	PORTAL_203(new WorldTile(3300, 5514, 0), new WorldTile(3297, 5510, 0)),
    	PORTAL_204(new WorldTile(3280, 5501, 0), new WorldTile(3285, 5508, 0)),
    	PORTAL_205(new WorldTile(3285, 5508, 0), new WorldTile(3280, 5501, 0)),
    	PORTAL_206(new WorldTile(3208, 5527, 0), new WorldTile(3211, 5523, 0)),
    	PORTAL_207(new WorldTile(3211, 5523, 0), new WorldTile(3208, 5527, 0)),
    	PORTAL_208(new WorldTile(3206, 5553, 0), new WorldTile(3204, 5546, 0)),
    	PORTAL_209(new WorldTile(3204, 5546, 0), new WorldTile(3206, 5553, 0)),
    	PORTAL_210(new WorldTile(3214, 5533, 0), new WorldTile(3211, 5533, 0)),
    	PORTAL_211(new WorldTile(3211, 5533, 0), new WorldTile(3214, 5533, 0)),
    	PORTAL_212(new WorldTile(3224, 5553, 0), new WorldTile(3230, 5547, 0)),
    	PORTAL_213(new WorldTile(3230, 5547, 0), new WorldTile(3224, 5553, 0)),
    	PORTAL_214(new WorldTile(3243, 5526, 0), new WorldTile(3241, 5529, 0)),
    	PORTAL_215(new WorldTile(3241, 5529, 0), new WorldTile(3243, 5526, 0)),
    	PORTAL_216(new WorldTile(3249, 5546, 0), new WorldTile(3252, 5543, 0)),
    	PORTAL_217(new WorldTile(3252, 5543, 0), new WorldTile(3249, 5546, 0)),
    	PORTAL_218(new WorldTile(3256, 5561, 0), new WorldTile(3253, 5561, 0)),
    	PORTAL_219(new WorldTile(3253, 5561, 0), new WorldTile(3256, 5561, 0)),
    	PORTAL_220(new WorldTile(3266, 5552, 0), new WorldTile(3262, 5552, 0)),
    	PORTAL_221(new WorldTile(3262, 5552, 0), new WorldTile(3266, 5552, 0)),
    	PORTAL_222(new WorldTile(3268, 5534, 0), new WorldTile(3261, 5536, 0)),
    	PORTAL_223(new WorldTile(3261, 5536, 0), new WorldTile(3268, 5534, 0)),
    	PORTAL_224(new WorldTile(3232, 5501, 0), new WorldTile(3238, 5507, 0)),
    	PORTAL_225(new WorldTile(3238, 5507, 0), new WorldTile(3232, 5501, 0)),
    	PORTAL_226(new WorldTile(3143, 5535, 0), new WorldTile(3147, 5541, 0)),
    	PORTAL_227(new WorldTile(3147, 5541, 0), new WorldTile(3143, 5535, 0)),
    	PORTAL_228(new WorldTile(3162, 5557, 0), new WorldTile(3158, 5561, 0)),
    	PORTAL_229(new WorldTile(3158, 5561, 0), new WorldTile(3162, 5557, 0)),
    	PORTAL_230(new WorldTile(3166, 5553, 0), new WorldTile(3162, 5545, 0)),
    	PORTAL_231(new WorldTile(3162, 5545, 0), new WorldTile(3166, 5553, 0)),
    	PORTAL_232(new WorldTile(3148, 5533, 0), new WorldTile(3153, 5537, 0)),
    	PORTAL_233(new WorldTile(3153, 5537, 0), new WorldTile(3148, 5533, 0)),
    	PORTAL_234(new WorldTile(3171, 5542, 0), new WorldTile(3168, 5541, 0)),
    	PORTAL_235(new WorldTile(3168, 5541, 0), new WorldTile(3171, 5542, 0)),
    	PORTAL_236(new WorldTile(3180, 5557, 0), new WorldTile(3174, 5558, 0)),
    	PORTAL_237(new WorldTile(3174, 5558, 0), new WorldTile(3180, 5557, 0)),
    	PORTAL_238(new WorldTile(3190, 5549, 0), new WorldTile(3190, 5554, 0)),
    	PORTAL_239(new WorldTile(3190, 5554, 0), new WorldTile(3190, 5549, 0)),
    	PORTAL_240(new WorldTile(3152, 5520, 0), new WorldTile(3156, 5523, 0)),
    	PORTAL_241(new WorldTile(3156, 5523, 0), new WorldTile(3152, 5520, 0)),
    	PORTAL_242(new WorldTile(3165, 5515, 0), new WorldTile(3173, 5530, 0)),
    	PORTAL_243(new WorldTile(3173, 5530, 0), new WorldTile(3165, 5515, 0)),
    	PORTAL_244(new WorldTile(3187, 5531, 0), new WorldTile(3182, 5530, 0)),
    	PORTAL_245(new WorldTile(3182, 5530, 0), new WorldTile(3187, 5531, 0)),
    	PORTAL_246(new WorldTile(3185, 5518, 0), new WorldTile(3181, 5517, 0)),
    	PORTAL_247(new WorldTile(3181, 5517, 0), new WorldTile(3185, 5518, 0)),
    	PORTAL_248(new WorldTile(3190, 5515, 0), new WorldTile(3190, 5519, 0)),
    	PORTAL_249(new WorldTile(3190, 5519, 0), new WorldTile(3190, 5515, 0)),
    	PORTAL_250(new WorldTile(3202, 5515, 0), new WorldTile(3196, 5512, 0)),
    	PORTAL_251(new WorldTile(3196, 5512, 0), new WorldTile(3202, 5515, 0)),
    	PORTAL_252(new WorldTile(3201, 5531, 0), new WorldTile(3197, 5529, 0)),
    	PORTAL_253(new WorldTile(3197, 5529, 0), new WorldTile(3201, 5531, 0)),
    	PORTAL_254(new WorldTile(3159, 5501, 0), new WorldTile(3169, 5510, 0)),
    	PORTAL_255(new WorldTile(3169, 5510, 0), new WorldTile(3159, 5501, 0)),
    	PORTAL_256(new WorldTile(3191, 5495, 0), new WorldTile(3194, 5490, 0)),
    	PORTAL_257(new WorldTile(3194, 5490, 0), new WorldTile(3191, 5495, 0)),
    	PORTAL_258(new WorldTile(3185, 5478, 0), new WorldTile(3191, 5482, 0)),
    	PORTAL_259(new WorldTile(3191, 5482, 0), new WorldTile(3185, 5478, 0)),
    	PORTAL_260(new WorldTile(3192, 5472, 0), new WorldTile(3186, 5472, 0)),
    	PORTAL_261(new WorldTile(3186, 5472, 0), new WorldTile(3192, 5472, 0)),
    	PORTAL_262(new WorldTile(3187, 5460, 0), new WorldTile(3189, 5444, 0)),
    	PORTAL_263(new WorldTile(3189, 5444, 0), new WorldTile(3187, 5460, 0)),
    	PORTAL_264(new WorldTile(3168, 5456, 0), new WorldTile(3178, 5460, 0)),
    	PORTAL_265(new WorldTile(3178, 5460, 0), new WorldTile(3168, 5456, 0)),
    	PORTAL_266(new WorldTile(3143, 5443, 0), new WorldTile(3155, 5449, 0)),
    	PORTAL_267(new WorldTile(3155, 5449, 0), new WorldTile(3143, 5443, 0)),
    	PORTAL_268(new WorldTile(3142, 5462, 0), new WorldTile(3154, 5462, 0)),
    	PORTAL_269(new WorldTile(3154, 5462, 0), new WorldTile(3142, 5462, 0)),
    	PORTAL_270(new WorldTile(3171, 5473, 0), new WorldTile(3167, 5471, 0)),
    	PORTAL_271(new WorldTile(3167, 5471, 0), new WorldTile(3171, 5473, 0)),
    	PORTAL_272(new WorldTile(3167, 5478, 0), new WorldTile(3171, 5478, 0)),
    	PORTAL_273(new WorldTile(3171, 5478, 0), new WorldTile(3167, 5478, 0)),
    	PORTAL_274(new WorldTile(3142, 5489, 0), new WorldTile(3141, 5480, 0)),
    	PORTAL_275(new WorldTile(3141, 5480, 0), new WorldTile(3142, 5489, 0)),
    	PORTAL_276(new WorldTile(3239, 5498, 0), new WorldTile(3244, 5495, 0)),
    	PORTAL_277(new WorldTile(3244, 5495, 0), new WorldTile(3239, 5498, 0)),
    	PORTAL_278(new WorldTile(3241, 5469, 0), new WorldTile(3233, 5470, 0)),
    	PORTAL_279(new WorldTile(3233, 5470, 0), new WorldTile(3241, 5469, 0)),
    	PORTAL_280(new WorldTile(3222, 5488, 0), new WorldTile(3218, 5497, 0)),
    	PORTAL_281(new WorldTile(3218, 5497, 0), new WorldTile(3222, 5488, 0)),
    	PORTAL_282(new WorldTile(3222, 5474, 0), new WorldTile(3224, 5479, 0)),
    	PORTAL_283(new WorldTile(3224, 5479, 0), new WorldTile(3222, 5474, 0)),
    	PORTAL_284(new WorldTile(3235, 5457, 0), new WorldTile(3229, 5454, 0)),
    	PORTAL_285(new WorldTile(3229, 5454, 0), new WorldTile(3235, 5457, 0)),
    	PORTAL_286(new WorldTile(3233, 5445, 0), new WorldTile(3241, 5445, 0)),
    	PORTAL_287(new WorldTile(3241, 5445, 0), new WorldTile(3233, 5445, 0)),
    	PORTAL_288(new WorldTile(3214, 5456, 0), new WorldTile(3212, 5452, 0)),
    	PORTAL_289(new WorldTile(3212, 5452, 0), new WorldTile(3214, 5456, 0)),
    	PORTAL_290(new WorldTile(3215, 5475, 0), new WorldTile(3218, 5478, 0)),
    	PORTAL_291(new WorldTile(3218, 5478, 0), new WorldTile(3215, 5475, 0)),
    	PORTAL_292(new WorldTile(3210, 5477, 0), new WorldTile(3208, 5471, 0)),
    	PORTAL_293(new WorldTile(3208, 5471, 0), new WorldTile(3210, 5477, 0)),
    	PORTAL_294(new WorldTile(3254, 5451, 0), new WorldTile(3250, 5448, 0)),
    	PORTAL_295(new WorldTile(3250, 5448, 0), new WorldTile(3254, 5451, 0)),
    	PORTAL_296(new WorldTile(3197, 5448, 0), new WorldTile(3204, 5445, 0)),
    	PORTAL_297(new WorldTile(3204, 5445, 0), new WorldTile(3197, 5448, 0)),
    	PORTAL_298(new WorldTile(3317, 5496, 0), new WorldTile(3307, 5496, 0)),
    	PORTAL_299(new WorldTile(3307, 5496, 0), new WorldTile(3317, 5496, 0)),
    	PORTAL_300(new WorldTile(3303, 5477, 0), new WorldTile(3299, 5484, 0)),
    	PORTAL_301(new WorldTile(3299, 5484, 0), new WorldTile(3303, 5477, 0)),
    	PORTAL_302(new WorldTile(3322, 5480, 0), new WorldTile(3318, 5481, 0)),
    	PORTAL_303(new WorldTile(3318, 5481, 0), new WorldTile(3322, 5480, 0)),
    	PORTAL_304(new WorldTile(3290, 5463, 0), new WorldTile(3302, 5469, 0)),
    	PORTAL_305(new WorldTile(3302, 5469, 0), new WorldTile(3290, 5463, 0)),
    	PORTAL_306(new WorldTile(3299, 5450, 0), new WorldTile(3296, 5455, 0)),
    	PORTAL_307(new WorldTile(3296, 5455, 0), new WorldTile(3299, 5450, 0)),
    	PORTAL_308(new WorldTile(3283, 5448, 0), new WorldTile(3287, 5448, 0)),
    	PORTAL_309(new WorldTile(3287, 5448, 0), new WorldTile(3283, 5448, 0)),
    	PORTAL_310(new WorldTile(3285, 5474, 0), new WorldTile(3286, 5470, 0)),
    	PORTAL_311(new WorldTile(3286, 5470, 0), new WorldTile(3285, 5474, 0)),
    	PORTAL_312(new WorldTile(3280, 5460, 0), new WorldTile(3273, 5460, 0)),
    	PORTAL_313(new WorldTile(3273, 5460, 0), new WorldTile(3280, 5460, 0)),
    	PORTAL_314(new WorldTile(3260, 5491, 0), new WorldTile(3266, 5446, 0)),
    	PORTAL_315(new WorldTile(3266, 5446, 0), new WorldTile(3260, 5491, 0)),
    	PORTAL_316(new WorldTile(3259, 5446, 0), new WorldTile(3265, 5491, 0)),
    	PORTAL_317(new WorldTile(3265, 5491, 0), new WorldTile(3259, 5446, 0)),
    	PORTAL_318(new WorldTile(3285, 5527, 0), new WorldTile(3282, 5531, 0)),
    	PORTAL_319(new WorldTile(3282, 5531, 0), new WorldTile(3285, 5527, 0)),
    	PORTAL_320(new WorldTile(3289, 5533, 0), new WorldTile(3288, 5536, 0)),
    	PORTAL_321(new WorldTile(3288, 5536, 0), new WorldTile(3289, 5533, 0)),
    	PORTAL_322(new WorldTile(3291, 5555, 0), new WorldTile(3285, 5556, 0)),
    	PORTAL_323(new WorldTile(3285, 5556, 0), new WorldTile(3291, 5555, 0)),
    	PORTAL_324(new WorldTile(3299, 5533, 0), new WorldTile(3297, 5536, 0)),
    	PORTAL_325(new WorldTile(3297, 5536, 0), new WorldTile(3299, 5533, 0)),
    	PORTAL_326(new WorldTile(3315, 5552, 0), new WorldTile(3321, 5554, 0)),
    	PORTAL_327(new WorldTile(3321, 5554, 0), new WorldTile(3315, 5552, 0)),
    	PORTAL_328(new WorldTile(3325, 5518, 0), new WorldTile(3323, 5531, 0)),
    	PORTAL_329(new WorldTile(3323, 5531, 0), new WorldTile(3325, 5518, 0)),
    	PORTAL_330(new WorldTile(3297, 5510, 0), new WorldTile(3300, 5514, 0)),
    	PORTAL_331(new WorldTile(3300, 5514, 0), new WorldTile(3297, 5510, 0)),
    	PORTAL_332(new WorldTile(3280, 5501, 0), new WorldTile(3285, 5508, 0)),
    	PORTAL_333(new WorldTile(3285, 5508, 0), new WorldTile(3280, 5501, 0)),
    	PORTAL_334(new WorldTile(3208, 5527, 0), new WorldTile(3211, 5523, 0)),
    	PORTAL_335(new WorldTile(3211, 5523, 0), new WorldTile(3208, 5527, 0)),
    	PORTAL_336(new WorldTile(3206, 5553, 0), new WorldTile(3204, 5546, 0)),
    	PORTAL_337(new WorldTile(3204, 5546, 0), new WorldTile(3206, 5553, 0)),
    	PORTAL_338(new WorldTile(3214, 5533, 0), new WorldTile(3211, 5533, 0)),
    	PORTAL_339(new WorldTile(3211, 5533, 0), new WorldTile(3214, 5533, 0)),
    	PORTAL_340(new WorldTile(3224, 5553, 0), new WorldTile(3230, 5547, 0)),
    	PORTAL_341(new WorldTile(3230, 5547, 0), new WorldTile(3224, 5553, 0)),
    	PORTAL_342(new WorldTile(3243, 5526, 0), new WorldTile(3241, 5529, 0)),
    	PORTAL_343(new WorldTile(3241, 5529, 0), new WorldTile(3243, 5526, 0)),
    	PORTAL_344(new WorldTile(3249, 5546, 0), new WorldTile(3252, 5543, 0)),
    	PORTAL_345(new WorldTile(3252, 5543, 0), new WorldTile(3249, 5546, 0)),
    	PORTAL_346(new WorldTile(3256, 5561, 0), new WorldTile(3253, 5561, 0)),
    	PORTAL_347(new WorldTile(3253, 5561, 0), new WorldTile(3256, 5561, 0)),
    	PORTAL_348(new WorldTile(3266, 5552, 0), new WorldTile(3262, 5552, 0)),
    	PORTAL_349(new WorldTile(3262, 5552, 0), new WorldTile(3266, 5552, 0)),
    	PORTAL_350(new WorldTile(3268, 5534, 0), new WorldTile(3261, 5536, 0)),
    	PORTAL_351(new WorldTile(3261, 5536, 0), new WorldTile(3268, 5534, 0)),
    	PORTAL_352(new WorldTile(3232, 5501, 0), new WorldTile(3238, 5507, 0)),
    	PORTAL_353(new WorldTile(3238, 5507, 0), new WorldTile(3232, 5501, 0)),
    	PORTAL_354(new WorldTile(3143, 5535, 0), new WorldTile(3147, 5541, 0)),
    	PORTAL_355(new WorldTile(3147, 5541, 0), new WorldTile(3143, 5535, 0)),
    	PORTAL_356(new WorldTile(3162, 5557, 0), new WorldTile(3158, 5561, 0)),
    	PORTAL_357(new WorldTile(3158, 5561, 0), new WorldTile(3162, 5557, 0)),
    	PORTAL_358(new WorldTile(3166, 5553, 0), new WorldTile(3162, 5545, 0)),
    	PORTAL_359(new WorldTile(3162, 5545, 0), new WorldTile(3166, 5553, 0)),
    	PORTAL_360(new WorldTile(3148, 5533, 0), new WorldTile(3153, 5537, 0)),
    	PORTAL_361(new WorldTile(3153, 5537, 0), new WorldTile(3148, 5533, 0)),
    	PORTAL_362(new WorldTile(3171, 5542, 0), new WorldTile(3168, 5541, 0)),
    	PORTAL_363(new WorldTile(3168, 5541, 0), new WorldTile(3171, 5542, 0)),
    	PORTAL_364(new WorldTile(3180, 5557, 0), new WorldTile(3174, 5558, 0)),
    	PORTAL_365(new WorldTile(3174, 5558, 0), new WorldTile(3180, 5557, 0)),
    	PORTAL_366(new WorldTile(3190, 5549, 0), new WorldTile(3190, 5554, 0)),
    	PORTAL_367(new WorldTile(3190, 5554, 0), new WorldTile(3190, 5549, 0)),
    	PORTAL_368(new WorldTile(3152, 5520, 0), new WorldTile(3156, 5523, 0)),
    	PORTAL_369(new WorldTile(3156, 5523, 0), new WorldTile(3152, 5520, 0)),
    	PORTAL_370(new WorldTile(3165, 5515, 0), new WorldTile(3173, 5530, 0)),
    	PORTAL_371(new WorldTile(3173, 5530, 0), new WorldTile(3165, 5515, 0)),
    	PORTAL_372(new WorldTile(3187, 5531, 0), new WorldTile(3182, 5530, 0)),
    	PORTAL_373(new WorldTile(3182, 5530, 0), new WorldTile(3187, 5531, 0)),
    	PORTAL_374(new WorldTile(3185, 5518, 0), new WorldTile(3181, 5517, 0)),
    	PORTAL_375(new WorldTile(3181, 5517, 0), new WorldTile(3185, 5518, 0)),
    	PORTAL_376(new WorldTile(3190, 5515, 0), new WorldTile(3190, 5519, 0)),
    	PORTAL_377(new WorldTile(3190, 5519, 0), new WorldTile(3190, 5515, 0)),
    	PORTAL_378(new WorldTile(3202, 5515, 0), new WorldTile(3196, 5512, 0)),
    	PORTAL_379(new WorldTile(3196, 5512, 0), new WorldTile(3202, 5515, 0)),
    	PORTAL_380(new WorldTile(3201, 5531, 0), new WorldTile(3197, 5529, 0)),
    	PORTAL_381(new WorldTile(3197, 5529, 0), new WorldTile(3201, 5531, 0)),
    	PORTAL_382(new WorldTile(3159, 5501, 0), new WorldTile(3169, 5510, 0)),
    	PORTAL_383(new WorldTile(3169, 5510, 0), new WorldTile(3159, 5501, 0)),
    	PORTAL_384(new WorldTile(3191, 5495, 0), new WorldTile(3194, 5490, 0)),
    	PORTAL_385(new WorldTile(3194, 5490, 0), new WorldTile(3191, 5495, 0)),
    	PORTAL_386(new WorldTile(3185, 5478, 0), new WorldTile(3191, 5482, 0)),
    	PORTAL_387(new WorldTile(3191, 5482, 0), new WorldTile(3185, 5478, 0)),
    	PORTAL_388(new WorldTile(3192, 5472, 0), new WorldTile(3186, 5472, 0)),
    	PORTAL_389(new WorldTile(3186, 5472, 0), new WorldTile(3192, 5472, 0)),
    	PORTAL_390(new WorldTile(3187, 5460, 0), new WorldTile(3189, 5444, 0)),
    	PORTAL_391(new WorldTile(3189, 5444, 0), new WorldTile(3187, 5460, 0)),
    	PORTAL_392(new WorldTile(3168, 5456, 0), new WorldTile(3178, 5460, 0)),
    	PORTAL_393(new WorldTile(3178, 5460, 0), new WorldTile(3168, 5456, 0)),
    	PORTAL_394(new WorldTile(3143, 5443, 0), new WorldTile(3155, 5449, 0)),
    	PORTAL_395(new WorldTile(3155, 5449, 0), new WorldTile(3143, 5443, 0)),
    	PORTAL_396(new WorldTile(3142, 5462, 0), new WorldTile(3154, 5462, 0)),
    	PORTAL_397(new WorldTile(3154, 5462, 0), new WorldTile(3142, 5462, 0)),
    	PORTAL_398(new WorldTile(3171, 5473, 0), new WorldTile(3167, 5471, 0)),
    	PORTAL_399(new WorldTile(3167, 5471, 0), new WorldTile(3171, 5473, 0)),
    	PORTAL_400(new WorldTile(3167, 5478, 0), new WorldTile(3171, 5478, 0)),
    	PORTAL_401(new WorldTile(3171, 5478, 0), new WorldTile(3167, 5478, 0)),
    	PORTAL_402(new WorldTile(3142, 5489, 0), new WorldTile(3141, 5480, 0)),
    	PORTAL_403(new WorldTile(3141, 5480, 0), new WorldTile(3142, 5489, 0)),
    	PORTAL_404(new WorldTile(3239, 5498, 0), new WorldTile(3244, 5495, 0)),
    	PORTAL_405(new WorldTile(3244, 5495, 0), new WorldTile(3239, 5498, 0)),
    	PORTAL_406(new WorldTile(3241, 5469, 0), new WorldTile(3233, 5470, 0)),
    	PORTAL_407(new WorldTile(3233, 5470, 0), new WorldTile(3241, 5469, 0)),
    	PORTAL_408(new WorldTile(3222, 5488, 0), new WorldTile(3218, 5497, 0)),
    	PORTAL_409(new WorldTile(3218, 5497, 0), new WorldTile(3222, 5488, 0)),
    	PORTAL_410(new WorldTile(3222, 5474, 0), new WorldTile(3224, 5479, 0)),
    	PORTAL_411(new WorldTile(3224, 5479, 0), new WorldTile(3222, 5474, 0)),
    	PORTAL_412(new WorldTile(3235, 5457, 0), new WorldTile(3229, 5454, 0)),
    	PORTAL_413(new WorldTile(3229, 5454, 0), new WorldTile(3235, 5457, 0)),
    	PORTAL_414(new WorldTile(3233, 5445, 0), new WorldTile(3241, 5445, 0)),
    	PORTAL_415(new WorldTile(3241, 5445, 0), new WorldTile(3233, 5445, 0)),
    	PORTAL_416(new WorldTile(3214, 5456, 0), new WorldTile(3212, 5452, 0)),
    	PORTAL_417(new WorldTile(3212, 5452, 0), new WorldTile(3214, 5456, 0)),
    	PORTAL_418(new WorldTile(3215, 5475, 0), new WorldTile(3218, 5478, 0)),
    	PORTAL_419(new WorldTile(3218, 5478, 0), new WorldTile(3215, 5475, 0)),
    	PORTAL_420(new WorldTile(3210, 5477, 0), new WorldTile(3208, 5471, 0)),
    	PORTAL_421(new WorldTile(3208, 5471, 0), new WorldTile(3210, 5477, 0)),
    	PORTAL_422(new WorldTile(3254, 5451, 0), new WorldTile(3250, 5448, 0)),
    	PORTAL_423(new WorldTile(3250, 5448, 0), new WorldTile(3254, 5451, 0)),
    	PORTAL_424(new WorldTile(3197, 5448, 0), new WorldTile(3204, 5445, 0)),
    	PORTAL_425(new WorldTile(3204, 5445, 0), new WorldTile(3197, 5448, 0)),
    	PORTAL_426(new WorldTile(3317, 5496, 0), new WorldTile(3307, 5496, 0)),
    	PORTAL_427(new WorldTile(3307, 5496, 0), new WorldTile(3317, 5496, 0)),
    	PORTAL_428(new WorldTile(3303, 5477, 0), new WorldTile(3299, 5484, 0)),
    	PORTAL_429(new WorldTile(3299, 5484, 0), new WorldTile(3303, 5477, 0)),
    	PORTAL_430(new WorldTile(3322, 5480, 0), new WorldTile(3318, 5481, 0)),
    	PORTAL_431(new WorldTile(3318, 5481, 0), new WorldTile(3322, 5480, 0)),
    	PORTAL_432(new WorldTile(3290, 5463, 0), new WorldTile(3302, 5469, 0)),
    	PORTAL_433(new WorldTile(3302, 5469, 0), new WorldTile(3290, 5463, 0)),
    	PORTAL_434(new WorldTile(3299, 5450, 0), new WorldTile(3296, 5455, 0)),
    	PORTAL_435(new WorldTile(3296, 5455, 0), new WorldTile(3299, 5450, 0)),
    	PORTAL_436(new WorldTile(3283, 5448, 0), new WorldTile(3287, 5448, 0)),
    	PORTAL_437(new WorldTile(3287, 5448, 0), new WorldTile(3283, 5448, 0)),
    	PORTAL_438(new WorldTile(3285, 5474, 0), new WorldTile(3286, 5470, 0)),
    	PORTAL_439(new WorldTile(3286, 5470, 0), new WorldTile(3285, 5474, 0)),
    	PORTAL_440(new WorldTile(3280, 5460, 0), new WorldTile(3273, 5460, 0)),
    	PORTAL_441(new WorldTile(3273, 5460, 0), new WorldTile(3280, 5460, 0)),
    	PORTAL_442(new WorldTile(3260, 5491, 0), new WorldTile(3266, 5446, 0)),
    	PORTAL_443(new WorldTile(3266, 5446, 0), new WorldTile(3260, 5491, 0)),
    	PORTAL_444(new WorldTile(3259, 5446, 0), new WorldTile(3265, 5491, 0)),
    	PORTAL_445(new WorldTile(3265, 5491, 0), new WorldTile(3259, 5446, 0)),
    	PORTAL_446(new WorldTile(3285, 5527, 0), new WorldTile(3282, 5531, 0)),
    	PORTAL_447(new WorldTile(3282, 5531, 0), new WorldTile(3285, 5527, 0)),
    	PORTAL_448(new WorldTile(3289, 5533, 0), new WorldTile(3288, 5536, 0)),
    	PORTAL_449(new WorldTile(3288, 5536, 0), new WorldTile(3289, 5533, 0)),
    	PORTAL_450(new WorldTile(3291, 5555, 0), new WorldTile(3285, 5556, 0)),
    	PORTAL_451(new WorldTile(3285, 5556, 0), new WorldTile(3291, 5555, 0)),
    	PORTAL_452(new WorldTile(3299, 5533, 0), new WorldTile(3297, 5536, 0)),
    	PORTAL_453(new WorldTile(3297, 5536, 0), new WorldTile(3299, 5533, 0)),
    	PORTAL_454(new WorldTile(3315, 5552, 0), new WorldTile(3321, 5554, 0)),
    	PORTAL_455(new WorldTile(3321, 5554, 0), new WorldTile(3315, 5552, 0)),
    	PORTAL_456(new WorldTile(3325, 5518, 0), new WorldTile(3323, 5531, 0)),
    	PORTAL_457(new WorldTile(3323, 5531, 0), new WorldTile(3325, 5518, 0)),
    	PORTAL_458(new WorldTile(3297, 5510, 0), new WorldTile(3300, 5514, 0)),
    	PORTAL_459(new WorldTile(3300, 5514, 0), new WorldTile(3297, 5510, 0)),
    	PORTAL_460(new WorldTile(3280, 5501, 0), new WorldTile(3285, 5508, 0)),
    	PORTAL_461(new WorldTile(3285, 5508, 0), new WorldTile(3280, 5501, 0)),
    	PORTAL_462(new WorldTile(3208, 5527, 0), new WorldTile(3211, 5523, 0)),
    	PORTAL_463(new WorldTile(3211, 5523, 0), new WorldTile(3208, 5527, 0)),
    	PORTAL_464(new WorldTile(3206, 5553, 0), new WorldTile(3204, 5546, 0)),
    	PORTAL_465(new WorldTile(3204, 5546, 0), new WorldTile(3206, 5553, 0)),
    	PORTAL_466(new WorldTile(3214, 5533, 0), new WorldTile(3211, 5533, 0)),
    	PORTAL_467(new WorldTile(3211, 5533, 0), new WorldTile(3214, 5533, 0)),
    	PORTAL_468(new WorldTile(3224, 5553, 0), new WorldTile(3230, 5547, 0)),
    	PORTAL_469(new WorldTile(3230, 5547, 0), new WorldTile(3224, 5553, 0)),
    	PORTAL_470(new WorldTile(3243, 5526, 0), new WorldTile(3241, 5529, 0)),
    	PORTAL_471(new WorldTile(3241, 5529, 0), new WorldTile(3243, 5526, 0)),
    	PORTAL_472(new WorldTile(3249, 5546, 0), new WorldTile(3252, 5543, 0)),
    	PORTAL_473(new WorldTile(3252, 5543, 0), new WorldTile(3249, 5546, 0)),
    	PORTAL_474(new WorldTile(3256, 5561, 0), new WorldTile(3253, 5561, 0)),
    	PORTAL_475(new WorldTile(3253, 5561, 0), new WorldTile(3256, 5561, 0)),
    	PORTAL_476(new WorldTile(3266, 5552, 0), new WorldTile(3262, 5552, 0)),
    	PORTAL_477(new WorldTile(3262, 5552, 0), new WorldTile(3266, 5552, 0)),
    	PORTAL_478(new WorldTile(3268, 5534, 0), new WorldTile(3261, 5536, 0)),
    	PORTAL_479(new WorldTile(3261, 5536, 0), new WorldTile(3268, 5534, 0)),
    	PORTAL_480(new WorldTile(3232, 5501, 0), new WorldTile(3238, 5507, 0)),
    	PORTAL_481(new WorldTile(3238, 5507, 0), new WorldTile(3232, 5501, 0)),
    	PORTAL_482(new WorldTile(3143, 5535, 0), new WorldTile(3147, 5541, 0)),
    	PORTAL_483(new WorldTile(3147, 5541, 0), new WorldTile(3143, 5535, 0)),
    	PORTAL_484(new WorldTile(3162, 5557, 0), new WorldTile(3158, 5561, 0)),
    	PORTAL_485(new WorldTile(3158, 5561, 0), new WorldTile(3162, 5557, 0)),
    	PORTAL_486(new WorldTile(3166, 5553, 0), new WorldTile(3162, 5545, 0)),
    	PORTAL_487(new WorldTile(3162, 5545, 0), new WorldTile(3166, 5553, 0)),
    	PORTAL_488(new WorldTile(3148, 5533, 0), new WorldTile(3153, 5537, 0)),
    	PORTAL_489(new WorldTile(3153, 5537, 0), new WorldTile(3148, 5533, 0)),
    	PORTAL_490(new WorldTile(3171, 5542, 0), new WorldTile(3168, 5541, 0)),
    	PORTAL_491(new WorldTile(3168, 5541, 0), new WorldTile(3171, 5542, 0)),
    	PORTAL_492(new WorldTile(3180, 5557, 0), new WorldTile(3174, 5558, 0)),
    	PORTAL_493(new WorldTile(3174, 5558, 0), new WorldTile(3180, 5557, 0)),
    	PORTAL_494(new WorldTile(3190, 5549, 0), new WorldTile(3190, 5554, 0)),
    	PORTAL_495(new WorldTile(3190, 5554, 0), new WorldTile(3190, 5549, 0)),
    	PORTAL_496(new WorldTile(3152, 5520, 0), new WorldTile(3156, 5523, 0)),
    	PORTAL_497(new WorldTile(3156, 5523, 0), new WorldTile(3152, 5520, 0)),
    	PORTAL_498(new WorldTile(3165, 5515, 0), new WorldTile(3173, 5530, 0)),
    	PORTAL_499(new WorldTile(3173, 5530, 0), new WorldTile(3165, 5515, 0)),
    	PORTAL_500(new WorldTile(3187, 5531, 0), new WorldTile(3182, 5530, 0)),
    	PORTAL_501(new WorldTile(3182, 5530, 0), new WorldTile(3187, 5531, 0)),
    	PORTAL_502(new WorldTile(3185, 5518, 0), new WorldTile(3181, 5517, 0)),
    	PORTAL_503(new WorldTile(3181, 5517, 0), new WorldTile(3185, 5518, 0)),
    	PORTAL_504(new WorldTile(3190, 5515, 0), new WorldTile(3190, 5519, 0)),
    	PORTAL_505(new WorldTile(3190, 5519, 0), new WorldTile(3190, 5515, 0)),
    	PORTAL_506(new WorldTile(3202, 5515, 0), new WorldTile(3196, 5512, 0)),
    	PORTAL_507(new WorldTile(3196, 5512, 0), new WorldTile(3202, 5515, 0)),
    	PORTAL_508(new WorldTile(3201, 5531, 0), new WorldTile(3197, 5529, 0)),
    	PORTAL_509(new WorldTile(3197, 5529, 0), new WorldTile(3201, 5531, 0)),
    	PORTAL_510(new WorldTile(3159, 5501, 0), new WorldTile(3169, 5510, 0)),
    	PORTAL_511(new WorldTile(3169, 5510, 0), new WorldTile(3159, 5501, 0));
    
    	private ChaosTunnelsPortal(WorldTile location, WorldTile destinaton) {
    		this.location = location;
    		this.destination = destinaton;
    	}
    
    	private WorldTile location;
    	private WorldTile destination;
    
    	public WorldTile getLocation() {
    		return location;
    	}
    
    	public WorldTile getDestination() {
    		return destination;
    	}
    
    	public static ChaosTunnelsPortal getPortal(final WorldTile tile) {
    		for (ChaosTunnelsPortal portal : values()) {
    			if (portal.getLocation().getX() == tile.getX() 
    					&& portal.getLocation().getY() == tile.getY()
    					&& portal.getLocation().getPlane() == tile.getPlane()) {
    				return portal;
    			}
    		}
    		return null;
    	}
    	
    	public void teleportPlayer(Player player) {
    		player.lock(2);
    		player.addWalkSteps(getLocation().getX(), getLocation().getY());
    		CoresManager.slowExecutor.schedule(new Runnable() {
    			@Override
    			public void run() {
    				player.setNextGraphics(new Graphics(110, 96));
    				player.setNextWorldTile(getDestination());
    			}
    		}, 800, TimeUnit.MILLISECONDS);
    	}
    }
    Last edited by biggyBeat; 05-24-2020 at 09:27 PM.
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Registered Member
    Stimulant's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    1,424
    Thanks given
    209
    Thanks received
    177
    Rep Power
    543
    You could have use an enumeration for all of this, that would reduces so much lines
    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    ;D
    biggyBeat's Avatar
    Join Date
    Jan 2018
    Posts
    108
    Thanks given
    131
    Thanks received
    14
    Discord
    View profile
    Rep Power
    30
    Quote Originally Posted by Stimulant View Post
    You could have use an enumeration for all of this, that would reduces so much lines
    Yeah, that sounds better. Thank you. I'm just concerned that it will take a longer time for the server to check what portal the player has interacted with if I have it in an enum instead. Do you know what pros (besides fewer lines) and cons there are with having an enum instead of the if-statements?
    Reply With Quote  
     

  6. #4  
    Renown Programmer
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,069
    Thanks given
    193
    Thanks received
    589
    DiscordTag
    Greg#8550
    Rep Power
    1157
    Quote Originally Posted by biggyBeat View Post
    Yeah, that sounds better. Thank you. I'm just concerned that it will take a longer time for the server to check what portal the player has interacted with if I have it in an enum instead. Do you know what pros (besides fewer lines) and cons there are with having an enum instead of the if-statements?
    Irrelevant, readable code is more important than speed. The number of nano seconds you might hypothetically save won't even be noticable unless you're implementing millions of if statements.
    Reply With Quote  
     

  7. Thankful user:


  8. #5  
    ;D
    biggyBeat's Avatar
    Join Date
    Jan 2018
    Posts
    108
    Thanks given
    131
    Thanks received
    14
    Discord
    View profile
    Rep Power
    30
    Quote Originally Posted by Greg View Post
    Irrelevant, readable code is more important than speed. The number of nano seconds you might hypothetically save won't even be noticable unless you're implementing millions of if statements.
    Thanks! Updated the snippet.
    Last edited by biggyBeat; 05-24-2020 at 09:27 PM.
    Reply With Quote  
     

  9. #6  
    Registered Member
    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,389
    Thanks given
    561
    Thanks received
    593
    Rep Power
    230
    Quote Originally Posted by biggyBeat View Post
    Thanks! Updated the snippet.
    Small optimization, but you could have one entry per pair instead of 2. If he's clicking portal A of the enum he goes to B and vice versa.
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. Thankful user:


  11. #7  
    ;D
    biggyBeat's Avatar
    Join Date
    Jan 2018
    Posts
    108
    Thanks given
    131
    Thanks received
    14
    Discord
    View profile
    Rep Power
    30
    Quote Originally Posted by clem585 View Post
    Small optimization, but you could have one entry per pair instead of 2. If he's clicking portal A of the enum he goes to B and vice versa.
    True, I'll update it tomorrow. Thank you!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 8
    Last Post: 08-09-2016, 11:56 PM
  2. [508]Chaos Tunnels: Bork slaying
    By GaMePaPa in forum Show-off
    Replies: 43
    Last Post: 10-15-2009, 10:22 PM
  3. [508]Chaos tunnels coordinates
    By GaMePaPa in forum Requests
    Replies: 3
    Last Post: 02-21-2009, 10:29 AM
  4. Bh entrance and exits problem
    By noodle987123 in forum Help
    Replies: 3
    Last Post: 01-20-2009, 03:28 AM
  5. Moving the enter and exit buttons
    By Cpt Anarchy in forum Tutorials
    Replies: 5
    Last Post: 03-03-2008, 07:52 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •