boa galera tenho uma duvida , presiso um scripts oq pode fazer um items arrume atributos segum seu vocacion pelo ejemplo :
"dwarven legs" em mago sobe 1 ml , em ek e paladin skills
acho oq nao e correcto isso mais presiso ajuda
function onEquip(cid, item, slot)
if(item.itemid == XXXX) then
if isPlayer(cid) and isKnight(cid) then
doPlayerAddSkillTry (cid, SKILL_SWORD, 3)
end
if isPlayer(cid) and isPaladin(cid) then
doPlayerAddSkillTry (cid, SKILL_DISTANCE, 3)
end
else
doPlayerAddSkillTry (cid, SKILL_MAGIC, 3) -- sei nao si sobe ml asim
end
end
return true
end
function onDeEquip(cid, item, slot)
if(item.itemid == XXXX) then
if isPlayer(cid) and isKnight(cid) then
doPlayerSetLossSkill (cid, SKILL_SWORD, 3)
end
if isPlayer(cid) and isPaladin(cid) then
doPlayerSetLossSkill (cid, SKILL_DISTANCE, 3)
end
else
doPlayerSetLossSkill (cid, SKILL_MAGIC, 3) -- sei nao si sobe ml asim
end
end
return true
end





