Jump to content

Pedido !"""""""""Quest"""""""" Ayuda""""""""! *-*


DryUz

Recommended Posts

Mis files tiene un bug de stats necesito que con esta quest:

quest reset_scroll begin
state start begin
when 71002.use begin
---												   l
say_title("Redistribucines")
say("Esta utilidad permite")
say("La restribucion de puntos de estado.")
say("Asi podras desarrolar a tu PJ")
say("De otra manera.")
say("")
say_reward("Quieres Continuar?")
say("")

local s = select("Restablecer Puntos De Estado", "Restablecer Puntos De Estado y Magia", "Cancelar")

-- status
if 1 == s then
say_title("Advertencia:")
say("No se puede revertir este efecto.")
say("")
say_reward("Deseas Continuar?")
say("")

local d = select("Si", "No")
if 2 == d then
return
end

char_log(0, "RESET_ALL", "USE_ITEM(71002)")
pc.remove_item(71002)

char_log(0, "RESET_ALL", "RESET_STAT_POINTS")
pc.reset_point()
char_log(0, "RESET_ALL", "RESET_END")

-- beides
elseif 2 == s then
say_title("Advertencia:")
say("No se puede revertir este efecto")
say("Y perdera todas las habilidades aprendidas!")
say("")
say_reward("Deseas Continuar?")
say("")

local c = select("Si", "No")
if 2 == c then
return
end

char_log(0, "RESET_ALL", "USE_ITEM(71002)")
pc.remove_item(71002)

char_log(0, "RESET_ALL", "RESET_STAT_POINTS")
pc.reset_point()

char_log(0, "RESET_ALL", "RESET_SKILL_POINTS")
pc.clear_skill()
pc.set_skill_group(0)
char_log(0, "RESET_ALL", "RESET_END")

-- abbrechen
elseif 3 == s then
return
end
end

when 71003.use begin

---												   l
say_title("El arte de la restribucion")
say("Le permite a usted")
say("Reasignar puntos de habilidades.")

local result = BuildSkillList(pc.get_job(), pc.get_skill_group())

local vnum_list = result[1]
local name_list = result[2]

if table.getn(vnum_list) < 2 then
say("")
say_reward("No se A encontrado la habilidad!")
say("")
return
end

say("")
say_reward("Por Favor Seleccione Una Habilidad:")

local i = select_table(name_list)

if table.getn(name_list) == i then
return
end

local name = name_list[i]
local vnum = vnum_list[i]

say_title("Advertencia:")
say_reward("No se puede revertir este efecto")
say_reward("Y solo recibira 17 puntos de habilidad")
say_reward("Decide con cuidado!")
say("")
say(string.format("Deseas Continuar?", name))

local s = select("Si", "No")
if 2 == s then
return
end

char_log(0, "RESET_ONE_SKILL", "USE_ITEM(71003)")
pc.remove_item(71003)

char_log(0, "RESET_ONE_SKILL", string.format("RESET_SKILL[%s]", name))
pc.clear_one_skill(vnum)

char_log(0, "RESET_ONE_SKILL", "APPLY_17MASTER_BONUS")
pc.setqf("force_to_master_skill", 1)

say_title("Restablecido con exito!")
say(string.format("%s Se restableció correctamente.", name))
say("")

---												   l
say_reward("Has Sido restablecido con 17 puntos de habilidad.")
say("")
end
end
end

 

que quede algo asi en el lateral Puntos_Stats

lo abres y te da 1 punto o 2 depende si subes una o 2 volitas o si pasas de lv

Link to comment
Share on other sites


quest desbug_stats begin

state info begin

when letter begin

send_letter("Desbugar status")

end

when button or info begin

char_log(0, "RESET_ALL", "RESET_STAT_POINTS")

pc.reset_point()

char_log(0, "RESET_ALL", "RESET_END")

end

end

end

Link to comment
Share on other sites

lo que pasa es que tengo bug de stats en mi server osea que los pj cuando sube de lv no le dan los puntos y queria hacer una quest para que puedan poner los muntos normal o restablecerlos y que se lo den

 

tu cambiastes el nivel eso no tiene nada que ver con la quest , escribe en todas las confi

MAX_LEVEL: el nivel
Link to comment
Share on other sites

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...