[CODE] Fix from Me:) REV 80

Results 1 to 9 of 9
  1. #1
    Apprentice maximz is offline
    MemberRank
    Dec 2004 Join Date
    20Posts

    [CODE] Fix from Me:) REV 80

    charfunctions.cpp

    Code:
    bool CCharacter::CanAttack( )
    {
        clock_t etime = clock() - Battle->lastAtkTime;
        //if( etime < CLOCKS_PER_SEC * 100 / Stats->Attack_Speed ) return false;   for the time being let's just let it be unsynced to avoid disbalanced
        int weapontype = IsPlayer()?getWeaponType():0;
    
    //MZ 
    //it's my fix, to protect from exception divide by zero
    //During fight, at change of the weapon it happens
        if (0 == Stats->Attack_Speed) return false;
    //MZ
    
        if ( weapontype == 231 || weapontype == 232 || weapontype == 233 )
        {
           if( (etime < CLOCKS_PER_SEC * (GServer->ATTK_SPEED_MODIF*4/3) / Stats->Attack_Speed) || Status->Stun != 0xff ) return false;
        }
        else
        {
           if( (etime < CLOCKS_PER_SEC * GServer->ATTK_SPEED_MODIF / Stats->Attack_Speed) || Status->Stun != 0xff ) return false;
        }
        return true;
    }
    player.cpp

    =Fix animation for Gun/Luncher/Bow in PVP

    Code:
    bool CPlayer::SpawnToPlayer( CPlayer* player, CPlayer* otherclient )
    {
    ....
    //DEL
        ADDWORD( pak, ((items[132].itemnum << 5) & 0x3ff) );//arrows
        ADDWORD( pak, ((items[133].itemnum << 5) & 0x3ff) );//bullets
        ADDWORD( pak, ((items[134].itemnum << 5) & 0x3ff) );//cannons    
    //ADD 
        ADDWORD( pak, ((items[132].itemnum << 5) ));//arrows
        ADDWORD( pak, ((items[133].itemnum << 5) ));//bullets
        ADDWORD( pak, ((items[134].itemnum << 5) ));//cannons    
    .....
    }
    Last edited by maximz; 10-11-07 at 02:06 AM. Reason: Second FIX:)


  2. #2
    Enthusiast dobbz is offline
    MemberRank
    Apr 2007 Join Date
    33Posts

    Re: [CODE] Fix from Me:) REV 80

    wut does this do??

  3. #3
    Proficient Member gailfriz is offline
    MemberRank
    Sep 2007 Join Date
    195Posts

    Re: [CODE] Fix from Me:) REV 80

    Please further explain the details of what this code does please...

  4. #4
    Apprentice maximz is offline
    MemberRank
    Dec 2004 Join Date
    20Posts

    Re: [CODE] Fix from Me:) REV 80

    Second Fix, see first topic

  5. #5
    Account Upgraded | Title Enabled! lmame is offline
    MemberRank
    Jun 2007 Join Date
    441Posts

    Re: [CODE] Fix from Me:) REV 80

    Nice, did you see my PM?

  6. #6
    Apprentice maximz is offline
    MemberRank
    Dec 2004 Join Date
    20Posts

    Re: [CODE] Fix from Me:) REV 80

    Quote Originally Posted by lmame View Post
    Nice, did you see my PM?

    yes:) ok i will try use dev forum also

  7. #7
    No One Knows ! ☠RockAngeL☠ is offline
    MemberRank
    Apr 2007 Join Date
    ☮/UAE.phpLocation
    3,186Posts

    Re: [CODE] Fix from Me:) REV 80

    thanks i will try it

  8. #8
    -sama SeraphiPod is offline
    MemberRank
    May 2008 Join Date
    PhilippinesLocation
    1,880Posts

    Re: [CODE] Fix from Me:) REV 80

    wats dis 4?

  9. #9
    Valued Member Bl4h is offline
    MemberRank
    Dec 2007 Join Date
    NetherlandsLocation
    133Posts

    Re: [CODE] Fix from Me:) REV 80

    If you apply this fix ti the source of worldserver.exe and compile it, then run the server, it will:
    Fix animation for Gun/Luncher/Bow in PVP



Advertisement