Jump to content

[Source] Affect disappears when dead


Recommended Posts

Hey Devs,

 

I added a new effect (anti exp affect).


When I die, the affect disappears while the affects of auto potions don't.

 

Does anyone know why this could happen? Hier a gif to understand my Problem:

https://metin2.download/picture/6SnZ5jujccjU2aG055KFk3c55wUfGvKg/.gifv

Best regards

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

 

#define IS_NO_CLEAR_ON_DEATH_AFFECT(type) ((type) == AFFECT_BLOCK_CHAT || (type) == AFFECT_ANTIXP_DASSCHWARZET || ((type) >= 500 && (type) < 600))
#ifdef __ENABLE_ANTI_EXP_RING
		case GET_ITEM_VNUM_RING_ANTI_EXP:
			if (!FindAffect(AFFECT_ANTIXP_DASSCHWARZET))
			{
				AddAffect(AFFECT_ANTIXP_DASSCHWARZET, 0, 0, AFF_NONE, 60*60*24*7, 0, true, false);
				ChatPacket(CHAT_TYPE_INFO, __ENABLE_ANTI_EXP_RING_ENABLE);
				//[.....]
			}
			else
			{
				RemoveAffect(AFFECT_ANTIXP_DASSCHWARZET);
				ChatPacket(CHAT_TYPE_INFO, __ENABLE_ANTI_EXP_RING_DISABLE);
				//[.....]
			}
				break;
#endif
#define __ENABLE_ANTI_EXP_RING

#define __ENABLE_ANTI_EXP_RING_ENABLE "[Ring Against Experience]- Enabled!"
#define __ENABLE_ANTI_EXP_RING_DISABLE "[Ring Against Experience]- Disabled!"
#define GET_ITEM_VNUM_RING_ANTI_EXP 40003
  • Love 1
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.