Jump to content

EffectPacket problem


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
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • Premium

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
Share on other sites

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