Error Quest

Topic created · 3 Mensajes · 331 Visitas
  • Miren esta quest y porfas diganme donde esta el error

    quest move_ring begin
        state start begin
            when 80009.use begin
    			say_title ("Bienvenido")
    			local a = select("Almacen", "Teletransporte", "No mejor despues")
    			if a == 1 then
    			say_title("By DjZed")
    			say("Buenas joven guerrero,")
    			say("Deseas abrir el Almacen?")
    			local b = select ( "Si" , "No" )
    			if b == 1 then
    			game . open_safebox ( )
    			else b == 2 then
    			end
    			if a == 2 then
    			say("Ola")
    			say("Aqui toy")
    			local warp = select("Citis 1", "Citis 2", "Cancelar")
    			if warp == 1 then
    			if empire == 1 then
    				pc.warp(474300,954800)
    			elseif empire == 2 then
    				pc.warp(63800,166400)
    			elseif empire == 3 then
    				pc.warp(959900,269200)
    				end
    					end	
    			else warp == 2 then
    			if empire == 1 then
    				pc.warp(353100,882900)
    			elseif empire == 2 then
    				pc.warp(145500,240000)
    			elseif empire == 3 then
    				pc.warp(863900,246000)
    					end
    						end	
    if a == 3 then
    say("OK")
    end
    end 
    end
    end
  • eso eso siga preguntando asi que me esats dando una buena practica con las quest :wiii:

    aca te dejo la que hice y no me dio error, pruebala a ver que tal te va.

    quest move_ring2 begin 
        state start begin 
            when 80009.use begin  
                    say_title("Bienvenido:") 
    				say("")
                    local s = select("Almacen","Teletransportar","salir") 
                if s == 1 then 
    					say_title("Anillo")
    					 say("Buenas joven guerrero,")
    					 say("Deseas abrir el Almacen?")
    						 local b = select ( "Si" , "No" )
    								if b == 1 then
    									game . open_safebox ( ) 
    								end  
    								if b == 2 then	
    								end
    				if s == 2 then 
    					say("Ola")
    					 say("Aqui toy")
    					 local c = select("Citis 1", "Citis 2", "Cancelar") 
    						if c == 1 then
    						
    							local empire = pc.get_empire()
    
    								if empire == 1 then
    										pc.warp(474300,954800)
    									elseif empire == 2 then
    										pc.warp(63800,166400)
    									elseif empire == 3 then
    										pc.warp(959900,269200)
    								end
    						end
    
    								if c == 2 then
    									local empire = pc.get_empire()
    
    										if empire == 1 then
    											pc.warp(353100,882900)
    										 elseif empire == 2 then
    											pc.warp(145500,240000)
    										 elseif empire == 3 then
    											pc.warp(863900,246000)
    										end
    								end		
    								
    									if c == 3 then
    									return
    									end
    
    						
    				end			
                end 
            end 
        end 
    end
  • men si no me dio error la quest y gracias ya que DjZed se ofendio por la otra quest que me ayudaste!