- Joined
- Jun 14, 2010
- Messages
- 58
- Reaction score
- 0
Helppp
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!Lol the password doesn't have to be hashed.First off, check if you need to put the password in hash or not. Other than that your problem seems to be the login function in MapleClient or the LoginPassword file itself. So, double check if those are right. I'm assuming LoginPasswordHandler is the culprit offhand though.
Tropik is the only v90 source out there o.o
package net.login.handler;
import client.MapleCharacter;
import client.MapleClient;
import net.MaplePacketHandler;
import server.TimerManager;
import tools.data.input.SeekableLittleEndianAccessor;
import tools.MaplePacketCreator;
public final class LoginPasswordHandler implements MaplePacketHandler {
public boolean validateState(MapleClient c) {
return !c.isLoggedIn();
}
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
int loginok = 0;
String login = slea.readMapleAsciiString();
String pwd = slea.readMapleAsciiString();
c.setAccountName(login);
final boolean isBanned = c.hasBannedIP() || c.hasBannedMac();
loginok = c.login(login, pwd, isBanned);
if (AutoRegister.getAccountExists(login) != false) {
loginok = c.login(login, pwd, isBanned);
} else if (AutoRegister.autoRegister != false && (!isBanned)) {
AutoRegister.createAccount(login, pwd, c.getSession().getRemoteAddress().toString());
if (AutoRegister.success != false) {
loginok = c.login(login, pwd, isBanned);
}
}
c.getSession().getRemoteAddress().toString();
if (loginok == 0 && isBanned) {
loginok = 3;
MapleCharacter.ban(c.getSession().getRemoteAddress().toString().split(":")[0], "Mac/IP Re-ban", false);
} else if (loginok != 0) {
c.getSession().write(MaplePacketCreator.getLoginFailed(loginok));
return;
}
if (c.finishLogin() == 0) {
c.getSession().write(MaplePacketCreator.getAuthSuccessRequestPin(c, c.getAccountName()));
final MapleClient client = c;
c.setIdleTask(TimerManager.getInstance().schedule(new Runnable() {
public void run() {
client.getSession().close(true);
}
}, 600000));
} else {
c.getSession().write(MaplePacketCreator.getLoginFailed(7));
}
}
}