【★】ʀℯɱℯɳɞℯʀGåɱℯʂ【★】 107 Posted December 30, 2015 Como edito esta quest para pedir itens ao entrar no mapa de nemeres? when 20094.chat."Torre de Nemeres" begin local level = pc.get_level() say_title("Olá Guerreiro(a)") say("Posso levar você até a Torre de Nemeres.") say("Mas tenha cuidado, la é muito perigoso.") say("") local option = select("Entrar","Não,") if option == 1 then if level >= 92 then say("Boa sorte!") wait() pc.warp(588100, 180300) else say("Você não tem o level necessário.") end else return end -- fim option end end end Share this post Link to post Share on other sites
kimameixede 70 Posted December 30, 2015 aqui esta. when 20094.chat."Torre de Nemeres" begin local level = pc.get_level() say_title("Olá Guerreiro(a)") say("Posso levar você até a Torre de Nemeres.") say("Mas tenha cuidado, la é muito perigoso.") say("") local option = select("Entrar","Não,") if option == 1 then if level <= 92 then say("Você não tem o level necessário.") end if pc.count_item(item) < 1 then say("Nao tens o item necessario!") end say("Boa sorte!") wait() pc.warp(588100, 180300) end end na parte if pc.count_item(item) < 1 then em "item" é o item necessário Share this post Link to post Share on other sites
LordKS 57 Posted December 30, 2015 aqui esta. when 20094.chat."Torre de Nemeres" begin local level = pc.get_level() say_title("Olá Guerreiro(a)") say("Posso levar você até a Torre de Nemeres.") say("Mas tenha cuidado, la é muito perigoso.") say("") local option = select("Entrar","Não,") if option == 1 then if level <= 92 then say("Você não tem o level necessário.") end if pc.count_item(item) < 1 then say("Nao tens o item necessario!") end say("Boa sorte!") wait() pc.warp(588100, 180300) end end na parte if pc.count_item(item) < 1 then em "item" é o item necessário Esqueceste-te de remover o item que pede ao entrar. Cumps. Share this post Link to post Share on other sites
kimameixede 70 Posted December 30, 2015 when 20094.chat."Torre de Nemeres" begin local level = pc.get_level() say_title("Olá Guerreiro(a)") say("Posso levar você até a Torre de Nemeres.") say("Mas tenha cuidado, la é muito perigoso.") say("") local option = select("Entrar","Não,") if option == 1 then if level <= 92 then say("Você não tem o level necessário.") end if pc.count_item(item) < 1 then say("Nao tens o item necessario!") end say("Boa sorte!") wait() pc.warp(588100, 180300) pc.remove_item(item, quantidade) end end na parte pc.remove_item(item, quantidade) "item" é o item necessário. "quantidade" é quantos itens o jogador vai precisar. Share this post Link to post Share on other sites