Tenta esse
local str = {
{msg = "Fale com o mizuki em Konoha.", st = 0, value = 1},
{msg = "Pegue o pergaminho na torre de Konoha.", st = 3426, value = 1},
{msg = "Vá a floresta entre duas pedras e fale com o mizuki.", st = 19896, value = 1},
{msg = "Fale com Ibiki Morino e faça o exame.", st = 89745, value = 1},
}
function onSay(cid, words, param)
for _, strinfo in pairs(str) do
if getPlayerStorageValue(cid, strinfo.st) == strinfo.value then
return doShowTextDialog(cid, 1949, strinfo.msg)
end
end
return true
end




info
Grupo: Campones
Registrado: 26/12/12
Posts: 68
Reputação: +1
Char no Tibia: Skailord
a script funciona assim, o player tem certa storage e quando fala !missão apareçe oq ele deve fazer de acordo com sua storage, so que quando fala !missão apareçe apenas a ultima mensagem mesmo tendo storage só aparece um texto.
script:
só aparece a ultima mensagem(Fale com Ibiki Morino e faça o exame)
local str = { {msg = "Fale com o mizuki em Konoha.", st = 0, value = 1}, {msg = "Pegue o pergaminho na torre de Konoha.", st = 3426, value = 1}, {msg = "Vá a floresta entre duas pedras e fale com o mizuki.", st = 19896, value = 1}, {msg = "Fale com Ibiki Morino e faça o exame.", st = 89745, value = 1}, } function onSay(cid, words, param) function getValuers() k = 0 while #str > k do k = k+1 if getPlayerStorageValue(cid, str[k].st) == str[k].value then break end end return str[k].msg end doShowTextDialog(cid, MESSAGE_STATUS_CONSOLE_BLUE, getValuers()) return true endEditado Setembro 19 por Skailord