Tudo que saulosurerus postou
-
[Script] Vocation Quest.
function onUse(cid) local param,config = string.lower(param),{pid = getPlayerGUID(cid),newlv = 30000,life = 30000,mana = 30000} local storage = 88889 if getPlayerStorageValue(cid, storage) ~= 1 and getPlayerVocation(cid) == 7 and getPlayerLevel(cid) >= 110000 then doPlayerSetStorageValue(cid, storage, 1) doPlayerSetVocation(cid, 8) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabéns, você adquiriu sua vocação.") elseif getPlayerStorageValue(cid, storage) == 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você já fez essa quest.") elseif getPlayerVocation(cid) ~= 7 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não tem a vocação necessária.") elseif getPlayerLevel(cid) < 110000 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não tem level suficiente.") end return TRUE end Provavelmente não irá funcionar, não irei passar outras possibilidades de como realizar oque você quer para não roubar seu tempo, espere um especialista chegar eu sou apenas um novato em programação tibiana
-
[Script] Vocation Quest.
function onUse(cid) local storage = 88889 local param,config = string.lower(param),{pid = getPlayerGUID(cid),newlv = 30000,life = 30000,mana = 30000} if getPlayerStorageValue(cid, storage) ~= 1 and getPlayerVocation(cid) == 7 and getPlayerLevel(cid) >= 110000 then doPlayerSetStorageValue(cid, storage, 1) doPlayerSetVocation(cid, 8) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabéns, você adquiriu sua vocação.") elseif getPlayerStorageValue(cid, storage) == 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você já fez essa quest.") elseif getPlayerVocation(cid) ~= 7 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não tem a vocação necessária.") elseif getPlayerLevel(cid) < 110000 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não tem level suficiente.") end return TRUE end Eu enxerguei meu erro, a variável que eu adicionei deve ser colocada como pre definida, ainda não sei se vai funcionar mais tenta ai pra gente ve
-
[Script] Vocation Quest.
Não testei, testa ai, sou novato se der certo da reputa se não der avisa qual foi o erro function onUse(cid) local storage = 88889 if getPlayerStorageValue(cid, storage) ~= 1 and getPlayerVocation(cid) == 7 and getPlayerLevel(cid) >= 110000 then doPlayerSetStorageValue(cid, storage, 1) doPlayerSetVocation(cid, 8) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabéns, você adquiriu sua vocação.") local param,config = string.lower(param),{pid = getPlayerGUID(cid),newlv = 30000,life = 30000,mana = 30000} elseif getPlayerStorageValue(cid, storage) == 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você já fez essa quest.") elseif getPlayerVocation(cid) ~= 7 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não tem a vocação necessária.") elseif getPlayerLevel(cid) < 110000 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não tem level suficiente.") end return TRUE end