Have Fun
Update with full quest:
Information:
Update with full quest:
PHP Code:
state start begin
when 71002.use begin
say_title("Status Reset Document:")
say("")
say("This document make it possible to forget everything.")
say("It concerns your whole state. It's not possible")
say("to return.")
say("")
say_reward("Do you want to continue?")
local s = select("Yes", "No")
if 2 == s then
return
end
say_title("Status Reset Document:")
say("")
say("Your memory will be erased, you will forget")
say("everything about your status. You have")
say("chance at a new beginning.")
say("")
say_reward("Do you agree?")
local c = select("Yes", "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")
end
when 71003.use begin
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_title("Skill Reset Document:")
say("")
say("There are no skills who you can be")
say("redistributed.")
say("")
return
end
say_title("Skill Reset Document:")
say("")
say("Choose a skill how you want to redistribute.")
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("Skill Reset Document:")
say("")
say("This document make it possible to redeploy")
say("one of your skills, for any skill how you")
say("redistributed you can get a maximum of")
say("17 skill points.")
say(string.format("You choose to redistributed: %s .", name))
say("")
say_reward("Do you agree?")
local s = select("Yes", "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)
end
when 71103.use or 71104.use or 71105.use or 71106.use begin
local name = {"VIT", "INT", "STR", "DEX"}
local idx = item.get_vnum() - 71103
local func = { pc.get_ht, pc.get_iq, pc.get_st, pc.get_dx }
if func[idx+1]() == 1 then
say_title("Redistribution "..name[idx+1]..":")
say("")
say("The points of "..name[idx+1].." have already been reset to 1.")
return
end
say_title("Redistribution "..name[idx+1]..":")
say("")
say("This scroll make it possible to reset your")
say(""..name[idx+1].." points to 1, the points will be refunded")
say("to rearrange.")
local s = select("Yes", "No")
if 2 == s then
return
end
if pc.reset_status(idx) == true then
pc.remove_item(item.get_vnum())
else
return
end
end
end
end
Quote:
The quest is created by me. For all who tall me is from "Ymir" .