Jump to content

How to stack affect.add ? (or other ways)


Recommended Posts

Acum 6 ore, ElBrujoo a spus:

If you want a bonus that is stacked like chaegirab you can use affect.add_collect(), i think it s the simplest way

It doesn't stack.

affect.add_collect() + affect.add_collect() = don't stack

affect.add_collect() + affect.add() = stack ONCE 

I need them to be stacking more, like affect.add_collect() + affect.add_collect() + affect.add_collect() + affect.add_collect() and so on

Link to comment
Share on other sites

19 hours ago, HisaoShou said:

It doesn't stack.

affect.add_collect() + affect.add_collect() = don't stack

affect.add_collect() + affect.add() = stack ONCE 

I need them to be stacking more, like affect.add_collect() + affect.add_collect() + affect.add_collect() + affect.add_collect() and so on

That's EXACTLY what the affect.add_collect() is supposed to do. However to be 100% sure I tested and it worked stacking a bonus. If you still can't make it work I could help you on skype-> xelbrujoox

Link to comment
Share on other sites

Acum 2 ore, ElBrujoo a spus:

That's EXACTLY what the affect.add_collect() is supposed to do. However to be 100% sure I tested and it worked stacking a bonus. If you still can't make it work I could help you on skype-> xelbrujoox

Ok , then try to stack exactly the same values. 

Try this:  affect.add_collect(apply.INT,10,60*60*24*300*59) + affect.add_collect(apply.INT,10,60*60*24*300*59) + affect.add_collect(apply.INT,10,60*60*24*300*59)

It won't stack more than two times.

Link to comment
Share on other sites

Maybe your affect collect function is not the same as mine but i don t think that s the case. I ve tested however and all works:
Before all:

Spoiler

d7dfa78de8d247d823a45514f74418ac.png

Then the npc:

Spoiler

163742399584b484db2edf86aece636b.png

I pressed "Stack mob":

Spoiler

2bf197c16fb946d35385f187d42e366b.png

and then the stack mob 2:

Spoiler

bf68cfd3e3f3cee1f41738ff536987c7.jpg

what they do is this:

        when 20094.chat."stack mob" begin
            say("Ok")
            affect.add_collect(apply.INT,10,60*60*24*300*59)
        end

        when 20094.chat."stack mob 2" begin
            say("Ok")
            affect.add_collect(apply.INT,10,60*60*24*300*59)
            affect.add_collect(apply.INT,10,60*60*24*300*59)
            affect.add_collect(apply.INT,10,60*60*24*300*59)
        end

 

If u need help i'll wait you on skype

 

PS: by the way I pressed the mob stack two times more, the stack 2 added only 30 int.

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

  • 4 years later...

Can i refresh this topic?
Im trying to stack by affect_collect, i even deleted part above and bonuses dont stack.
It wont stack if i get same bonus value, for example: 10 movement speed,
i can take 2x 10 movement and get 20, but if i relog, teleport to other map bonuses are reset to 10
i can stack different values, 1 2 3 4 5 etc
but if i add 1 2 3 5 5 6 7 6 then i will get only 24

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.