【★】ʀℯɱℯɳɞℯʀGåɱℯʂ【★】 106 Posted December 28, 2015 Como faço para esta quest pedir item ao entrar na Torre de Nemeres? 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 Share this post Link to post Share on other sites
0 Tyler Durden 556 Posted December 28, 2015 local level = pc.get_level() local item = item_id say_title("Olá Guerreiro(a)") say("Posso levar você até à Torre de Nemere.") say("Mas tenha cuidado, lá é 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 if item = item_id then --if item = (item_id, quant) say("Boa sorte!") wait() pc.warp(588100, 180300) else say("Você não tem o item necessário.") end else return end Share this post Link to post Share on other sites
0 【★】ʀℯɱℯɳɞℯʀGåɱℯʂ【★】 106 Posted December 28, 2015 local level = pc.get_level() local item = item_id say_title("Olá Guerreiro(a)") say("Posso levar você até à Torre de Nemere.") say("Mas tenha cuidado, lá é 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 if item = item_id then --if item = (item_id, quant) say("Boa sorte!") wait() pc.warp(588100, 180300) else say("Você não tem o item necessário.") end else return end Não deu certo, quando a implemento desta forma a NPC não abre a opção Torre de Nemeres ... Share this post Link to post Share on other sites
0 OceanusMT2 110 Posted December 28, 2015 local level = pc . get_level ( )if pc.job == 0 thenif pc.get_sex() == 0 thensay_title ( "Olá Guerreiro" )elsesay_title ( "Olá Guerreira" )endelseif pc.job == 1 thensay_title ( "Olá Ninja" )elseif pc.job == 2 thensay_title ( "Olá Sura" )elseif pc.job == 3 thensay_title ( "Olá Shaman" )endsay ( "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 thenif level >= 92 thenif pc.count_item(ID DO ITEM) >= 1 thensay ( "Boa sorte!" )wait ( )pc.remove_item(ID DO ITEM,1)pc.warp(588100,180300)elsesay("Precisas do item XPTO")endelsesay ( "Você não tem o level necessário." )endelsereturnendas linhas que eu adicionei são para meteres na Quest e não para editar os files dentro da pasta object (nem se se funciona dessa forma ou não). Share this post Link to post Share on other sites
Share this post
Link to post
Share on other sites