antiblock
https://i.imgur.com/aJ17bf7.gif
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
єxŧєrмiηαŧєr

Quest Error

Question

Boa noite eu fiz esta quest mas nao sei algumas coisas se podesem ajudar e a quest da erro de syntax

Spoiler

quest Mestre begin
    state start begin
        when 20095.click begin

            local mestre = select("OldEliteMt2 Bank"; "Fechar")

            if mestre == 1 then
            
                say_title("OldEliteMt2 Bank")
                
                local bank = select("Pedir Cheque"; "Depositar Cheque"; "Fechar")
            
            if bank == 1 then
            
                pc.give_item2(95002, 1)
                
                pc.change_gold(-1000000000)
                
                return
                
                end
                
            elseif mestre == 2 then
            
            elseif bank = 2 then
            
                    item.remove(95002, 1)
                    
                    pc.change_gold(1000000000)
                    
                    return
                    
                    end
                    
            elseif bank == 3 then
            
                return
                
                end
                
            if mestre == 2 then
            
                return
                
                end
            end
        end
    end
end
end                

se podesse adicionar a funçao para se ele nao tivesse o item nao lhe dar o dinheiro e se ele nao tivesse o dinheiro nao lhe dar o item Cumprimentos

Share this post


Link to post
Share on other sites

6 answers to this question

  • 0

select("Pedir Cheque"; "Depositar Cheque"; "Fechar")

Não devia ser

select("Pedir Cheque", "Depositar Cheque", "Fechar")

?

 

elseif bank = 2 then

passa a

if bank = 2 then

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif
  • 0

tá ki qualquer bug avisa

 

quest mestre begin
	state start begin
		when 20095.chat."Sistema de Banco" begin -- when chat fica melhor do que o begin na minha opinião
			local mestre = select("OldEliteMt2 Bank", "Fechar") 
				if mestre == 1 then
					say_title("OldEliteMt2 Bank")
					local bank = select("Pedir Cheque", "Depositar Cheque", "Fechar")	
						if bank == 1 then	
							local cost = 1000000000
							if pc.get_gold() < cost then
								say("não tens o Yang necessário")
							else
								pc.give_item2(95002, 1)
                
								pc.change_gold(pc.get_gold()-1000000000)
							end
						elseif bank == 2 then
							if pc.count_item(95002) > 0 then
							
								item.remove(95002, 1)
                    
								pc.change_gold(pc.get_gold()+1000000000)
							else
								say("o cheque mano?")
								say("tas me a tentar enganar?")
							end
						elseif bank == 3 then
							return
						end
				else
					return
				end
		end
	end
end

 

Edited by (REB)Kranio (see edit history)

Share this post


Link to post
Share on other sites
  • 0
1 minuto atrás, Annie disse:

select("Pedir Cheque"; "Depositar Cheque"; "Fechar")

Não devia ser

select("Pedir Cheque", "Depositar Cheque", "Fechar")

?

sim enganei me ja corrigi mas da erro de syntax na mesma

Share this post


Link to post
Share on other sites
  • 0
7 minutos atrás, (REB)Kranio disse:

usa a quest que meti ai em cima

ja deu obrigado +1

Edited by єxŧєrмiηαŧєr
o arquivo nao salvou (see edit history)

Share this post


Link to post
Share on other sites
  • 0
Em 22/11/2016 at 21:47, єxŧєrмiηαŧєr disse:

ja deu obrigado +1

blz

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