Jump to content
  • 0

effect of an active skill on an item all time


Question

Posted (edited)

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

6 answers to this question

Recommended Posts

  • 0
Posted
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; }

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