Jump to content
  • 0

Improve Concentration Item


Question

Posted (edited)

I've been trying to replicate the effect of Attention Concetration of archers that reveals hidden opponents. Is there a way to add this as an item script without using "useskill?" Just the part of the skill that reveals hidden units. After which I'll add my own sc_start effect and own graphic effect. I just really want to know the isolated script that will reveal hidden units after casting.

Edited by Isaiah

5 answers to this question

Recommended Posts

Posted

In status.c:

 

	case SC_CONCENTRATE:
		status_change_end(bl, SC_HIDING, -1);
		status_change_end(bl, SC_CLOAKING, -1);
		status_change_end(bl, SC_CLOAKINGEXCEED, -1);
		status_change_end(bl, SC_CAMOUFLAGE, -1);
		status_change_end(bl, SC__INVISIBILITY, -1);
		break;

 

 

Posted

In status.c:

 

	case SC_CONCENTRATE:
		status_change_end(bl, SC_HIDING, -1);
		status_change_end(bl, SC_CLOAKING, -1);
		status_change_end(bl, SC_CLOAKINGEXCEED, -1);
		status_change_end(bl, SC_CAMOUFLAGE, -1);
		status_change_end(bl, SC__INVISIBILITY, -1);
		break;

 

Yes I tried using item script "sc_concentrate" but it only gives the buff effect but doesn't reveal hidden units.

Posted

Probably cause SC_CONCENTRATE doesn't have:

 

In skill.c; AC_CONCENTRATION:

			map_foreachinrange( status_change_timer_sub, src,
				skill_get_splash(skillid, skilllv), BL_CHAR,
				src,NULL,type,tick,skillid,skilllv);
Posted

Probably cause SC_CONCENTRATE doesn't have:

 

In skill.c; AC_CONCENTRATION:

			map_foreachinrange( status_change_timer_sub, src,
				skill_get_splash(skillid, skilllv), BL_CHAR,
				src,NULL,type,tick,skillid,skilllv);

So if it's ac_concentration, what would the item script look like. Since I was using sc_start, which doesnt work with that.

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