Jump to content

Difference between affect.remove_collect and affect.remove_all_collect


Recommended Posts

  • Management

Hello,

Today I realized I wrote a bad quest for pet system with exp, level and bonus, being the bonus given based on level.

I found a workaround to remove all bonus when die or send pet away, using affect.remove_all_collect, but my question is, what does it remove? Does it remove only the quest bonus or every bonus given by quest?

Can anyone explain me?

If it removes every bonus from every quest, how can I remove every bonus given by just that quest? I tried affect_remove_collect, but I have to specify the bonus, bonus vale and time, and it bugs the bonus values when the pet level up and is still spawned...

Thanks

raw

raw

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

3 hours ago, charparodar said:

Can anyone explain me? 

if you're working with the source you can add a new affect_type  into affect.h

example:

AFFECT_PET_BONUS = 1001,

then you can copy the functions from quest_affect affect_remove_collect / affect_remove_all_collect

then you need to change AFFECT_PET_BONUS with the affect you're going to use.

good luck

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.