Jump to content

Alguien me ayuda a corregir esta quest por favor


xLordneji

Mensajes recomendados

La instalé y todo pero al ir al chico del establo (20349) no aparece la opción, no se si le falte algo la verdad no conozco mucho de quests, gracias

Función: Para conseguir el caballo militar deberás tener 20 medallas de caballo, ir al chico del establo y entregarselas, si las tienes te da el caballo militar.

La quest está hecha por Dilong (Gracias a el por hacermela)

quest horse_levelup begin
state start begin
when 20349.chat."subir nivel caballo" with pc.getqf("levelup")== 1 begin
say("texto")
local mision = select("Si","En otra ocasion")
if mision == 1 then
  if horse.get_level() == 21 then
    say("el caballo ya esta en el nivel 21")
    return end
  say("texto")
  pc.setqf("levelup",1)
  pc.setqf("medalla",1)
  pc.setqf("drop",1)
  return
  end
end
when 101.kill with pc.getqf("drop")== 1 begin
local item = number(1, 100)
if item <= 5 then
game.drop_item_with_ownership(50050,1)
end
end
when 20349.chat."medallas conseguidas" with pc.getqf("medalla")== 1 begin
local medallas = select("subir caballo","despues")
if medallas == 1 then
if pc.count_item(50050) < 20 then
  say("no tienes las medallas")
  return end
  pc.remove_item(50050,20)
  horse.set_level(21)
pc.give_item2(50053,1)
  pc.setqf("drop",0)
  pc.setqf("medalla",0)
  return
  end
end
end
end

Enlace para comentar
Compartir en otros sitios

Por lo que veo has editado mal el codigo de la quest, para empezar tocaste los set y getqf

Mira

Spoiler

quest horse_levelup begin
state start begin
when npcid.chat."subir nivel caballo" with pc.getqf("levelup")== 0 begin -- El getqf no se toca
say("texto")
local mision = select("Si","En otra ocasion")
if mision == 1 then
  if horse.get_level() == 21 then
    say("el caballo ya esta en el nivel 21")
    return end
  say("texto")
  pc.setqf("levelup",1) -- No tocar
  pc.setqf("medalla",1) -- No tocar
  pc.setqf("drop",1) -- No tocar
  return
  end
end
when idmob.kill with pc.getqf("drop")== 1 begin -- el getqf no se toca
local item = number(1, 100)
if item <= 5 then
game.drop_item_with_ownership(vnumitem,1)
end
end
when npcid.chat."medallas conseguidas" with pc.getqf("medalla")== 1 begin -- el getqf no se toca
local medallas = select("subir caballo","despues")
if medallas == 1 then
if pc.count_item(vnumitem) < 20 then
  say("no tienes las medallas")
  return end
  pc.remove_item(vnumitem,20)
  horse.set_level(21)
pc.give_item2(vnumlibro,1)
  pc.setqf("drop",0) -- No tocar
  pc.setqf("medalla",0) -- No tocar
  return
  end
end

 

 

Enlace para comentar
Compartir en otros sitios

hace 1 hora, Dilong dijo:

Por lo que veo has editado mal el codigo de la quest, para empezar tocaste los set y getqf

Mira

Debes iniciar sesión para ver el contenido del enlace en esta publicación.
Ocultar contenido


quest horse_levelup begin
state start begin
when npcid.chat."subir nivel caballo" with pc.getqf("levelup")== 0 begin -- El getqf no se toca
say("texto")
local mision = select("Si","En otra ocasion")
if mision == 1 then
  if horse.get_level() == 21 then
    say("el caballo ya esta en el nivel 21")
    return end
  say("texto")
  pc.setqf("levelup",1) -- No tocar
  pc.setqf("medalla",1) -- No tocar
  pc.setqf("drop",1) -- No tocar
  return
  end
end
when idmob.kill with pc.getqf("drop")== 1 begin -- el getqf no se toca
local item = number(1, 100)
if item <= 5 then
game.drop_item_with_ownership(vnumitem,1)
end
end
when npcid.chat."medallas conseguidas" with pc.getqf("medalla")== 1 begin -- el getqf no se toca
local medallas = select("subir caballo","despues")
if medallas == 1 then
if pc.count_item(vnumitem) < 20 then
  say("no tienes las medallas")
  return end
  pc.remove_item(vnumitem,20)
  horse.set_level(21)
pc.give_item2(vnumlibro,1)
  pc.setqf("drop",0) -- No tocar
  pc.setqf("medalla",0) -- No tocar
  return
  end
end

 

 

Gracias!!

Enlace para comentar
Compartir en otros sitios

  • Dilong locked this tema
Guest
Este tema está cerrado a otras respuestas.
  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...