antiblock
diamwall
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
(Adm)Santos

Syntax Error - 2

Question

Pus me aqui a tentar inventar uma quest mas nao tenho jeito nenhum pra isto fdc

Mais uma vez venho recorrer a vossa ajuda!

 

test.quest:50:syntax error : [string ¨start¨] :30: unexpected symbol near  *then*

(core dump)

 

quest teste begin
    state start begin
        when 20002.chat."Comprar Traje" begin
                say("")
                say("Olá,")
                say("Hum vejo que procuras por um traje que esconda")
                say("a tua armadura, para que os inimigos não saibam")
                say("o que trases equipado...")
                say("Posso fazer um para ti, mas infelizmente preciso")
                say("de algum yang para pagar os materiais que vou")
                say("utilizar. Penso que 1.000.000 Yang será suficiente.")
                say("")
                wait()
                say_title("Lista de Trajes Disponiveis:")
                say("")
                say_item("Guerreiro do Deserto (M)", 41003, "")
                say("")
                wait()
                say("")
                say_item("Guerreira do Deserto (F)", 41004, "")
                say("")
                wait()
                say("")
                say_item("Guerreiro Deserto(Preto)", 41311, "")
                say("")
                wait()
                say("")
                say_item("Guerreira Deserto(Preto)", 41312, "")
                say("")
                wait()
                say("Queres comprar algum dos meus trajes?")
                say("")
                local s = select ("Sim","Não")== 1 then
                      if pc.get_gold() < 1000000 then
                say("Nao tens yang necessario.")
                returnend
                say("Escolhe o traje que desejas:")
                local s = select("Traje do Deserto - Masculino","Traje do Deserto - Femenino","Traje do Deserto Negro - Masculino","Traje do Deserto Negro - Feminino")
                      if s < 5 then
                 pc.changegold(-1000000)
                 pc.give_item2(({41003,41004,41311,41312}),1)
                 say_title("Aranyo:")
                 say("")
                 say("Muito bem, aqui tens o teu traje!") 
                 say("Espero que gostes, ele vai ajudar a esconder a")
                 say("tua armadura da vista dos inimigos.")
                 say("")
          end
     end
end

Share this post


Link to post
Share on other sites

16 answers to this question

antiblock
Rodnia | Alpha & Omega
  • 0

Tenta por +1 end, ou retirar 1 end

com menos um end no virtual box nao finaliza e com mais um end da o mesmo erro

Share this post


Link to post
Share on other sites
  • 0
say("Nao tens yang necessario.")
                returnend

Para

say("Nao tens yang necessario.")
                return
                end

Share this post


Link to post
Share on other sites
  • 0
say("Nao tens yang necessario.")
                returnend

Para

say("Nao tens yang necessario.")
                return
                end

 

segmentation fault (core dumped)

Share this post


Link to post
Share on other sites
  • 0

segmentation fault (core dumped)

penso que seja aqui

 

  if s < 5 then

                 pc.changegold(-1000000)

 

mete   if s < 5 then

                 pc.changegold(pc.get_gold(-1000000))

 

sem esquecer a correção do miguelsousa

Share this post


Link to post
Share on other sites
  • 0

penso que seja aqui

 

  if s < 5 then

                 pc.changegold(-1000000)

 

mete   if s < 5 then

                 pc.changegold(pc.get_gold(-1000000))

 

sem esquecer a correção do miguelsousa

 

segmentation fault (core dumped) igual

Share this post


Link to post
Share on other sites
  • 0

segmentation fault (core dumped) igual

if s < 5 then

 

´mete if s < 4 then

Share this post


Link to post
Share on other sites
  • 0

if s < 5 then

 

´mete if s < 4 then

 

continua sem dar ... caga se souberem de uma quest parecida a esta deixem aqui

Share this post


Link to post
Share on other sites
  • 0

ah ja sei lol o if s < 4

 

não podes usar <, tens de usar == porque é um select

Share this post


Link to post
Share on other sites
  • 0
quest teste begin

state start begin

when 20002.chat."Comprar Traje" begin

say("")

say("Olá,")

say("Hum vejo que procuras por um traje que esconda")

say("a tua armadura, para que os inimigos não saibam")

say("o que trases equipado...")

say("Posso fazer um para ti, mas infelizmente preciso")

say("de algum yang para pagar os materiais que vou")

say("utilizar. Penso que 1.000.000 Yang será suficiente.")

say("")

wait()

say_title("Lista de Trajes Disponiveis:")

say("")

say_item("Guerreiro do Deserto (M)", 41003, "")

say("")

wait()

say("")

say_item("Guerreira do Deserto (F)", 41004, "")

say("")

wait()

say("")

say_item("Guerreiro Deserto(Preto)", 41311, "")

say("")

wait()

say("")

say_item("Guerreira Deserto(Preto)", 41312, "")

say("")

wait()

say("Queres comprar algum dos meus trajes?")

say("")

local s = select ("Sim","Não")

if s == 2 then

return

elseif s == 1 then

if pc.get_gold() < 1000000 then

say("Nao tens yang necessario.")

                return

end

else

say("Escolhe o traje que desejas:")

local s2 = select("Traje do Deserto - Masculino","Traje do Deserto - Femenino","Traje do Deserto Negro - Masculino","Traje do Deserto Negro - Feminino")

if s == 4 then

            pc.changegold(pc.get_gold(-1000000))

pc.give_item2(({41003,41004,41311,41312})[s2],1)

say_title("Aranyo:")

say("")

say("Muito bem, aqui tens o teu traje!")

say("Espero que gostes, ele vai ajudar a esconder a")

say("tua armadura da vista dos inimigos.")

say("")

end

end

end

 

assim_

continua a dar erro

Share this post


Link to post
Share on other sites
  • 0

quest teste begin

state start begin

when 20002.chat."Comprar Traje" begin

say("")

say("Olá,")

say("Hum vejo que procuras por um traje que esconda")

say("a tua armadura, para que os inimigos não saibam")

say("o que trases equipado...")

say("Posso fazer um para ti, mas infelizmente preciso")

say("de algum yang para pagar os materiais que vou")

say("utilizar. Penso que 1.000.000 Yang será suficiente.")

say("")

wait()

say_title("Lista de Trajes Disponiveis:")

say("")

say_item("Guerreiro do Deserto (M)", 41003, "")

say("")

wait()

say("")

say_item("Guerreira do Deserto (F)", 41004, "")

say("")

wait()

say("")

say_item("Guerreiro Deserto(Preto)", 41311, "")

say("")

wait()

say("")

say_item("Guerreira Deserto(Preto)", 41312, "")

say("")

wait()

say("Queres comprar algum dos meus trajes?")

say("")

local s = select ("Sim","Não")

if s == 2 then

return

elseif s == 1 then

if pc.get_gold() < 1000000 then

say("Nao tens yang necessario.")

                return

end

else

say("Escolhe o traje que desejas:")

local s2 = select("Traje do Deserto - Masculino","Traje do Deserto - Femenino","Traje do Deserto Negro - Masculino","Traje do Deserto Negro - Feminino")

if s == 4 then

            pc.changegold(pc.get_gold(-1000000))

pc.give_item2(({41003,41004,41311,41312})[s2],1)

say_title("Aranyo:")

say("")

say("Muito bem, aqui tens o teu traje!")

say("Espero que gostes, ele vai ajudar a esconder a")

say("tua armadura da vista dos inimigos.")

say("")

end

end

end

 

assim_

continua a dar erro

 [spoiler] --- [ENTER] [code] [QUEST] [/code] [ENTER] --- [/spoiler] 

POR FAVOR

Share this post


Link to post
Share on other sites
  • 0

quest teste begin
state start begin
when 20002.chat."Comprar Traje" begin
say("")
say("Olá,")
say("Hum vejo que procuras por um traje que esconda")
say("a tua armadura, para que os inimigos não saibam")
say("o que trases equipado...")
say("Posso fazer um para ti, mas infelizmente preciso")
say("de algum yang para pagar os materiais que vou")
say("utilizar. Penso que 1.000.000 Yang será suficiente.")
say("")
wait()
say_title("Lista de Trajes Disponiveis:")
say("")
say_item("Guerreiro do Deserto (M)", 41003, "")
say("")
wait()
say("")
say_item("Guerreira do Deserto (F)", 41004, "")
say("")
wait()
say("")
say_item("Guerreiro Deserto(Preto)", 41311, "")
say("")
wait()
say("")
say_item("Guerreira Deserto(Preto)", 41312, "")
say("")
wait()
say("Queres comprar algum dos meus trajes?")
say("")
local s = select ("Sim","Não")
if s == 2 then
return
elseif s == 1 then
if pc.get_gold() < 1000000 then
say("Nao tens yang necessario.")
return
end
else
say("Escolhe o traje que desejas:")
local s2 = select("Traje do Deserto - Masculino","Traje do Deserto - Femenino","Traje do Deserto Negro - Masculino","Traje do Deserto Negro - Feminino")
if s == 4 then
pc.changegold(pc.get_gold()-100000)
pc.give_item2(({41003,41004,41311,41312})[s2],1)
say_title("Aranyo:")
say("")
say("Muito bem, aqui tens o teu traje!")
say("Espero que gostes, ele vai ajudar a esconder a")
say("tua armadura da vista dos inimigos.")
say("")
end
end
end

Share this post


Link to post
Share on other sites
  • 0

quest teste begin

state start begin

when 20002.chat."Comprar Traje" begin

say("")

say("Olá,")

say("Hum vejo que procuras por um traje que esconda")

say("a tua armadura, para que os inimigos não saibam")

say("o que trases equipado...")

say("Posso fazer um para ti, mas infelizmente preciso")

say("de algum yang para pagar os materiais que vou")

say("utilizar. Penso que 1.000.000 Yang será suficiente.")

say("")

wait()

say_title("Lista de Trajes Disponiveis:")

say("")

say_item("Guerreiro do Deserto (M)", 41003, "")

say("")

wait()

say("")

say_item("Guerreira do Deserto (F)", 41004, "")

say("")

wait()

say("")

say_item("Guerreiro Deserto(Preto)", 41311, "")

say("")

wait()

say("")

say_item("Guerreira Deserto(Preto)", 41312, "")

say("")

wait()

say("Queres comprar algum dos meus trajes?")

say("")

local s = select ("Sim","Não")

if s == 2 then

return

elseif s == 1 then

if pc.get_gold() < 1000000 then

say("Nao tens yang necessario.")

return

end

else

say("Escolhe o traje que desejas:")

local s2 = select("Traje do Deserto - Masculino","Traje do Deserto - Femenino","Traje do Deserto Negro - Masculino","Traje do Deserto Negro - Feminino")

if s == 4 then

pc.changegold(pc.get_gold()-100000)

pc.give_item2(({41003,41004,41311,41312})[s2],1)

say_title("Aranyo:")

say("")

say("Muito bem, aqui tens o teu traje!")

say("Espero que gostes, ele vai ajudar a esconder a")

say("tua armadura da vista dos inimigos.")

say("")

end

end

end

 

quest teste begin
state start begin
when 20002.chat."Comprar Traje" begin
say("")
say("Olá,")
say("Hum vejo que procuras por um traje que esconda")
say("a tua armadura, para que os inimigos não saibam")
say("o que trases equipado...")
say("Posso fazer um para ti, mas infelizmente preciso")
say("de algum yang para pagar os materiais que vou")
say("utilizar. Penso que 1.000.000 Yang será suficiente.")
say("")
wait()
say_title("Lista de Trajes Disponiveis:")
say("")
say_item("Guerreiro do Deserto (M)", 41003, "")
say("")
wait()
say("")
say_item("Guerreira do Deserto (F)", 41004, "")
say("")
wait()
say("")
say_item("Guerreiro Deserto(Preto)", 41311, "")
say("")
wait()
say("")
say_item("Guerreira Deserto(Preto)", 41312, "")
say("")
wait()
say("Queres comprar algum dos meus trajes?")
say("")
local s = select ("Sim","Não")
if s == 2 then
return
else
if s == 1 then
if pc.get_gold() < 1000000 then
say("Nao tens yang necessario.")
return
end
else
say("Escolhe o traje que desejas:")
local s2 == select("Traje do Deserto - Masculino","Traje do Deserto - Femenino","Traje do Deserto Negro - Masculino","Traje do Deserto Negro - Feminino")
if s2 == 4 then
pc.changegold(pc.get_gold()-100000)
pc.give_item2(({41003,41004,41311,41312})[s2],1)
say_title("Aranyo:")
say("")
say("Muito bem, aqui tens o teu traje!")
say("Espero que gostes, ele vai ajudar a esconder a")
say("tua armadura da vista dos inimigos.")
say("")
end
end
end
[/spoiler]

Share this post


Link to post
Share on other sites
  • 0

 

quest teste begin
state start begin
when 20002.chat."Comprar Traje" begin
say("")
say("Olá,")
say("Hum vejo que procuras por um traje que esconda")
say("a tua armadura, para que os inimigos não saibam")
say("o que trases equipado...")
say("Posso fazer um para ti, mas infelizmente preciso")
say("de algum yang para pagar os materiais que vou")
say("utilizar. Penso que 1.000.000 Yang será suficiente.")
say("")
wait()
say_title("Lista de Trajes Disponiveis:")
say("")
say_item("Guerreiro do Deserto (M)", 41003, "")
say("")
wait()
say("")
say_item("Guerreira do Deserto (F)", 41004, "")
say("")
wait()
say("")
say_item("Guerreiro Deserto(Preto)", 41311, "")
say("")
wait()
say("")
say_item("Guerreira Deserto(Preto)", 41312, "")
say("")
wait()
say("Queres comprar algum dos meus trajes?")
say("")
local s = select ("Sim","Não")
if s == 2 then
return
else
if s == 1 then
if pc.get_gold() < 1000000 then
say("Nao tens yang necessario.")
return
end
else
say("Escolhe o traje que desejas:")
local s2 == select("Traje do Deserto - Masculino","Traje do Deserto - Femenino","Traje do Deserto Negro - Masculino","Traje do Deserto Negro - Feminino")
if s2 == 4 then
pc.changegold(pc.get_gold()-100000)
pc.give_item2(({41003,41004,41311,41312})[s2],1)
say_title("Aranyo:")
say("")
say("Muito bem, aqui tens o teu traje!")
say("Espero que gostes, ele vai ajudar a esconder a")
say("tua armadura da vista dos inimigos.")
say("")
end
end
end
[/spoiler]

deu?

Share this post


Link to post
Share on other sites
  • 0

deu?

Não mano, nao sabes de nenhuma quest assim parecida onde eu possa ver o que falta_ deve faltar algo na quest ja tentei de tudo

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
Sign in to follow this