Jump to content

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

if it were that simple I would have done it :) here is my quest :

 

quest reset_scroll begin
    state start begin
when 71002.use or 76001.use  begin
say_title(gameforge.reset_scroll._10_sayTitle)


say(gameforge.reset_scroll._20_say)
local s =  select(gameforge.locale.guild.yes, gameforge.locale.guild.no)
if 2 == s then
return
end


say_title(gameforge.reset_scroll._30_sayTitle)


say(gameforge.reset_scroll._40_say)
local c =  select(gameforge.locale.guild.yes, gameforge.locale.guild.no)
if 2 == c then
return
end


char_log(0, "RESET_ALL", "USE_ITEM(71002 or 76001)")
            
item.remove()
pc.clear_skill()
            pc.set_skill_group(0)
char_log(0, "RESET_ALL", "RESET_STAT_POINTS")
pc.reset_point()
char_log(0, "RESET_ALL", "RESET_END")
end


when 71003.use begin
say_title(gameforge.reset_scroll._50_sayTitle)
            say(gameforge.reset_scroll._60_sayReward)
            wait()


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(gameforge.reset_scroll._50_sayTitle)
say(gameforge.reset_scroll._70_say)
return
end


say_title(gameforge.reset_scroll._50_sayTitle)
say(gameforge.reset_scroll._80_say)
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(gameforge.reset_scroll._50_sayTitle)


say(gameforge.reset_scroll._90_sayReward)
say_reward(string.format(gameforge.reset_scroll._100_say, name))


local s =  select(gameforge.locale.guild.yes, gameforge.locale.guild.no)
if 2 == s then
return
end


say_title(gameforge.reset_scroll._110_sayTitle)


say(gameforge.reset_scroll._120_say)
local c =  select(gameforge.locale.guild.yes, gameforge.locale.guild.no)


if 2 == c then
return
end


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


char_log(0, "RESET_ONE_SKILL", "RESET_SKILL["..name.."]")
pc.clear_one_skill(vnum)


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


say_title(gameforge.reset_scroll._140_sayTitle)
say_reward(string.format(gameforge.reset_scroll._150_say, name))
end
end
end

what I have to edit ?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.