Vai em data/actions/script, duplica um arquivo e nomeia para "skillQuest" sem as aspas e nele cole:
function onUse(cid, item, frompos, item2, topos)
local mlGain = 3 -- quantidade de ml que ira ganhar o player
local skillGain = 5 -- quantidade de skill que ira ganhar o player
if (getPlayerStorageValue(cid, 602032) < 1) then
if (getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 15 or getPlayerVocation(cid) == 16) then
doPlayerAddMagLevel(cid, mlGain)
doCreatureSay(cid,"Voce ganhou "..mlGain.." magic leveis!",TALKTYPE_ORANGE_1)
end
if (getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8) then
doPlayerAddSkill(cid, 2, skillGain)
doPlayerAddSkill(cid, 3, skillGain)
doCreatureSay(cid,"Voce ganhou "..skillGain.." skills!",TALKTYPE_ORANGE_1)
end
if (getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7) then
doPlayerAddSkill(cid, 4, skillGain)
doCreatureSay(cid,"Voce ganhou "..skillGain.." skills!",TALKTYPE_ORANGE_1)
end
if (getPlayerVocation(cid) == 13 or getPlayerVocation(cid) == 14) then
doPlayerAddSkill(cid, 1, skillGain)
doCreatureSay(cid,"Voce ganhou "..skillGain.." skills!",TALKTYPE_ORANGE_1)
end
if (getPlayerVocation(cid) == 17 or getPlayerVocation(cid) == 18) then
doPlayerAddSkill(cid, 0, skillGain)
doCreatureSay(cid,"Voce ganhou "..skillGain.." skills!",TALKTYPE_ORANGE_1)
end
setPlayerStorageValue(cid, 602032, 1)
else
doCreatureSay(cid,"Voce ja fez esta quest.",TALKTYPE_ORANGE_1)
end
return TRUE
end
Agora em data/actions/actions.xml cole a tag:
<action actionid="2085" script="skillQuest.lua"/>
E por último com seu mapa editor, vai no baú desejado do seu server e coloque o actionid 2085.






info
Grupo: Campones
Registrado: 11/11/08
Posts: 2
Reputação: 0
Char no Tibia: Bruno Gomes
Tipo do script:: actions
Protocolo (versão do Tibia): 8.6
Olá, eu gostaria de pedir para que se alguem tivesse ae um script que funcionasse ou fizessem um para mim! Um script para uma quest que desse skill para tal vocação, ao clicar em um baú. Ou se for mais facil um bau para cada vocação...
Por exemplo Druid, Sorcerer e Infernalist irao ganhar ML, Paladin ira ganhar Distance, Drunou ira ganhar Club, Knight ira ganhar Axe e Sword, Fighter ira ganhar fist.
Drunou ids 13 e 14
Infernalist Ids 15 e 16
Fighter ids 17 e 18
Valeu ae! ;D