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