• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

AAC New vocations in gesior dont appears

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,210
Solutions
35
Reaction score
207
i tried to create the healer vocation, but dont appear nothing.
I have created a new sample: 5 => 'Healer Sample' and i created the Healer Sample in sql too.
but when try to create ACC dont appears the name
Code:
$config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample', 5 => 'Healer Sample');
OBS: if I create the character, he usually creates the Healer.
But this is the bug, which is not showing the name at the time of creating the char.

1567905578810.png
 
Solution
S
its not an elite knight, its the new vocation
i'am not good in gesior just told him what he should do that what i can remember from 8 years
but what is this zero ?
Code:
$config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample', 5 => 'Healer Sample');
from gesior2012 repo
Code:
$config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
That's not all you have to edit. That is just what gesior uses to give new player items. You log into those characters using 1/1 or something like that and put items on them. Druid Sample for example if you put items on it all new players that choose druid will get those items.

So right now your website knows to check healer sample whenever someone chooses the 5th option for vocation to give them items. You need to find where it is actually adding the text for the options and add it in.
 
and what about vocations appearing on the site? I have custom vocations too and when you go to a player's profile you can see his vocation, I'd have to do the same? I don't want to allow people to create characters with those custom vocations tho
 
That's not all you have to edit. That is just what gesior uses to give new player items. You log into those characters using 1/1 or something like that and put items on them. Druid Sample for example if you put items on it all new players that choose druid will get those items.

So right now your website knows to check healer sample whenever someone chooses the 5th option for vocation to give them items. You need to find where it is actually adding the text for the options and add it in.
I logged in with the healer sample, put the items, but the name does not appear yet.
probably name is here, because appear Select your vocation:
and u select a vocation u need

PHP:
if(count($config['site']['newchar_vocations']) > 1)
                    {
                        $main_content .= '<td><table class="TableContent" width="100%" ><tr class="Odd" valign="top"><td width="160"><br /><b>Select your vocation:</b></td><td><table class="TableContent" width="100%" >';
                        foreach($config['site']['newchar_vocations'] as $char_vocation_key => $sample_char)
                        {
                            $main_content .= '<tr><td><input type="radio" name="newcharvocation" value="'.htmlspecialchars($char_vocation_key).'" ';
                            if($newchar_vocation == $char_vocation_key)
                                $main_content .= 'checked="checked" ';
                            $main_content .= '>'.htmlspecialchars($vocation_name[0][$char_vocation_key]).'</td></tr>';
                        }
                        $main_content .= '</table></table></td>';
                    }
 
and what about vocations appearing on the site? I have custom vocations too and when you go to a player's profile you can see his vocation, I'd have to do the same? I don't want to allow people to create characters with those custom vocations tho
don't add fifth choice just add the vocations with thier id in vocations.xml because website reads it from db
 
Last edited by a moderator:
its not an elite knight, its the new vocation
i'am not good in gesior just told him what he should do that what i can remember from 8 years
but what is this zero ?
Code:
$config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample', 5 => 'Healer Sample');
from gesior2012 repo
Code:
$config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
 
Solution
Back
Top