Jump to content
×
×
  • Create New...
  • 0

Unremovable affects after dead


avertuss

Question

Hi. How i can make unremovable affects after dead? Because i have AddAffect(ALIGNMENT_BONUS_5, POINT_MAX_HP, VALUE_BONUS_ALIGNMENT_5, 0, ALIGNMENT_TIME, 0, true); and if i dead i don't have this affect. Ty for help. 

Link to comment

3 answers to this question

Recommended Posts

  • 0
15 minutes ago, metin2team said:

do you have the source?

you should add a new affect type like AFFECT_ALIGNMENT.

 

Yes, i have in affect.h this: 

ALIGNMENT_BONUS_1,
    ALIGNMENT_BONUS_2,
    ALIGNMENT_BONUS_3,
    ALIGNMENT_BONUS_4,
    ALIGNMENT_BONUS_5,

Link to comment
  • 0

Find this line.

#define IS_NO_CLEAR_ON_DEATH_AFFECT(type) ((type) == AFFECT_BLOCK_CHAT || ((type) >= 500 && (type) < 600))

Replace with.

#define IS_NO_CLEAR_ON_DEATH_AFFECT(type) \
	((type) == AFFECT_BLOCK_CHAT || \
	((type) >= 500 && (type) < 600)) || \
	((type) >= ALIGNMENT_BONUS_1 && (type) <= ALIGNMENT_BONUS_5))

 

  • Love 2
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.