Jump to content
  • 0
Sign in to follow this  
Rumor

rewriting stat reset quest

Question

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.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    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.