• 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!

[0.3.6 TFS] Change starting skills znote

steviemongolin

New Member
Joined
Feb 28, 2016
Messages
21
Reaction score
0
Hello everybody, does anyone know if there is a way to change the starting skills from each vocation in znote at config.php or where can I change it. I have this in config.php

Code:
}$config['vocations'] = $voc;

    /* Vocation stat gains per level
        - Ordered by vocation ID
        - Currently used for admin_skills page. */
    $config['vocations_gain'] = array(
        0 => array(
            'hp' => 5,
            'mp' => 5,
            'cap' => 10
        ),
        1 => array(
            'hp' => 5,
            'mp' => 30,
            'cap' => 10
        ),
        2 => array(
            'hp' => 5,
            'mp' => 30,
            'cap' => 10
        ),
        3 => array(
            'hp' => 10,
            'mp' => 15,
            'cap' => 20
        ),
        4 => array(
            'hp' => 17,
            'mp' => 5,
            'cap' => 25
        ),
        5 => array(
            'hp' => 15,
            'mp' => 5,
            'cap' => 25
        ),
        6 => array(
            'hp' => 13,
            'mp' => 10,
            'cap' => 25
        ),
        7 => array(
            'hp' => 10,
            'mp' => 10,
            'cap' => 25
        ),
       
    );
 
Typically you should be able to adjust the starting skills in your sample vocations.
 
They are located in your database. Login to your sql with 'root' (if you left it default) then go to players. They are typically the only players in the database if you havent created any other characters. This is the same place you'd make your account access 5.
 
I guess disregard what I said earlier if that isn't how the server is set-up. If the original script doesn't have the option to change the skills for each vocation, you could create a login script to give them the required skills on their first login, as a work-around.
 
I have been trying to work on my starting skill script but I'm a noob xd I havent been able to set my skills the way I want, because everytime I change the skill rate my starting skills changes, so I dont understand very well how it works. Sometimes my new characters start with half the skill advanced :(

I don't even know why when I change my skills on distance on my starting script it affects my magic level too :(
 
Last edited by a moderator:
Hi,
I think you should add skill in login.lua.
You should use:
Code:
doPlayerAddMagLevel(cid, amount)

doPlayerAddSkill(cid, skill, amount, round)
 
I have a starting skill script on my login.lua but I don't know why for example if I make a new char with voc 6 I start with the skills that I want that it is 81, but with 85% to advance to 82.
I have this script but I don't know if the script that I have doesn't work as it should be. If you check the script on my voc 6 it says dist 69 and my skill rate at config.lua is 35x and that makes the new char start with 81 skills with 85% to advance to the next skill. If someone could help me to fix this I would really appreciate it, I have been trying to fix it for days but I really don't understand how it works.

Code:
function onLogin(cid)
local playerVoc = getPlayerVocation(cid)
local reqTries = getPlayerRequiredSkillTries
local skillStor = 56367
local gotSkills = getPlayerStorageValue(cid, 56367)


if playerVoc == 1 and gotSkills == -1 then
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,84)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 2 and gotSkills == -1 then
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,84)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 3 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 94))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 54))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,21)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 4 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 10))
doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 80))
doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 10))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 80))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,8)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 5 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 94))
doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 10))
doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 10))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 52))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,8)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 6 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 69))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 48))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,21)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 7 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 10))
doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 94))
doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 10))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 64))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,15)))
setPlayerStorageValue(cid, skillStor, 1)

end
return TRUE
end
 
0.3.6 has a bug in the way those functions work. That script is from my Simple War OT release.
I don't think I ever got it working 100% with 0.3.6 - you should maybe upgrade to TFS 1.2 downgraded to 8.6 (If you want to keep using 8.6 client)
 
I wasn't joking when I said that 0.3.6 has a bug in these functions. They do not work as intended.
Furthermore, the functions are really too resource intensive to be used on a production server. You will likely experience lag when people log in a Knight for the first time.
The people successfully using starting skills on 8.6 are using an AAC that uses vocation samples to create characters from.
 
I already installed gesior acc but I have a problem with the samples, the skills doesn't show up on the database, only magic level shows up. How can I add the rest of the skills to each sample?
 
Back
Top