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
https://metin2.dev/topic/6183-problemwhite-flag/
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 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
https://metin2.dev/topic/6183-problemwhite-flag/#findComment-39353
Share on other sites

  • Premium

This one? 
 

70008 ¹é±â ITEM_USE USE_SPECIAL 1 NONE ITEM_STACKABLE | ITEM_IRREMOVABLE NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 60 10 0 0 0 0 0 0 0

YfEFo71.png

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

Metin2dev Topic

Nexus2 Facebook

Nexus2 Discord

Link to comment
https://metin2.dev/topic/6183-problemwhite-flag/#findComment-39430
Share on other sites

  • Premium
  • 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
https://metin2.dev/topic/6183-problemwhite-flag/#findComment-39541
Share on other sites

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.