antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
Zeraw

Erro De Sintaxe Em Quest (Cofres Do Aprendiz)

Question

Bons Dias, estou a tentar aprender a mexer em Quest's mas sou muito novato ainda!Estava a modificar uma quest dos cofres do aprendiz, porém já fiz asneira, alguém sabe a solução para o código?Quest: http://pastebin.com/eXnpTaRNErro: syntax erro : [string "truhenpc . get_level ( ) &--#62;= 105"]:9 'then' expcted near 'if'truhen_zero.quest:119Abort (core dumped) (Isto acontece quando tento instalar a quest)O erro penso que esteja nesta parte do código:

when 50196.use with pc.get_level() >= 105 begin                        say("Olá, "..pc.name..".")                        say("Chegaste ao ultimo cofre, porem para abri-lo")                        say("sera necessario Gold e uma Pedra da Alma")                        say("Queres abrir o cofre?")                        local a = select ( "Sim" , "Não" )                        if a == 1 then                                if pc.money >= 3000000                                if pc.count_item("27003") >= 3                                wait()                                say("Cofre Aberto")                                pc.changegold(-3000000)                                pc.give_item2(39004, 1)  --Segenskugel                                pc.give_item2(72724, 1)  --Elixier der Sonne (M)                                pc.give_item2(76010, 3)  --Blutstein                                pc.give_item2(30319, 3)  --Schrumpfkopf                                pc.give_item2(50127, 1)  --Grüne Zaubertruhe                                pc.remove_item(50196, 1) --Großmeistertruhe verschwindet                                pc.remove_item(27003, 3) -- Retira as Pedras da Alma                        else                                say("Não tens os requisitos necessarios para abrir o cofre")                        end
Soluções chutem x)PS: Eu sei que a Pedra da Alma não tem aquele ID, mas é só para testes x)

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Correção da Quest.

Tens aí dois if's, sem then e só fazes end ao if pc.count_item, além disso coloquei o pc.money e o count_item no mesmo if para que tenha mais sentido.

Share this post


Link to post
Share on other sites
antiblock
diamwall
  • 0

Hmmm obrigado :DVou testarEDIT: Outro erro:assertion failure : nested==0O que significa?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this