[Quest] Ayuda hacer quest

Topic created · 3 Mensajes · 538 Visitas
  • Bien estoy entando hacer la quest de las mounts e no consigo que la funcion pc.unmount me funcione.. Dejo aqui el ejemplo que hice pero no funciona jaja :T.T:

    quest javali begin
    	state start begin
    		when 71114.use begin
    			if pc.get_level() >= 25 then
    				if pc.getqf("javali") then
    					pc.mount(20110, 9999)
    					chat("Montas-te o javali com sucesso.")
    				elseif pc.getqf("javali") then
    					pc.unmount()
    				end
    			else
    				chat("O seu nivel é inferior a 25!")
    			end
    		end
    	end
    end
  • En vez de unmount pon

    pc.mount(0, 0)
    

    Mirando tu quest:

    if pc.getqf("javali") then
                   pc.mount(20110, 9999)
                   chat("Montas-te o javali com sucesso.")
                elseif pc.getqf("javali") then
                   pc.unmount()
                end
    

    Esto no hace nada xD hace lo mismo las 2 veces:

    if pc.getqf("javali") then 
    
    elseif pc.getqf("javali") then
    

    Que quieres que haga esto? en todo caso sería así:

    quest pepineitor begin
           state start begin
              when 71114.use begin
                 if pc.get_level() >= 25 then
                    if pc.getqf("javali") == 0 then
                       pc.mount(20110, 9999)
                       chat("Estas sobre un jabalí by Pepineitor.")
                       pc.setqf("javali", 1)
                    elseif pc.getqf("javali") == 1 then
                       pc.setqf("javali", 0)
                       pc.unmount()
                    end
                 else
                    chat("Tu nivel es inferior a 25)
                 end
              end
           end
    end
    

    Salu2.

  • @pepineitor said:

    En vez de unmount pon

    pc.mount(0, 0)
    

    Mirando tu quest:

    if pc.getqf("javali") then
                   pc.mount(20110, 9999)
                   chat("Montas-te o javali com sucesso.")
                elseif pc.getqf("javali") then
                   pc.unmount()
                end
    

    Esto no hace nada xD hace lo mismo las 2 veces:

    if pc.getqf("javali") then 
    
    elseif pc.getqf("javali") then
    

    Que quieres que haga esto? en todo caso sería así:

    quest pepineitor begin
           state start begin
              when 71114.use begin
                 if pc.get_level() >= 25 then
                    if pc.getqf("javali") == 0 then
                       pc.mount(20110, 9999)
                       chat("Estas sobre un jabalí by Pepineitor.")
                       pc.setqf("javali", 1)
                    elseif pc.getqf("javali") == 1 then
                       pc.setqf("javali", 0)
                       pc.unmount()
                    end
                 else
                    chat("Tu nivel es inferior a 25)
                 end
              end
           end
    end
    

    Salu2.

    Gracias yo soy noob en quests, me funciono esso pero te faltaba un " jajaja :wiii: