TA的每日心情 | 衰 2022-12-15 19:48 |
---|
签到天数: 6 天 [LV.2]偶尔看看I
中级会员
- 积分
- 355
|
端口來源:
https://www.fengyewuyu.com/thread-1573-1-1.html
由于聊天按钮都是被拿来当作解卡的,所以我把他改成按下按钮后移动到自由市场,同时也可以跟拍卖快捷菜单共存,无需将拍卖按钮改成移动到自由市场
本帖隐藏的内容修改方法:
到handling.channel.handler的PlayersHandler节点
1.在适当的位置添加下面该段代码
- import tools.data.input.SeekableLittleEndianAccessor;
- import server.MaplePortal;
- import server.maps.MapleMap;
- import server.maps.SavedLocationType;
- import handling.channel.ChannelServer;
[color=rgb(85, 85, 85) !important]复制代码
2.再找到
- public static void ChatRoomHandler(final SeekableLittleEndianAccessor slea, final MapleClient c) {
[color=rgb(85, 85, 85) !important]复制代码
跟
- }
- public static void UseDoor(final SeekableLittleEndianAccessor slea, final MapleCharacter chr) {
[color=rgb(85, 85, 85) !important]复制代码
将这两段代码之间的代码改成
- if ((c.getPlayer().getMapId() < 910000000) || (c.getPlayer().getMapId() > 910000022)){
- //c.getSession().write(MaplePacketCreator.enableActions());
- MapleMap to;
- MaplePortal pto;
- to = ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(910000000);
- c.getPlayer().saveLocation(SavedLocationType.FREE_MARKET);
- pto = to.getPortal("out00"); // or st00?
- c.getPlayer().changeMap(to, pto);
- //} else {
- //c.getSession().write(MaplePacketCreator.enableActions());
- }
[color=rgb(85, 85, 85) !important]复制代码
最终结果需为
- public static void ChatRoomHandler(final SeekableLittleEndianAccessor slea, final MapleClient c) {
- if ((c.getPlayer().getMapId() < 910000000) || (c.getPlayer().getMapId() > 910000022)){
- //c.getSession().write(MaplePacketCreator.enableActions());
- MapleMap to;
- MaplePortal pto;
- to = ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(910000000);
- c.getPlayer().saveLocation(SavedLocationType.FREE_MARKET);
- pto = to.getPortal("out00"); // or st00?
- c.getPlayer().changeMap(to, pto);
- //} else {
- //c.getSession().write(MaplePacketCreator.enableActions());
- }
- }
[color=rgb(85, 85, 85) !important]复制代码
|
|
|