Jump to content

[PROBLEM]White Flag


Go to solution Solved by Runah,

Recommended Posts

  • 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

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
Link to comment
Share on other sites

  • Premium
  • Solution

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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