Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Cicada Skin Shed modification


kalabasa

Question


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.04
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

i want to prevent  casting cicada skin shed skill until all charges are all used

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  485
  • Reputation:   271
  • Joined:  06/13/17
  • Last Seen:  

skill.cpp

#ifdef RENEWAL
	case GS_MAGICALBULLET:
#endif
	case NJ_KASUMIKIRI:
	case NJ_UTSUSEMI:
+		if( sd && skill_id == NJ_UTSUSEMI ){
+			struct status_change* sc = status_get_sc(src);
+
+			if( sc && sc->data[SC_UTSUSEMI] )
+			{
+				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
+				break;
+			}
+		}
	case NJ_NEN:
	case NPC_DEFENDER:
	case NPC_MAGICMIRROR:

 

Edited by Haruka Mayumi
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.04
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

14 hours ago, Haruka Mayumi said:

skill.cpp


#ifdef RENEWAL
	case GS_MAGICALBULLET:
#endif
	case NJ_KASUMIKIRI:
	case NJ_UTSUSEMI:
+		if( sd && skill_id == NJ_UTSUSEMI ){
+			struct status_change* sc = status_get_sc(src);
+
+			if( sc && sc->data[SC_UTSUSEMI] )
+			{
+				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
+				break;
+			}
+		}
	case NJ_NEN:
	case NPC_DEFENDER:
	case NPC_MAGICMIRROR:

 

Helpful as always thanks again!!!

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