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
end
Pergunta
Skailord 1
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 por SkailordLink para o comentário
https://xtibia.com/forum/topic/221347-problema-na-script-de-miss%C3%A3o-do-caotic/Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados