Sintaxis ayuda

Topic created · 4 Mensajes · 423 Visitas
  • alguien me ayuda con esto:

    syntax error : [string "startnpc . is_pc ( ) and pc . level >= 1 and pc . level < 250 a..."]:3: unexpected symbol near `when'
    example.quest:52:Abort (core dumped)
  • Si pusieras la quest sería más fácil localizar el error :icon_rolleyes:

  • esta y no logro que me saque la mision donde tendria que mostrar para canjear los puntos.

    quest example begin
    state start begin
    when kill with npc.is_pc() and pc.level >= 1 and pc.level < 250 and npc.get_empire() ~= pc.get_empire() begin
    local ciao = pc . getqf ( "DuelPoint" )
    pc . setqf ( "DuelPoint" , pc . getqf ( "DuelPoint" ) + 1 )
    when 20094.chat. "DuelPoint" begin
    say ("Ha ganado un duel point!")
    say ("Ahora usted tiene " .. Hola.. " DuelPoint")
    say ("Usted debe alcanzar el 10 DuelPoint para elegir los premios ")
    say ("")
    if pc.getqf ("DuelPoint") == 10 then
    say_title ("DuelPoint")
    local newton = select ("5Bonus", "Agregar 6 y 7 Bonus", "Cambio 6 y 7", "Perla blanca", "Perla azul", "Perla roja", "Almeja", "Annulla")
    if newton == 1 then
    pc . setqf ( "DuelPoint" , pc . getqf ( "DuelPoint" ) - 1 )
    say ("Ha Recibido 5bonus")
    pc . give_item2 ( "70024" , 1 )
    return
    end
    elseif newton == 2 then
    pc . setqf ( "DuelPoint" , pc . getqf ( "DuelPoint" ) - 2 )
    say ("Ha recibido 1 agregado 6 y 7 bonus")
    pc . give_item2 ( "71051" , 1 )
    return
    elseif newton == 3 then
    pc . setqf ( "DuelPoint" , pc . getqf ( "DuelPoint" ) - 5 )
    say ("Ha recibido 1 agregado 6 y 7 bonus")
    pc . give_item2 ( "71052" , 1 )
    return
    elseif newton == 4 then
    pc . setqf ( "DuelPoint" , pc . getqf ( "DuelPoint" ) - 15 )
    say ("Ha recibido perla blanca")
    pc . give_item2 ( "27992" , 1 )
    return
    elseif newton == 5 then
    pc . setqf ( "DuelPoint" , pc . getqf ( "DuelPoint" ) - 20 )
    say ("Ha recibido perla azul")
    pc . give_item2 ( "27993" , 1 )
    return
    elseif newton == 6 then
    pc . setqf ( "DuelPoint" , pc . getqf ( "DuelPoint" ) - 25 )
    say ("Ha recibido perla roja")
    pc . give_item2 ( "27994" , 1 )
    return
    elseif newton == 7 then
    pc . setqf ( "DuelPoint" , pc . getqf ( "DuelPoint" ) - 50 )
    say ("Ha recibido Almeja")
    pc . give_item2 ( "27987" , 1 )
    return
    end
    end
    end
    end
    end
  • no deja poner aqui la solución creo te la envio por skype