Hello guys, how are you..
i need to ask if there's any startskills.lua script for tfs 0.3.6 i can use.
This one is the one i tried and it doesn't work:
Thanks in advance, this is driving me crazy.
i need to ask if there's any startskills.lua script for tfs 0.3.6 i can use.
This one is the one i tried and it doesn't work:
function onLogin(cid)
local playerVoc = getPlayerVocation(cid)
local reqTries = getPlayerRequiredSkillTries
local skillStor = 56364
local gotSkills = getPlayerStorageValue(cid, 56364)
if playerVoc == 1 and gotSkills == -1 then
doPlayerAddMagLevel(cid, 200)
setPlayerStorageValue(cid, skillStor, 1)
elseif playerVoc == 2 and gotSkills == -1 then
doPlayerAddMagLevel(cid, 200)
setPlayerStorageValue(cid, skillStor, 1)
elseif playerVoc == 3 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 25))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 20))
doPlayerAddMagLevel(cid, 10)
setPlayerStorageValue(cid, skillStor, 1)
elseif playerVoc == 4 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 25))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 25))
doPlayerAddMagLevel(cid, 5)
setPlayerStorageValue(cid, skillStor, 1)
end
return TRUE
end
Thanks in advance, this is driving me crazy.