Jump to content
  • 0
IsabelaFernandez

Super Novice Spirit change

Question

5 answers to this question

Recommended Posts

  • 0
21 hours ago, IsabelaFernandez said:

 

Hello friends, I would like to edit the value of this skilll in this part:

•If the target is above Job Lv70, each link has an 1% chance to erase its death record.

 

1% to 100%

src/map/skill.cpp
find and delete this text:
if (skill_id == SL_SUPERNOVICE && dstsd && dstsd->die_counter && !(rnd()%100))

  • Love 1
Link to comment
Share on other sites

  • 0
On 1/18/2020 at 8:34 AM, Balfear said:

src/map/skill.cpp
find and delete this text:
if (skill_id == SL_SUPERNOVICE && dstsd && dstsd->die_counter && !(rnd()%100))

Hi,

Do i only delete the "red bold text" or the whole line? 

deleting "&& !(rnd()%100)" didnt work on my side. Below is my current code on the said line

		if (skill_id == SL_SUPERNOVICE && dstsd && dstsd->die_counter)
		{	//Erase death count 1% of the casts
			dstsd->die_counter = 0;
			pc_setglobalreg(dstsd, add_str(PCDIECOUNTER_VAR), 0);
			clif_specialeffect(bl, EF_ANGEL2, AREA);
			//SC_SPIRIT invokes status_calc_pc for us.
		}

 

Edited by JagLers
Link to comment
Share on other sites

  • 0
8 hours ago, JagLers said:

Hi,

Do i only delete the "red bold text" or the whole line? 

deleting "&& !(rnd()%100)" didnt work on my side. Below is my current code on the said line

Delete only && !(rnd()%100).

Did you recompile the server?

Link to comment
Share on other sites

  • 0
17 hours ago, Balfear said:

Delete only && !(rnd()%100).

Did you recompile the server?

Yes I did recompile, but the Link for SN is still not resetting the death timer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.