• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Create Account Bug

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,984
Solutions
2
Reaction score
119
Location
Germany
GitHub
Shawak
Hello.

I tested ModernACC and found some bug.
My server got own vocations, I set them in config.php.
But it still says I have to choose between Sorcerer, Druid, Paladin and Knight when I create an account.
But after I created my account, and create a second character, the vocations in config.php are working.

Using trunk241.

Regards,
Shawak
 
You can edit this easily in \system\application\views\create.php

Just edit these at there.
Code:
<select name="vocation" class="keyboardInput" id="vocation">
	<option value="1">Sorcerer</option>
	<option value="2">Druid</option>
	<option value="3">Paladin</option>
	<option value="4">Knight</option>
</select>
 
Ok, I did it the following:

go to: \system\application\views\create.php

Replace:
Code:
<select name="vocation" class="keyboardInput" id="vocation">
    <option value="1">Sorcerer</option>
    <option value="2">Druid</option>
    <option value="3">Paladin</option>
    <option value="4">Knight</option>
</select>
With:
Code:
<?php 
 foreach($config['vocations'] as $key=>$value) 
   {
    echo '<option value="'.$key.'">'.$value.'</option>';
   }
?>
Than the vocations will be taken from the config file.

@Paxton, Stian:
Please change this in the rev's ;)
 
Last edited:
Back
Top