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

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.