Jump to content

mobs attack late


Recommended Posts

Hi developer, I have a problem that maybe only some of you can help me, practically I have a problem with the mobs, if I dismantle them to make me attack and move after having them dismantled in a precise point the mobs should follow me normally, but instead they go first to the place I dismantled they stop a few seconds and then they follow me, you would know me say how can i solve this?

Link to comment
Share on other sites

A few ways to fix it.. for example;

0. increase follow frequency

1. call function follow checking dwElapsedTime in void CHARACTER::StateMove()

(like that)

        if (IsMonster() && GetVictim())
        {
            LPCHARACTER victim = GetVictim();
            UpdateAggrPoint(victim, DAMAGE_TYPE_NORMAL, -(victim->GetLevel() / 3 + 1));

            if (dwElapsedTime > 500) {
                __CHARACTER_GotoNearTarget(this, victim);
            }
        }

 

gl guys

 

 

  • Love 6
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.