ele funciona baseado na sua vocaçao...vc da use nele e ganha 1 ponto de skill, de acordo com a sua vocaçao....mas soh funciona pra knight e paladins.. pq eu nao consegui achar o ID do magic level =//
ja que eu nao sei qual os knight vao preferir, se eh club, axe ou sword... entao eu add todos xD
primeiramente vc vai ateh a pasta do seu ot... /data/actions/script
copie qualquer script que esteja la dentro e dps apague tudu oq tem nele e bote isso:
function onUse(cid, item, frompos, item2, topos)
if getPlayerVocation(cid) == 8 then
doPlayerAddSkillTry(cid,1,99999999999)
doPlayerAddSkillTry(cid,2,99999999999)
doPlayerAddSkillTry(cid,3,99999999999)
doPlayerSendTextMessage(cid,25,"Você acaba de ganhar 1 ponto de Skill")
elseif getPlayerVocation(cid) == 1 then
doPlayerAddSkillTry(cid,0,99999999999)
doPlayerSendTextMessage(cid,25,"Você acaba de ganhar 1 ponto de Skill")
elseif getPlayerVocation(cid) == 2 then
doPlayerAddSkillTry(cid,0,99999999999)
doPlayerSendTextMessage(cid,25,"Você acaba de ganhar 1 ponto de Skill")
elseif getPlayerVocation(cid) == 3 then
doPlayerAddSkillTry(cid,4,99999999999)
doPlayerSendTextMessage(cid,25,"Você acaba de ganhar 1 ponto de Skill")
elseif getPlayerVocation(cid) == 4 then
doPlayerAddSkillTry(cid,1,99999999999)
doPlayerAddSkillTry(cid,2,99999999999)
doPlayerAddSkillTry(cid,3,99999999999)
doPlayerSendTextMessage(cid,25,"Você acaba de ganhar 1 ponto de Skill")
elseif getPlayerVocation(cid) == 5 then
doPlayerAddSkillTry(cid,0,99999999999)
doPlayerSendTextMessage(cid,25,"Você acaba de ganhar 1 ponto de Skill")
elseif getPlayerVocation(cid) == 6 then
doPlayerAddSkillTry(cid,0,99999999999)
doPlayerSendTextMessage(cid,25,"Você acaba de ganhar 1 ponto de Skill")
elseif getPlayerVocation(cid) == 4 then
doPlayerAddSkillTry(cid,4,99999999999)
doPlayerSendTextMessage(cid,25,"Você acaba de ganhar 1 ponto de Skill")
end
doRemoveItem(item.uid, 1)
return 0
end
dps de ter feito isso va na pasta /data/actions e add isso nas actions.xml
<action itemid="2217" script="skillbook.lua"/>
em vermelho eh o ID do livro... eu jah tentei com outros livros e nao deu certo.. ficava aparecendo uma janela quando dava use...
em "azul" eh o script que vc acabou de fazer... no meu caso eh o skillbook.lua
creditos para min e uma ajudinha do GM Volcano
=D
DONE!