Jump to content
  • 0

effect of an active skill on an item all time


IsabelaFernandez

Question


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

hi collaborators.
I would like to know how to configure this same script of item_db ID 2199 (Ahura Mazdah) { sc_start4 SC_ENDURE,60000,10,0,0,1; },{ sc_end SC_ENDURE; } as an example of the skill Endure to be active all the time the skill SL_KAITE (465)
I tried setting: { sc_start4 SC_ENDURE,60000,10,0,0,1; sc_start4 SC_KAITE,60000,7,0,0,1; },{ sc_end SC_ENDURE; sc_end SC_KAITE; }
but it didn't work, just the "visual" effect. 

DETAIL: (visual effect lasts a short time after the effect of the skill "Kaite" is added)

taking advantage of the subject of the skill "Kaite" I made the changes in src/skill.cpp but it didn't work.

Spoiler
	if( sc->data[SC_KAITE] && (src->type == BL_PC || status_get_lv(src) <= 80)
#ifdef RENEWAL
		&& type // Does not reflect AoE
#endif
		) {
		// Kaite only works against non-players if they are low-level.
		// Kyomu doesn't disable Kaite, but the "skill fail chance" part of Kyomu applies to it.
		clif_specialeffect(bl, EF_ATTACKENERGY2, AREA);
		if( --sc->data[SC_KAITE]->val2 <= 0 )
			status_change_end(bl, SC_KAITE, INVALID_TIMER);
		return 2;
	}

I changed the return 2; to return 1; and continues not reflecting in area.

Edited by IsabelaFernandez
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

Try change 60000 to 8640000

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:  

58 minutes ago, Start_ said:

Try change 60000 to 8640000

what about the issue of reflecting area damage?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

try

Spoiler

The duration of the status is given in <ticks>, or milleseconds.
Use INFINITE_TICK for infinite duration.

 

  • Upvote 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:  

4 hours ago, Mahiro said:

try

  Hide contents

The duration of the status is given in <ticks>, or milleseconds.
Use INFINITE_TICK for infinite duration.

 

like this?

{ sc_start4 SC_KAITE,60000,7,0,0,1; },{ INFINITE_TICK SC_KAITE; }

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

4 hours ago, IsabelaFernandez said:

like this?

{ sc_start4 SC_KAITE,60000,7,0,0,1; },{ INFINITE_TICK SC_KAITE; }

 

{ sc_start4 SC_KAITE,INFINITE_TICK,7,0,0,1; },{ sc_end SC_KAITE; }

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:  

On 4/10/2022 at 8:17 PM, Mahiro said:

 

{ sc_start4 SC_KAITE,INFINITE_TICK,7,0,0,1; },{ sc_end SC_KAITE; }

 

erorr.png

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