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
Pergunta
llevell 0
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
Link para o comentário
https://xtibia.com/forum/topic/221789-ajuda-com-script-pra-fazer-um-item-multi-voc/Compartilhar em outros sites
6 respostass a esta questão
Posts Recomendados