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!

Let players choose their language at reg

Status
Not open for further replies.
Skilled Illusionist
Joined
Oct 28, 2008
Messages
379
Reaction score
47
Hi, I've been working on some addons for Xnova 8.0sp (this one works on all versions i think) and i found it dumb that players could not choose their own language like in real ogame. Wich made me make this little thingy.
Lets start.
Open reg.php and search this line
PHP:
        $QryInsertUser .= "`sex` = '" . mysql_escape_string($_POST['sex']) . "', ";
under that line add this line
PHP:
       $QryInsertUser .= "`lang` = '" . mysql_escape_string($_POST['lang']) . "', ";
Now open the folder templates then opengame and then open registry_form. search this
Code:
<tr>
  <th>{Sex}</th>
  <th><select name="sex">
		<option value="">{Undefined}</option>
		<option value="M">{Male}</option>
		<option value="F">{Female}</option>
		</select></th>
</tr>
and add under it this
Code:
<tr>
 <th>Language</th>
 <th><select name="lang">
 <option value="en">English</option>
 <option value="fr">Français</option>
 <option value="de">Deutsch</option>
 <option value="it">Italiano</option>
 <option value="es">Español</option>
 </select></th>
 </tr>
Save everything and your done ^^
Greetz Aropop
Press thanks if you like this!
 
Status
Not open for further replies.
Back
Top