Jump to content
×
×
  • Create New...
  • 0

[PROBLEM]White Flag


Runah

Question

  • Premium

Hi guys, all fine? I hope so...

I'm having an issue with White Flags (Item).

Item objective: When click stay invisible for some time and moobs lose target.

Problem? You stay invisible but the moobs still doing damage and don't lose the target.

Hope you guys can help me,

With the best regards,

Runah

YfEFo71.png

A new project is coming up very soon. Stay tunned.

Metin2dev Topic

Nexus2 Facebook

Nexus2 Discord

Link to comment
Share on other sites

  • Answers 9
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

9 answers to this question

Recommended Posts

  • 0
  • Premium

The problem wasn't stay invisible but stop the attckers... Anyway,
Thx guys but i solved it. Was a problem in second if of char_battle.cpp (function: FuncStopMyAttcker or something like it) . i just deleted the second if and let the content after the first if. I don't know if u understand but i will put an example in some hours.


EDIT:

struct FuncForgetMyAttacker
{
	LPCHARACTER m_ch;
	FuncForgetMyAttacker(LPCHARACTER ch)
	{
		m_ch = ch;
	}
	void operator()(LPENTITY ent)
	{
		if (ent->IsType(ENTITY_CHARACTER))
		{
			LPCHARACTER ch = (LPCHARACTER) ent;
			if (ch->IsPC())
				return;
			//if (ch->m_kVIDVictim == m_ch->GetVID())
			
			ch->SetVictim(NULL);
		}
	}
};


With the best regards,
Runah

YfEFo71.png

A new project is coming up very soon. Stay tunned.

Metin2dev Topic

Nexus2 Facebook

Nexus2 Discord

Link to comment
Share on other sites

  • 0
  • Former Staff

Hey there nexus2 founder.

I've tested with some dude's core and with my own core and both worked.

My own core is almost untouched.

 

I don't know if source has something to do with...

So let's see the proto.

 

Can you post the line?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.