Jump to content
  • 0

Super Novice Spirit change


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

 

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%

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

9 hours ago, Balfear said:

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

 

 

it worked perfectly, thank you very much

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/22/19
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/22/19
  • Last Seen:  

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...