- Joined
- Feb 23, 2008
- Messages
- 507
- Reaction score
- 361
Yeah, I know there are some offline unstuckers, but these are better as they disconnect an already logged-in player.
Go to net.channel.handler.playerloggedinhandler.java
Look for :
Replace
With this :
Information:
Basically, you know whenever your character is stuck on the channelserver, it keeps you from logging in , and on the channel-server bat window, you see something like "[h4x] Player is trying to double-login "
Well, what this basically does is that it disconnects the stuck player and then makes you re-login so you can connect. (Duping shouldn't be possible).
Report any bugs you may encounter, I've used this on my server and it seems good. ~
This was tested on Arber (v75) and Shootsource(v75) .
As always, if you migrate this release to another forum, provide the necessary credits! Credits to LxShutdown/FateJiki/Seclusion
~Julez
Go to net.channel.handler.playerloggedinhandler.java
Look for :
PHP:
boolean allowLogin = true;
ChannelServer channelServer = c.getChannelServer();
Replace
PHP:
WorldChannelInterface worldInterface = channelServer.getWorldInterface();
if (state == MapleClient.LOGIN_SERVER_TRANSITION) {
for (String charName : c.loadCharacterNames(c.getWorld())) {
if (worldInterface.isConnected(charName)) {
allowLogin = false;
break;
}
}
}
With this :
PHP:
WorldChannelInterface worldInterface = channelServer.getWorldInterface();
if (state == MapleClient.LOGIN_SERVER_TRANSITION) {
for (String charName : c.loadCharacterNames(c.getWorld())) {
if (worldInterface.isConnected(charName)) {
System.err.print(charName + " has been unstucked, for bug-testing purposes.");
MapleCharacter player_to_dc = player.getClient().getChannelServer().getPlayerStorage().getCharacterByName(charName);
player_to_dc.getClient().disconnect();
player_to_dc.getClient().getSession().close();
c.getSession().write(MaplePacketCreator.serverNotice(1, "\r\n\r\n\r\n Player was unstuck.\r\n Please re-log"));
player_to_dc.getMap().removePlayer(player_to_dc);
allowLogin = false;
break;
}
}
}
Information:
Basically, you know whenever your character is stuck on the channelserver, it keeps you from logging in , and on the channel-server bat window, you see something like "[h4x] Player is trying to double-login "
Well, what this basically does is that it disconnects the stuck player and then makes you re-login so you can connect. (Duping shouldn't be possible).
Report any bugs you may encounter, I've used this on my server and it seems good. ~
This was tested on Arber (v75) and Shootsource(v75) .
As always, if you migrate this release to another forum, provide the necessary credits! Credits to LxShutdown/FateJiki/Seclusion
~Julez
Last edited: