Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

  • 0
Posted
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
  • 0
Posted (edited)
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
  • 0
Posted
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?

  • 0
Posted
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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...