Jump to content

rewriting stat reset quest


Recommended Posts

The stat reset is bugged on 34083 (I'm told only if your maximum level is set high enough). Players don't receive all of their stat points when resetting. I want to re-write this quest to give them points.
 

quest reset_scroll begin
state start begin
when 71002.use begin
say_title("Reset Scroll")
say("You can use this scroll to") 
say("reset stats or skills.")
say("")
say("Want to proceed?")
say("")

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

say_title("Choose your Type of reset!")

local l = select("Reset Skills", "Reset Stats", "Cancel!")
		if l == 1 then
			char_log(0, "RESET_ALL", "USE_ITEM(71002)")
			pc.remove_item(71002)

			char_log(0, "RESET_ALL", "RESET_SKILL_POINTS")
			pc.clear_skill()
			pc.set_skill_group(0)
			char_log(0, "RESET_ALL", "RESET_END")
		elseif l == 2 then
			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")
		elseif l == 3 then
			return
end
end

So I want the "if l == 1" statement to set their status points to 380 or set DEX/INT/STR/CON to 95 each.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

The stat reset is bugged on 34083 (I'm told only if your maximum level is set high enough). Players don't receive all of their stat points when resetting. I want to re-write this quest to give them points.

 

quest reset_scroll begin
state start begin
when 71002.use begin
say_title("Reset Scroll")
say("You can use this scroll to") 
say("reset stats or skills.")
say("")
say("Want to proceed?")
say("")

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

say_title("Choose your Type of reset!")

local l = select("Reset Skills", "Reset Stats", "Cancel!")
		if l == 1 then
			char_log(0, "RESET_ALL", "USE_ITEM(71002)")
			pc.remove_item(71002)

			char_log(0, "RESET_ALL", "RESET_SKILL_POINTS")
			pc.clear_skill()
			pc.set_skill_group(0)
			char_log(0, "RESET_ALL", "RESET_END")
		elseif l == 2 then
			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")
		elseif l == 3 then
			return
end
end

So I want the "if l == 1" statement to set their status points to 380 or set DEX/INT/STR/CON to 95 each.

 

I think the 2nd will change status points to default.

If you want default points to 380 you have to edit in char.pp in this void:

void CHARACTER::ResetPoint(int iLv)

Search for this:

PointChange(POINT_STAT, 270 - GetPoint(POINT_STAT));

Change 270 to 380.

 

Regards

Why so serious?

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



  • Similar Content

  • Activity

    1. 0

      Moving server from FreeBSD 11.2 to 13.2 - lib needed

    2. 0

      I just implemented some costumes and they are not visible

    3. 0

      Skill Tree Problem

    4. 97

      Ulthar SF V2 (TMP4 Base)

    5. 5

      Client Crashes through Offline Shop (Ikarus)

    6. 5

      VIVY-WORLD2 - FARM TO THE TOP

    7. 0

      ToolTip Bug?

    8. 0

      Skill tree build erorr

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.