Jump to content

Lightning Claw & Flame Spirit --> To not attack invisible players


Go to solution Solved by Syreldar,

Recommended Posts

  • Active+ Member

Hey guys,

someone know how to change Lightning Claw & Flame Spirit skills to not attack players when they are invisible?

Thanks for possible answers!

Sincerely,

ReFresh

Edited by ReFresh

I'll be always helpful!  😉

  • 3 years later...
  • Honorable Member
  • Solution
36 minutes ago, WeedHex said:

Are you sure in official side it's like that?

Why would you care how is in official, if that's what he wants regardless?

53 minutes ago, ReFresh said:

#ref

char_skill.cpp, search:

		// 2. Shoot!
		if (f.GetVictim())
		{
			ch->CreateFly(FLY_SKILL_MUYEONG, f.GetVictim());
			ch->ComputeSkill(SKILL_MUYEONG, f.GetVictim());
		}

Turn into:

		// 2. Shoot!
		LPCHARACTER victim = f.GetVictim();
		if (victim && !victim->IsAffectFlag(AFF_EUNHYUNG) && !victim->IsAffectFlag(AFF_INVISIBILITY) && !victim->IsAffectFlag(AFF_REVIVE_INVISIBLE)))
		{
			ch->CreateFly(FLY_SKILL_MUYEONG, victim);
			ch->ComputeSkill(SKILL_MUYEONG, victim);
		}

 

  • Good 1
  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.