local strg1 = 200201 -- storage começando a task
local strg2 = 91001 -- storage finalizou a task (ganha qnd matar os monstros)
-- ["rat"] = {monster_race={"rat","cave rat"}, storage_start = 200201, storage = 91001,count = 10},
if string.lower(msg) == "task" then
if getPlayerStorageValue(cid, strg1) == 0 then
if getPlayerStorageValue(cid, 8971) == 1 then
selfSay("Good one more coming soul of {portal}! Welcome, I hope you can help!")
elseif getPlayerStorageValue(cid, 8971) == 2 then
selfSay("Que bom mais uma alma vinda do {portal}! Seja bem vindo, espero que possa nos ajudar!.")
end
if string.lower(msg) == "portal" then
if getPlayerStorageValue(cid, 8971) == 1 then
selfSay("Crystal angel one came down here and Aurea and opened a portal of humans who comes from another dimension for us {save}.")
elseif getPlayerStorageValue(cid, 8971) == 2 then
selfSay("Crystal uma anja desceu até aqui e em Aurea e abriu um portal de humanos que vem de outra dimensão para nós {salvar}.")
end
if string.lower(msg) == "salvar" or string.lower(msg) == "save" then
if getPlayerStorageValue(cid, 8971) == 1 then
selfSay("We are in an apocalyptic world, at war with several races. And you can be! {the chosen}")
elseif getPlayerStorageValue(cid, 8971) == 2 then
selfSay("Estamos em um mundo apocalíptico, em guerra com varias raças. E voce pode ser o {escolhido}!")
end
if string.lower(msg) == "escolhido" or string.lower(msg) == "the chosen" then
if getPlayerStorageValue(cid, 8971) == 1 then
selfSay("Congratulations, now with permission.")
elseif getPlayerStorageValue(cid, 8971) == 2 then
selfSay("Calma primeiro precisamos treinar, voce deve nos ajudar com coisas {simples}, ate estar bem treinado!")
selfSay("Como por exemplo a nossa praga de {rats} na cidade que estão subindo pelos bueiros!")
end
if string.lower(msg) == "rats" then
if getPlayerStorageValue(cid, strg1) == 0 then
setPlayerStorageValue(cid, strg1, 1)
if getPlayerStorageValue(cid, 8971) == 1 then
selfSay("Congratulations, now with permission.")
elseif getPlayerStorageValue(cid, 8971) == 2 then
selfSay("Ok, então ajuda-nos a acabar com isso e mate 10 ratos no bueiro aqui na frente.")
end
elseif getPlayerStorageValue(cid, strg2) >= 1 then
if getPlayerStorageValue(cid, 8971) == 1 then
selfSay("Congratulations, now with permission.")
elseif getPlayerStorageValue(cid, 8971) == 2 then
selfSay("Voce concluiu a missao, tome aqui um Sabre, use ele ate chegar no nivel 8 e fale com o Oraculo no templo!")
selfSay("Ele ira te mandar para Aurea, la fale com !")
end
doPlayerAddItem(cid,2385,1)
end
end
end
end
end
end