Jump to content
  • 0

Tracking Casting Time


Question

Posted

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!

2 answers to this question

Recommended Posts

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

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