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

Starting with skills

What are you using account manager or website? In gesior, you shall edit the vocations samples, in znote edit at config.php and if you use account manager edit config.lua
 
ty man but I dont know what to write to get the skills that was all I found (I use znote)

$config['level'] = 8;
$config['health'] = 185;
$config['mana'] = 35;
$config['cap'] = 435;
$config['soul'] = 0;

$config['maleOutfitId'] = 128;
$config['femaleOutfitId'] = 138;

// No vocation info (if user select vocation id 0, we force thees configurations on him
$config['nvlevel'] = 1;
$config['nvHealth'] = 150;
$config['nvMana'] = 0;
$config['nvCap'] = 400;
$config['nvSoul'] = 0;
 
Well for skills its default 10, else you can add this in login.lua under function onLogin(cid)

Code:
    if (getPlayerLastLogin(cid) < 1) then
        if (isSorcerer(cid) or isDruid(cid)) then
            doPlayerAddMagLevel(cid, 50)
            doPlayerAddSkill(cid, SKILL_SHIELD, 20)
        elseif (isPaladin(cid)) then
            doPlayerAddSkill(cid, SKILL_DISTANCE, 20)
            doPlayerAddSkill(cid, SKILL_SHIELD, 20)
        elseif (isKnight(cid)) then
            doPlayerAddSkill(cid, SKILL_SWORD, 50)
            doPlayerAddSkill(cid, SKILL_CLUB, 50)
            doPlayerAddSkill(cid, SKILL_AXE, 50)
            doPlayerAddSkill(cid, SKILL_SHIELD, 50)
            doPlayerAddMagLevel(cid, 6)
        end
    end
 
use a start skill script
Code:
function onLogin(cid)
local playerVoc = getPlayerVocation(cid)
local reqTries = getPlayerRequiredSkillTries
local skillStor = 56364
local gotSkills = getPlayerStorageValue(cid, 56364)


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

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

elseif playerVoc == 7 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 80))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 80))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,20)))
setPlayerStorageValue(cid, skillStor, 1)

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

end
return TRUE
end
 
Back
Top