Banning it? That could cost you a good source of players. I'd recommend a lighter touch. For example, in our custom cd key verification (very similar to the public one I posted in the sticky on securing your server without the master server), we have a check for this to warn them that they're using a public key:
} else {
if (sKey == "Q7RREKF3") {
DelayCommand(19.0, FloatingTextStringOnCreature("WARNING! You are using a public cd key from GoG. Check your chat log for more information", oPlayer, FALSE));
DelayCommand(19.5, SendChatLogMessage(oPlayer, COLOR_RED +
"Everyone who buys a copy of NWN from Good Old Games gets the cd key you are using. This can cause many problems, including an inability to log in whenever anyone else is using the key. You should refer to our Installation Guide at http://wiki.hgweb.org/wiki/Installation_Guide for instrucitons on how to obtain a private cd key form GoG." + COLOR_END, oMessenger));
DelayCommand(20.0, SendChatLogMessage(oPlayer, COLOR_RED +
"We do not store the public key provided by Good Old Games, because it would allow anyone with that key to log in to your account. The key will not be added to your list of allowed cd keys, and anyone will be able to log in to your account, until you obtain a private key." + COLOR_END, oMessenger));
} else {
sSQL = "INSERT INTO pwdata (val,name) VALUES" + "('" + sKey + "','PlayernameKey" + sPlayer + "')";
SQLExecDirect(sSQL);
}
}
I should probably add that we have code in place to block same-key logins, to avoid dual logins. I no longer remember if this is necessary or not on servers with only a single instance, but that's why that part of the message is in there.
Funky
Modifié par FunkySwerve, 23 août 2013 - 04:43 .