Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

Warrior mental skills deal no dmg sometimes


Dragos123

Question

As the title says,in my P server from time to time i get a no registered dmg on skills even if my targent is in the range of the skill.

Here s an example about my problem,if you watch the video carefully at second 0:48 im using my Spirit Strike but i do no damage even if my target is in skill range,any ideas about my problem?

 

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Every server has this.. it's a game from 2004. ofc it will have bugs.

 

do this: 

 

And also do this:

 

(battle.cpp) Search for:

    if (!victim->IsBuilding())
    {
        int max = 300;
    
        if (false == ch->IsPC())
        {
            max = (int) (ch->GetMobAttackRange() * 1.15f);
        }
        else
        {
            if (false == victim->IsPC() && BATTLE_TYPE_MELEE == victim->GetMobBattleType())
                max = MAX(300, (int) (victim->GetMobAttackRange() * 1.15f));
        }

        if (distance > max)
        {
            if (test_server)
                sys_log(0, "VICTIM_FAR: %s distance: %d max: %d", ch->GetName(), distance, max);

            return BATTLE_NONE;
        }
    }

 

And replace the 300 with 350/375

 

Search for:

 

bool battle_distance_valid_by_xy(long x, long y, long tx, long ty)
{
    long distance = DISTANCE_APPROX(x - tx, y - ty);

    if (distance > 170)
        return false;

    return true;
}

Replace the 170 with 350/375
 

 

Edited by SCOOB
Link to comment
Share on other sites

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


  • Activity

    1. 0

      Need Help With Char_Item.cpp

    2. 0

      ULTERIUS2.COM

    3. 7

      Killua - Unholy God Set

    4. 2

      Visual studio 2022 compiling issue

    5. 991

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

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