查看: 789|回复: 0

世界地图超时空卷修复

  • TA的每日心情
    无聊
    2021-8-11 12:24
  • 签到天数: 2 天

    [LV.1]初来乍到

    中级会员

    枫币
    602
    威望
    0
    贡献
    18
    在线时间
    74 小时
    注册时间
    2021-7-3
    QQ
    发表于 2023-5-12 21:36:45 | 显示全部楼层 |阅读模式
    1. 找到
    2. InventoryHandler.java里面的

    3.      public static final boolean UseTeleRock ( LittleEndianAccessor slea , MapleClient c , int itemId ) {
    4. boolean used = false ;
    5. if ( slea . readByte () == 0 ) { // Rocktype
    6. final MapleMap target = c . getChannelServer (). getMapFactory (). getMap ( slea . readInt ());
    7. if ( target != null && (( itemId == 5041000 && c . getPlayer (). isRockMap ( target . getId ())) || (( itemId == 5040000 || itemId == 5040001 ) && c . getPlayer (). isRegRockMap ( target . getId ())) || (( itemId == 5040004 || itemId == 5041001 ) && ( c . getPlayer (). isHyperRockMap ( target . getId ()) || GameConstants . isHyperTeleMap ( target . getId ()))))) {
    8. if (! FieldLimitType . VipRock . check ( c . getPlayer (). getMap (). getFieldLimit ()) && ! FieldLimitType . VipRock . check ( target . getFieldLimit ()) && ! c . getPlayer (). isInBlockedMap ()) { //Makes sure this map doesn't have a forced return map
    9. c . getPlayer (). changeMap ( target , target . getPortal ( 0 ));
    10. used = true ;
    11. } else {
    12. c . getPlayer (). dropMessage ( 1 , "You cannot go to that place." );
    13. }
    14. } else {
    15. c . getPlayer (). dropMessage ( 1 , "You cannot go to that place." );
    16. }
    17. } else {
    18. final String name = slea . readMapleAsciiString ();
    19. final MapleCharacter victim = c . getChannelServer (). getPlayerStorage (). getCharacterByName ( name );
    20. if ( victim != null && ! victim . isIntern () && c . getPlayer (). getEventInstance () == null && victim . getEventInstance () == null ) {
    21. if (! FieldLimitType . VipRock . check ( c . getPlayer (). getMap (). getFieldLimit ()) && ! FieldLimitType . VipRock . check ( c . getChannelServer (). getMapFactory (). getMap ( victim . getMapId ()). getFieldLimit ()) && ! victim . isInBlockedMap () && ! c . getPlayer (). isInBlockedMap ()) {
    22. if ( itemId == 5041000 || itemId == 5040004 || itemId == 5041001 || ( victim . getMapId () / 100000000 ) == ( c . getPlayer (). getMapId () / 100000000 )) { // Viprock or same continent
    23. c . getPlayer (). changeMap ( victim . getMap (), victim . getMap (). findClosestPortal ( victim . getTruePosition ()));
    24. used = true ;
    25. } else {
    26. c . getPlayer (). dropMessage ( 1 , "You cannot go to that place." );
    27. }
    28. } else {
    29. c . getPlayer (). dropMessage ( 1 , "You cannot go to that place." );
    30. }
    31. } else {
    32. c . getPlayer (). dropMessage ( 1 , "(" + name + ") is currently difficult to locate, so the teleport will not take place." );
    33. }
    34. }
    35. return used ;
    36. }

    37. 替换为

    38.      public static final boolean UseTeleRock ( LittleEndianAccessor slea , MapleClient c , int itemId ) {
    39. boolean used = false ;
    40. if ( itemId == 5041001 || itemId == 5040004 ) {
    41. slea . readByte (); //useless
    42. }
    43. if ( slea . readByte () == 0 ) { // Rocktype
    44. final MapleMap target = c . getChannelServer (). getMapFactory (). getMap ( slea . readInt ());
    45. if (( itemId == 5041000 && c . getPlayer (). isRockMap ( target . getId ())) || ( itemId != 5041000 && c . getPlayer (). isRegRockMap ( target . getId ())) || (( itemId == 5040004 || itemId == 5041001 ) && ( c . getPlayer (). isHyperRockMap ( target . getId ()) || GameConstants . isHyperTeleMap ( target . getId ())))) {
    46. if (! FieldLimitType . VipRock . check ( c . getPlayer (). getMap (). getFieldLimit ()) && ! FieldLimitType . VipRock . check ( target . getFieldLimit ()) && ! c . getPlayer (). isInBlockedMap ()) { //Makes sure this map doesn't have a forced return map
    47. c . getPlayer (). changeMap ( target , target . getPortal ( 0 ));
    48. used = true ;
    49. }
    50. }
    51. } else {
    52. final MapleCharacter victim = c . getChannelServer (). getPlayerStorage (). getCharacterByName ( slea . readMapleAsciiString ());
    53. if ( victim != null && ! victim . isIntern () && c . getPlayer (). getEventInstance () == null && victim . getEventInstance () == null ) {
    54. if (! FieldLimitType . VipRock . check ( c . getPlayer (). getMap (). getFieldLimit ()) && ! FieldLimitType . VipRock . check ( c . getChannelServer (). getMapFactory (). getMap ( victim . getMapId ()). getFieldLimit ()) && ! victim . isInBlockedMap () && ! c . getPlayer (). isInBlockedMap ()) {
    55. if ( itemId == 5041000 || itemId == 5040004 || itemId == 5041001 || ( victim . getMapId () / 100000000 ) == ( c . getPlayer (). getMapId () / 100000000 )) { // Viprock or same continent
    56. c . getPlayer (). changeMap ( victim . getMap (), victim . getMap (). findClosestPortal ( victim . getTruePosition ()));
    57. used = true ;
    58. }
    59. }
    60. }
    61. }
    62. return used && itemId != 5041001 && itemId != 5040004 ;
    63. }




    64. 然后到GameConstants.java找到

    65. public static final int [] hyperTele = { 310000000 , 220000000 , 100000000 , 250000000 , 240000000 , 104000000 , 103000000 , 102000000 , 101000000 , 120000000 , 260000000 , 200000000 , 230000000 };

    66. 替换为

    67.      public static final int [] hyperTele = { 10000 , 20000 , 30000 , 40000 , 50000 , 1000000 , 1010000 , 1020000 , 2000000 , //Maple Island
    68. 104000000 , 104010000 , 104010100 , 104010200 , 104020000 , 103010100 , 103010000 , 103000000 , 103050000 , 103020000 , 103020020 , 103020100 , 103020200 , 103020300 , 103020310 , 103020320 , 103020400 , 103020410 , 103020420 , 103030000 , 103030100 , 103030200 , 103030300 , 103030400 , 102000000 , 102010000 , 102010100 , 102020000 , 102020100 , 102020200 , 102020300 , 102020400 , 102020500 , 102040000 , 102040100 , 102040200 , 102040300 , 102040400 , 102040500 , 102040600 , 102030000 , 102030100 , 102030200 , 102030300 , 102030400 , 101000000 , 101010000 , 101010100 , 101020000 , 101020100 , 101020200 , 101020300 , 101030000 , 101030100 , 101030200 , 101030300 , 101030400 , 101030500 , 101030101 , 101030201 , 101040000 , 101040100 , 101040200 , 101040300 , 101040310 , 101040320 , 101050000 , 101050400 , 100000000 , 100010000 , 100010100 , 100020000 , 100020100 , 100020200 , 100020300 , 100020400 , 100020500 , 100020401 , 100020301 , 100040000 , 100040100 , 100040200 , 100040300 , 100040400 , 100020101 , 106020000 , 120010100 , 120010000 , 120000000 , 120020000 , 120020100 , 120020200 , 120020300 , 120020400 , 120020500 , 120020600 , 120020700 , 120030000 , 120030100 , 120030200 , 120030300 , 120030400 , 120030500 , //Victoria Island
    69. 105000000 , 105010000 , 105010100 , 105020000 , 105020100 , 105020200 , 105020300 , 105020400 , 105020500 , 105030000 , 105030100 , 105030200 , 105030300 , 105030400 , 105030500 , 105100000 , 105100100 , //Sleepy Wood
    70. 120000100 , 120000101 , 120000102 , 120000103 , 120000104 , 120000201 , 120000202 , 120000301 , //Nautilus
    71. 103040000 , 103040100 , 103040101 , 103040102 , 103040103 , 103040200 , 103040201 , 103040202 , 103040203 , 103040300 , 103040301 , 103040302 , 103040303 , 103040400 , //Kerning Square
    72. 200000000 , 200010000 , 200010100 , 200010110 , 200010120 , 200010130 , 200010111 , 200010121 , 200010131 , 200010200 , 200010300 , 200010301 , 200010302 , 200020000 , 200030000 , 200040000 , 200050000 , 200060000 , 200070000 , 200080000 , 200000100 , 200000200 , 200000300 , 200100000 , 200080100 , 200080200 , 200081500 , 200082200 , 200082300 , 211000000 , 211000100 , 211000200 , 211010000 , 211020000 , 211030000 , 211040000 , 211050000 , 211040100 , 211040200 , 921120000 , //Orbis
    73. 211040300 , 211040400 , 211040500 , 211040600 , 211040700 , 211040800 , 211040900 , 211041000 , 211041100 , 211041200 , 211041300 , 211041400 , 211041500 , 211041600 , 211041700 , 211041800 , 211041900 , 211042000 , 211042100 , 211042200 , 211042300 , 211042400 , 280030000 , 211060000 , //Dead Mine
    74. 211060010 , 211060100 , 211060200 , 211060201 , 211060300 , 211060400 , 211060401 , 211060410 , 211060500 , 211060600 , 211060601 , 211060610 , 211060620 , 211060700 , 211060800 , 211060801 , 211060810 , 211060820 , 211060830 , 211060900 , 211061000 , 211061001 , 211070000 , //Lion King's Castle
    75. 220000000 , 220000100 , 220000300 , 220000400 , 220000500 , 220010000 , 220010100 , 220010200 , 220010300 , 220010400 , 220010500 , 220010600 , 220010700 , 220010800 , 220010900 , 220011000 , 220020000 , 220020100 , 220020200 , 220020300 , 220020400 , 220020500 , 220020600 , 220030100 , 220030200 , 220030300 , 220030400 , 220030000 , 220040000 , 220040100 , 220040200 , 220040300 , 220040400 , 220050000 , 220050100 , 220050200 , 221023200 , 221022300 , 221022200 , 221021700 , 221021600 , 221021100 , 221020000 , 221000000 , 221030000 , 221030100 , 221030200 , 221030300 , 221030400 , 221030500 , 221030600 , 221040000 , 221040100 , 221040200 , 221040300 , 221040400 , 222000000 , 222010000 , 222010001 , 222010002 , 222010100 , 222010101 , 222010102 , 222010200 , 222010201 , 222010300 , 222010400 , 222020300 , 222020200 , 222020100 , 222020000 , //Ludas Lake
    76. 220050300 , 220060000 , 220060100 , 220060200 , 220060300 , 220060400 , 220070000 , 220070100 , 220070200 , 220070300 , 220070400 , 220080000 , 220080001 , //Clock Tower Lower Floor
    77. 300000100 , 300000000 , 300010000 , 300010100 , 300010200 , 300010400 , 300020000 , 300020100 , 300020200 , 300030000 , 300030100 , 300010410 , 300020210 , 300030200 , 300030300 , 300030310 , //Ellin Forest
    78. 230010000 , 230010100 , 230010200 , 230010201 , 230010300 , 230010400 , 230020000 , 230020100 , 230020200 , 230020201 , 230020300 , 230030000 , 230030100 , 230030101 , 230030200 , 230040000 , 230040100 , 230040200 , 230040300 , 230040400 , 230040410 , 230040420 , 230000000 , //Aqua Road
    79. 250000000 , 250000100 , 250010000 , 250010100 , 250010200 , 250010300 , 250010301 , 250010302 , 250010303 , 250010304 , 250010400 , 250010500 , 250010501 , 250010502 , 250010503 , 250010600 , 250010700 , 250020000 , 250020100 , 250020200 , 250020300 , 251000000 , 251000100 , 251010000 , 251010200 , 251010300 , 251010400 , 251010401 , 251010402 , 251010403 , 251010500 , //Mu Lung Garden
    80. 240010100 , 240010200 , 240010300 , 240010400 , 240010500 , 240010600 , 240010700 , 240010800 , 240010900 , 240011000 , 240020000 , 240020100 , 240020101 , 240020200 , 240020300 , 240020400 , 240020401 , 240020500 , 240030000 , 240030100 , 240030101 , 240030102 , 240030200 , 240030300 , 240040000 , 240040100 , 240040200 , 240040300 , 240040400 , 240040500 , 240040510 , 240040511 , 240040520 , 240040521 , 240040600 , 240040700 , 240050000 , 240010000 , 240000000 , //Minar Forest
    81. 240070000 , 240070010 , 240070100 , 240070200 , 240070300 , 240070400 , 240070500 , 240070600 , //Neo City
    82. 260010000 , 260010100 , 260010200 , 260010300 , 260010400 , 260010500 , 260010600 , 260010700 , 260020000 , 260020100 , 260020200 , 260020300 , 260020400 , 260020500 , 260020600 , 260020610 , 260020620 , 260020700 , 261000000 , 260000000 , 926010000 , 261010000 , 261010001 , 261010002 , 261010003 , 261010100 , 261010101 , 261010102 , 261010103 , 261020000 , 261020100 , 261020200 , 261020300 , 261020400 , 261020500 , 261020600 , 261020700 , 260000300 , 260000200 , //Nihal Desert
    83. 270000000 , 270000100 , 270010000 , 270010100 , 270010110 , 270010111 , 270010200 , 270010210 , 270010300 , 270010310 , 270010400 , 270010500 , 270020000 , 270020100 , 270020200 , 270020210 , 270020211 , 270020300 , 270020310 , 270020400 , 270020410 , 270020500 , 270030000 , 270030100 , 270030110 , 270030200 , 270030210 , 270030300 , 270030310 , 270030400 , 270030410 , 270030411 , 270030500 , 270040000 , 270050000 , //Temple of Time
    84. 271000000 , 271000100 , 271000200 , 271000210 , 271000300 , 271020000 , 271020100 , 271010000 , 271010100 , 271010200 , 271010300 , 271010301 , 271010400 , 271010500 , 271030000 , 271030100 , 271030101 , 271030102 , 271030200 , 271030201 , 271030300 , 271030310 , 271030320 , 271030400 , 271030410 , 271030500 , 271030510 , 271030520 , 271030530 , 271030540 , 271030600 , 271040000 , 271040100 , //Gate of Future
    85. 130000000 , 130000100 , 130000110 , 130000120 , 130000200 , 130000210 , 130010000 , 130010010 , 130010020 , 130010100 , 130010110 , 130010120 , 130010200 , 130010210 , 130010220 , 130020000 , 130030005 , 130030006 , 130030000 , //Ereve
    86. 140000000 , 140010000 , 140010100 , 140010200 , 140020000 , 140020100 , 140020200 , 140030000 , 140090000 , 140020300 , //Rien
    87. 310000000 , 310000010 , 310020000 , 310020100 , 310020200 , 310030000 , 310030100 , 310030110 , 310030200 , 310030300 , 310030310 , 310040000 , 310040100 , 310040110 , 310040200 , 310040300 , 310040400 , 310050000 , 310050100 , 310050200 , 310050300 , 310050400 , 310050500 , 310050510 , 310050520 , 310050600 , 310050700 , 310050800 , 310060000 , 310060100 , 310060110 , 310060120 , 310060200 , 310060210 , 310060220 , 310060300 , 310010000 , //Edelstein
    88. 600000000 , 600010100 , 600010200 , 600010300 , 600010400 , 600010500 , 600010600 , 600010700 , 600020000 , 600020100 , 600020200 , 600020300 , 600020400 , 600020500 , 600020600 , 682000000 , 610010000 , 610010001 , 610010002 , 610010004 , 610020000 , 610020001 , 610020006 , 610040000 , 610040100 , 610040200 , 610040210 , 610040220 , 610040230 , 610040400 //Masteria
    89. };
    复制代码


    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    枫叶物语即使倒闭也绝对不会变质
    Copyright © 2001-2013 Discuz Team. Powered by Discuz! X3.5 |网站地图 | 本站已运行: