drakylucas
Intermediate OT User
- Joined
- Dec 15, 2015
- Messages
- 235
- Solutions
- 7
- Reaction score
- 121
Hello all,
How can I change the default skills of each vocation?
I tried changing on Samples in database, for magic level it works, but for shielding, sword, etc it does not work. It creates with the default value "10" for all vocations.
I couldn't find the trigger in the database and also couldn't find where the code set 10 as default.
I'd like that:
Sorcerer/Druid:
Default ml = 20
Default Shielding = 15
Paladin:
Default ml = 5
Default distance = 40
Default shielding = 30
Knight:
Default ml = 2
Default sword/axe/club = 40
Default shielding = 40
Thanks in advance!
I managed to fix it editing this file:
myaac\system\libs\CreateCharacter.php
Changing from
to
Mods, please close this topic.
How can I change the default skills of each vocation?
I tried changing on Samples in database, for magic level it works, but for shielding, sword, etc it does not work. It creates with the default value "10" for all vocations.
I couldn't find the trigger in the database and also couldn't find where the code set 10 as default.
I'd like that:
Sorcerer/Druid:
Default ml = 20
Default Shielding = 15
Paladin:
Default ml = 5
Default distance = 40
Default shielding = 30
Knight:
Default ml = 2
Default sword/axe/club = 40
Default shielding = 40
Thanks in advance!
Post automatically merged:
I managed to fix it editing this file:
myaac\system\libs\CreateCharacter.php
Changing from
PHP:
for($skill = POT::SKILL_FIRST; $skill <= POT::SKILL_LAST; $skill++)
$player->setSkill($skill, 10);
to
PHP:
for($skill = POT::SKILL_FIRST; $skill <= POT::SKILL_LAST; $skill++)
$player->setSkill($skill, $char_to_copy->getSkill($skill));
Mods, please close this topic.
Last edited: