antiblock
Rodnia | Alpha & Omega
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
Gabriel Szucs

Bug Npc Ajudem !!!

Question

Olá estou com um bug nessa quest que pede item para teleportar quando digito ./qc da error core dumped e o npc não abre as funções ajudem a arrumar por favor.

quest warpvip beginstate start begin   when 20094.chat."Mapa Vip" beginsay_title ( "Mapa Vip" )local piani2 =select ( "Mapa Vip" , "Cancelar" ) if piani2 == 1 thensay_title ( "Mapa Vip" )say ( "Para entrar no Mapa Vip " )say ( "precisa do seguinte item" )say_item ( "Anel de Thor" , 40003 , "" )say ( "Quer ir mesmo para o Mapa Vip?" ) local conferma =select ( "Sim" , "Nao" )if conferma == 1 thenif pc . count_item ( 40003 ) >= 1 thenpc . remove_item ( 40003 , 1 )elsesay_title ( "Mapa Vip" )say ( "Voce nao tem o item necessario!" )say ( "volte quando tiver!" )returnendsay_title ( "Mapa Vip" )say ( "Vai ser teleportado." )say ( "Tenha um Bom Drop !" )wait ( ) pc . warp ( 820200 , 821700 )elseif opzioni == 2 thenreturnendend

Obrigado ajudem +1

 

Té+

Share this post


Link to post
Share on other sites

6 answers to this question

  • 0
when 20094.chat."Mapa Vip" begin

Passa para:

when 20094.chat begin

Maybe?

 

Eu não sei LUA, mas acho que isso não tem muito sentido '-'

Share this post


Link to post
Share on other sites
antiblock
diamwall
  • 0
when 20094.chat."Mapa Vip" begin

Passa para:

when 20094.chat begin

Maybe?

 

Eu não sei LUA, mas acho que isso não tem muito sentido '-'

 

 

when 20094.chat."Mapa Vip" begin esta certo, é mesmo assim que se faz.

 

 

eu acho que falta um "end" no fim, mas sem testar nao te posso confirmar nada

Share this post


Link to post
Share on other sites
  • 0

when 20094.chat."Mapa Vip" begin esta certo, é mesmo assim que se faz.

 

 

eu acho que falta um "end" no fim, mas sem testar nao te posso confirmar nada

Manow coloquei mais um end no código deu core dumped e o npc não abre segue ai a print !!!

 

Imagem colocada

Share this post


Link to post
Share on other sites
  • 0

tens algum nested == 0 no teu codigo?

Share this post


Link to post
Share on other sites
  • 0

tens algum nested == 0 no teu codigo?

Não amigo nenhum.

Share this post


Link to post
Share on other sites
  • 0
quest Tp_V2 begin
state start begin
when 20093.chat."Quero Entrar na Chun" begin
if pc.count_item(71095)< 5 then
say_title ( "Guarda:" ) 
say("")
say("Preciso de 5 Passaportes para poder entrar")
say("na Gruta Chun.")
say("Retorne quando tiver os Passaportes.")
say("")
say("Boa sorte!")
elseif pc . count_item ( 71095 ) > 4 then
say_title ( "O Guardião:" ) 
say ( "" )  
say ( "Bom! " .. pc . name .. " ." ) 
say ( "Para entra na gruta será necessario" )
say_item ( "5 Passaportes" , 71095 , "" ) 
say_reward ( "Necessario para entra na gruta." )
say ( "" )
local menu = select ( "Entrar na Gruta" , "Não estou pronto" ) 
if menu == 1 then
local map = pc.get_map_index() 
local empire = pc . get_empire ( ) 
if map == 64 then
pc . remove_item ( 71095, 5)  
pc . warp ( 9900 , 1203200 )
elseif empire == 1 then
pc . remove_item ( 71095, 5)  
pc . warp ( 9900 , 1361800 )
elseif empire == 2 then
pc . remove_item ( 71095, 5)  
pc . warp ( 9900 , 1515400 ) 
elseif empire == 3 then
pc . remove_item ( 71095, 5)  
pc . warp ( 9900 , 1669000 ) 
elseif menu == 2 then 
say_title ( "O Guardião:" )
say ( "" ) 
say ( "Hum..." ) 
say ( "Volta quando tiveres coragem." )
say ( ""..pc.name.."" )
end
end
end
 
 
Rapaz usa essa quest esta a funcionar basta alterares o item que pede as falas e as cordenadas do mapa e antes de pedires ajuda Procura porque tens muitos recursos...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now