Jump to content
  • 0

Tracking Casting Time


xilence01

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   4
  • Joined:  05/23/12
  • Last Seen:  

Hi, I've successfully implemented a soul link for Gunslingers (SL_GUNNER) on my server.

I want to add an effect that will reduce the cast time of the Tracking skill to 70% (or remove it totally) when the GS is soul linked.

I tried putting this code in skill.c BUT it failed

		case GS_TRACKING:
			if (sd && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_GUNNER)
				time = 0;
			break;

Any help will be appreciated. Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

try to use Suffragium Code

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   4
  • Joined:  05/23/12
  • Last Seen:  

On 10/2/2018 at 6:59 PM, Bringer said:

try to use Suffragium Code

Hmmm, tried inserting this, but nothing happens:

		if (sc->data[SC_SUFFRAGIUM]) {
			if(!(flag&2))
				time -= time * sc->data[SC_SUFFRAGIUM]->val2 / 100;
			//Suffragium ends even if the skill is not affected by it
			status_change_end(bl, SC_SUFFRAGIUM, INVALID_TIMER);
		}
		if (sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_GUNNER && skill_id == GS_TRACKING) {
			if(!(flag&2))
				time -= time * 50 / 100;
		}

 

 

UP

 

UP

 

up

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