- Joined
- Dec 5, 2007
- Messages
- 121
- Reaction score
- 4
Hello ragezone people as I can login with another user account than " admin" ? I have a redirector that works for me but I did not change the account .. it is always using the admin ...
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!case CLIENT_START: /*if (c.getSessionIPAddress().contains("8.31.99.143") ||
c.getSessionIPAddress().contains("127.0.0.1") ||
c.getSessionIPAddress().contains("8.31.99.141")) {
c.loginData("admin");
c.getSession().write(LoginPacket.getAuthSuccessRequest(c));
}*/ if (c.getSessionIPAddress().contains("8.31.99.141")) { c.loginData(ServerConstants.ACCMASTER);
c.getSession().write(LoginPacket.getAuthSuccessRequest(c));
}
break;
if (!ServerConstants.Redirector) { System.out.println("Redirector login packet recieved, but server is not set to redirector. Please change it in ServerConstants!");
} else {
String username = slea.readMapleAsciiString(); // lol
c.loginData(username);
c.getSession().write(LoginPacket.getAuthSuccessRequest(c));
}
break;
case LOGIN_PASSWORD:
CharLoginHandler.login(slea, c);
LOGIN_PASSWORD(false, (short) 0x40),
<?php## Database Information
$database = array(
"host" => "localhost",
"user" => "root",
"pass" => "",
"dbse" => "v144"
);
## Connect To Database
mysql_connect($database['host'], $database['user'], $database['pass']) or die("0-Database server is offline.");
mysql_select_db($database['dbse']) or die("0-Database isn't available.");
## All the other stuff...
if (!empty($_GET['username']) && !empty($_GET['password'])) {
$username = mysql_real_escape_string($_GET['username']);
$password = mysql_real_escape_string($_GET['password']);
$AQuery = sprintf("
SELECT COUNT('id')
FROM accounts
WHERE name = '%s' AND password = '%s'",
$username, $password);
$aresult = mysql_query($AQuery);
$atotal = mysql_result($aresult, 0);
$reply = ($atotal > 0) ? true : false;
// return $reply;
if ($reply) {
echo 'pplzdlnewclient';
} else {
echo '0-Wrong username or password.';
}
}
?>
case CLIENT_START: /*if (c.getSessionIPAddress().contains("8.31.99.143") ||
c.getSessionIPAddress().contains("127.0.0.1") ||
c.getSessionIPAddress().contains("8.31.99.141")) {
c.loginData("admin");
c.getSession().write(LoginPacket.getAuthSuccessRequest(c));
} if (c.getSessionIPAddress().contains("8.31.99.141")) { c.loginData(ServerConstants.ACCMASTER);
c.getSession().write(LoginPacket.getAuthSuccessRequest(c));
}*/
break;
case LOGIN_REDIRECTOR:
if (!ServerConstants.Redirector) { System.out.println("Redirector login packet recieved, but server is not set to redirector. Please change it in ServerConstants!");
} else {
System.out.println("Redirector login packet recieved");
String username = slea.readMapleAsciiString(); // lol
System.out.println("User: "+ username + " is connecting");
c.loginData(username);
c.getSession().write(LoginPacket.getAuthSuccessRequest(c));
System.out.println("Auth packet sent.");
}
break;
No one knows the solution the problem ?
Showing any of these?PHP:case CLIENT_START: /*if (c.getSessionIPAddress().contains("8.31.99.143") || c.getSessionIPAddress().contains("127.0.0.1") || c.getSessionIPAddress().contains("8.31.99.141")) { c.loginData("admin"); c.getSession().write(LoginPacket.getAuthSuccessRequest(c)); } if (c.getSessionIPAddress().contains("8.31.99.141")) { c.loginData(ServerConstants.ACCMASTER); c.getSession().write(LoginPacket.getAuthSuccessRequest(c)); }*/ break;
PHP:case LOGIN_REDIRECTOR: if (!ServerConstants.Redirector) { System.out.println("Redirector login packet recieved, but server is not set to redirector. Please change it in ServerConstants!"); } else { System.out.println("Redirector login packet recieved"); String username = slea.readMapleAsciiString(); // lol System.out.println("User: "+ username + " is connecting"); c.loginData(username); c.getSession().write(LoginPacket.getAuthSuccessRequest(c)); System.out.println("Auth packet sent."); } break;
Try these and post if/ what the bat prints. Also post w/e response the client may give you.
System.out.println("Redirector login packet recieved, but server is not set to redirector. Please change it in ServerConstants!");
System.out.println("Redirector login packet recieved");
System.out.println("User: "+ username + " is connecting");
System.out.println("Auth packet sent.");
Use the client redirector Hawt V144 does not work every time you want to connect updated each time the patch .. up close and flight 18mb and I get to use the same ...
If it's patching, the loopback isn't installed properly. Configure it manually.
You have not answered this yet.
Launch a cmd as admin and type: "netsh int ip add addr 1 8.31.99.141 st=ac"