Jump to content

CharlesPs

Members
  • Posts

    8
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by CharlesPs

  1. Hi, I've got the same problem, so when I aply this patch, death bug was solved.

    diff --git a/src/game/Player.cpp b/src/game/Player.cpp
    index d8773cd..33a4341 100644
    --- a/src/game/Player.cpp
    +++ b/src/game/Player.cpp
    @@ -1271,6 +1271,11 @@ void Player::Update( uint32 p_time )
            RegenerateAll();
        }
    
    +    if (!isAlive() && !HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST))
    +    {
    +        SetHealth(0);
    +    }
    +
        if (m_deathState == JUST_DIED)
        {
            KillPlayer();
    

    try it

  2. Hi guys, I had modificated a patch found at http://www.getmangos.eu/community/showthread.php?t=10909.

    --- src/game/Player.cpp.orig    2009-11-08 23:48:49.000000000 +0100
    +++ src/game/Player.cpp 2009-11-08 23:45:29.000000000 +0100
    @@ -2362,6 +2362,39 @@
        // XP resting bonus for kill
        uint32 rested_bonus_xp = victim ? GetXPRestBonus(xp) : 0;
    
    +    // thnks
    +
    +    float xpmod = 1.0f;
    +    uint32 itemSpell = 0;
    +    for(int i=0; i < EQUIPMENT_SLOT_END; ++i)
    +    {
    +        if(m_items[i])
    +        {
    +            itemSpell = m_items[i]->GetProto()->Spells->SpellId;
    +            if (itemSpell == 57353)
    +            {
    +                xpmod += 0.1f;
    +            }
    +        }
    +    }
    +
    +    xp = uint32(xp * xpmod);
        SendLogXPGain(xp,victim,rested_bonus_xp);
    
        uint32 curXP = GetUInt32Value(PLAYER_XP);
    @@ -2378,8 +2411,7 @@
            level = getLevel();
            nextLvlXP = GetUInt32Value(PLAYER_NEXT_LEVEL_XP);
        }
    -
    -    SetUInt32Value(PLAYER_XP, newXP);
    +    SetUInt32Value(PLAYER_XP, newXP );
    }
    
    // Update player to next level

    There's one problem, I tested with char level 1 versus wolf level 1, and results:

    without items - 50xp

    with 1 item - 60xp

    with 2 items - 66xp

    I think anyone of you can modify again and make it perfect.

    Thnks and sorry for my bad english, I'm from PERU.

    Sry if this post is in bad section. So please move it.

×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use