Jump to content

Recommended Posts

Hi guys, i need your help.

I have create a new effect on item but when i "unequip" this item, effect remain and i want to clear this effect.

I put this on my char_item.ccp

		else if (true == CItemVnumHelper::IsZodiacRune(dwVnum))
		{
			this->EffectPacket(SE_EFFECT_RUNE);
		}

 

and i try to do like this 

bool CHARACTER::UnequipItem(LPITEM item)
{
....


	if (item->GetVnum() == 49000)
		{
			this->EffectPacket(SE_NONE);
		}

 

what i need to put in this function to clear effect?

 

Sorry for bad english and thanks for help.

 

Link to comment
https://metin2.dev/topic/18115-effectpacket-problem/
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • Honorable Member

Give effect:

__EffectContainer_AttachEffect(EFFECT);

Remove effect:

__EffectContainer_DetachEffect(EFFECT);

 

 

"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

Link to comment
https://metin2.dev/topic/18115-effectpacket-problem/#findComment-98889
Share on other sites

  • Honorable Member
On 2/20/2018 at 2:17 AM, Raeghel said:

Can i use this function in char_item.cpp?

Well yeah, call InstanceBase and you're set I guess.

.gif

  • 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

Link to comment
https://metin2.dev/topic/18115-effectpacket-problem/#findComment-98891
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.