Jump to content

affect.add_collect doesn' stack


Recommended Posts

Hello, i have problem with affect.add_collect(), it doesnt stack same numbers
for example: after complete mission i set   affect.add_collect(apply.ATT_GRADE_BONUS, 5, 60*60*24*365*60) and another with same value affect.add_collect(apply.ATT_GRADE_BONUS, 5, 60*60*24*365*60)

10 attack bonus lasts untill i reload/restart then only 5 attack left i cant stack different numbers even 5 3 4 7 1 12 etc.. but i cant repeat number i used somewhere else if i do it whole bonus is lost
What i already done:

questlua_affect.cpp

search for: int affect_add(lua_State * L)

delete this part:

if (ch->FindAffect(AFFECT_QUEST_START_IDX, applyOn)) // 퀘스트로 인해 같은 곳에 효과가 걸려있으면 스킵

 return 0;
*
it helps only with stacking different numbers, because before i deleted this part, i couldnt even stack numbers backwards example: if i added 5 then 3 i only recieved 5 

I tried to be as clear as i can as im not english speaker. If i can give more information to solve this problem then tell me
Thanks in advance!

EDIT: I just noticed that they dont stack because in player affect table every bonus players gets is wrote in different column instead of summing in one, how can i saving one bonus in one column? i guess its because lDuration is different and lApplyValue cant be duplicated

Edited by Mefarious
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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


  • Similar Content

  • Activity

    1. 2

      acces root denied

    2. 7

      Acce system

    3. 5

      Transmutation Reversal - bug

    4. 0

      How to compile Metin2 .py script to .pyc

    5. 2

      acces root denied

    6. 2

      VPS Choice

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.