Fallo en la quest,

Topic created · 2 Mensajes · 191 Visitas
  • Alguien sabe decirme el fallo?

    local pergamino = pc . count_item ( 22010 ) 
    pc . remove_item ( 22010 , pergamino ) 
    local pergamino2 = pc . count_item ( 22000 ) 
    pc . remove_item ( 22000 , pergamino2 ) 
    if pc . get_level ( ) < 99 then 
    say ( "No tienes Suficiente Nivel. Se Requie Nivel 100!" ) 
    else 
    say_title ( "Valle del Guerrero" ) 
    say ( "En este mapa reside el guerrero antiguo" ) 
    say ( "un gran guerrero, que se enfrento al" ) 
    say ( "Dragon Rojo." ) 
    say ( "" ) 
    say ( "Si quiere ir al Valle del Guerrero " ) 
    say ( "tendra que acetar la siguiente cuestion" ) 
    if select("Quiero Intentarlo","No Quiero")
    if s == 1 then 
    say("Muy bien, introduce el nombre del Metin2:")
    if input() == "respuesta" then
    say("Muy bien. Te teletransportaré")
    wait()
    pc.warp(912300 , 912300)
    else
    say("Fallaste")
    if s == 2 then 
    return
    end 
    end 
    end
    end
  • El fallo está en:

    if s == 1 then
    

    s no lo has creado antes, no existe, por lo que no puede evaluar la condición

    PD: alguien con nivel 99 podría usar esta misión, puesto que 99 no es menor que 99. Tendrías que poner menor que 100 o menor o igual que 99 en la condición.

    Un saludo.