Welcome!

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!

Help!!! v90 Not Registered ID

Newbie Spellweaver
Joined
Jun 14, 2010
Messages
58
Reaction score
0
Helppp

DragonNC - Help!!! v90 Not Registered ID - RaGEZONE Forums
 
Skilled Illusionist
Joined
May 28, 2011
Messages
380
Reaction score
38
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.
 
Upvote 0
Skilled Illusionist
Joined
Nov 12, 2011
Messages
360
Reaction score
93
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.
Lol the password doesn't have to be hashed.
OT: Post your loginpasswordhandler; theres a problem on line 23?
 
Upvote 0
Newbie Spellweaver
Joined
Jun 14, 2010
Messages
58
Reaction score
0
i'm not sure which repack i'm using, since the java it says JavaProject18, and all the SQL and stuffs don't show which source i'm using,

LoginPasswordHandler:
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));
}
}
}
 
Upvote 0
Back
Top