yes, add to login.luai tried this and work it
now i need one to not gain more skills in these vocations haaha can u help me?LUA:local vocationIDS = {13, 14, 15, 16} function onDeath(cid, corpse, deathList) if isInArray(vocationIDS, getPlayerVocation(cid)) then doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end return true end
local vocationIDS = {13, 14, 15, 16}
if isInArray(vocationIDS, getPlayerVocation(cid)) then
doPlayerSetRate(cid, SKILL_FIST, 0)
doPlayerSetRate(cid, SKILL_CLUB, 0)
doPlayerSetRate(cid, SKILL_SWORD, 0)
doPlayerSetRate(cid, SKILL_AXE, 0)
doPlayerSetRate(cid, SKILL_DISTANCE, 0)
doPlayerSetRate(cid...
i tried this and work ithow did you add it to your login.lua?
local vocationIDS = {13, 14, 15, 16}
function onDeath(cid, corpse, deathList)
if isInArray(vocationIDS, getPlayerVocation(cid)) then
doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0)
doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0)
end
return true
end
yes, add to login.luai tried this and work it
now i need one to not gain more skills in these vocations haaha can u help me?LUA:local vocationIDS = {13, 14, 15, 16} function onDeath(cid, corpse, deathList) if isInArray(vocationIDS, getPlayerVocation(cid)) then doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end return true end
local vocationIDS = {13, 14, 15, 16}
if isInArray(vocationIDS, getPlayerVocation(cid)) then
doPlayerSetRate(cid, SKILL_FIST, 0)
doPlayerSetRate(cid, SKILL_CLUB, 0)
doPlayerSetRate(cid, SKILL_SWORD, 0)
doPlayerSetRate(cid, SKILL_AXE, 0)
doPlayerSetRate(cid, SKILL_DISTANCE, 0)
doPlayerSetRate(cid, SKILL_SHIELD, 0)
doPlayerSetRate(cid, SKILL_FISHING, 0)
doPlayerSetRate(cid, SKILL__MAGLEVEL, 0)
end
Thank u!!yes, add to login.lua
LUA:local vocationIDS = {13, 14, 15, 16} if isInArray(vocationIDS, getPlayerVocation(cid)) then doPlayerSetRate(cid, SKILL_FIST, 0) doPlayerSetRate(cid, SKILL_CLUB, 0) doPlayerSetRate(cid, SKILL_SWORD, 0) doPlayerSetRate(cid, SKILL_AXE, 0) doPlayerSetRate(cid, SKILL_DISTANCE, 0) doPlayerSetRate(cid, SKILL_SHIELD, 0) doPlayerSetRate(cid, SKILL_FISHING, 0) doPlayerSetRate(cid, SKILL__MAGLEVEL, 0) end