Create Account Bug

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,976
Best answers
2
Reaction score
101
Location
Germany
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
 
OP
Shawak

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,976
Best answers
2
Reaction score
101
Location
Germany
Isn't anyone able to fix that?
 

Diazapam

!ROFLMAO!
Joined
Jul 29, 2009
Messages
1,411
Best answers
0
Reaction score
9
Location
$_GET['Country']
I have the same problem, I'm just not sure what file does the create account, else I could have fixed it :(
 

MiPo91

Member
Joined
Mar 30, 2010
Messages
299
Best answers
0
Reaction score
18
Location
Finland
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>
 

Diazapam

!ROFLMAO!
Joined
Jul 29, 2009
Messages
1,411
Best answers
0
Reaction score
9
Location
$_GET['Country']
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:
Top