Buffer pets.

Results 1 to 2 of 2
  1. #1
    Member krocky is offline
    MemberRank
    Mar 2009 Join Date
    30Posts

    Buffer pets.

    Okay guys, I edited the "Buff Pets" with this:
    MaFl_BuffPet
    {
    setting
    {
    AddMenu( MMI_BUFFPET_STATUS );
    AddMenu( MMI_BUFFPET_RELEASE );
    AddMenu( MMI_NPC_BUFF );
    // ( SKILL ID, 스킬레벨, 가능한 플레이어 최소, 최대 레벨, 지속시간(ms) )
    SetBuffSkill( SI_ASS_HEAL_PATIENCE, 20, 1, 129, 3600000 );
    SetBuffSkill( SI_ASS_CHEER_QUICKSTEP, 20, 1, 129, 3600000 );
    SetBuffSkill( SI_ASS_CHEER_HASTE, 20, 1, 129, 3600000 );
    SetBuffSkill( SI_ASS_CHEER_CATSREFLEX, 20, 1, 129, 3600000 );
    SetBuffSkill( SI_ASS_CHEER_CANNONBALL, 20, 1, 129, 3600000 );
    SetBuffSkill( SI_ASS_CHEER_MENTALSIGN, 20, 1, 129, 3600000 );
    SetBuffSkill( SI_ASS_CHEER_HEAPUP, 20, 1, 129, 3600000 );
    SetBuffSkill( SI_ASS_CHEER_BEEFUP, 20, 1, 129, 3600000 );
    SetBuffSkill( SI_ASS_CHEER_ACCURACY, 20, 1, 129, 3600000 );
    }
    }
    So they can give buffs to the owner of the pet.

    The problem is: They only give buffs when they are near a buff pang, if they aren't near a buff pangs it doesn't work.

    Anybody have an idea how to fix this? Thanks.


  2. #2
    Cory James Cuvvvie is offline
    Grand MasterRank
    Nov 2009 Join Date
    707Posts

    Re: Buffer pets.

    Look for this within DPSrvr.cpp:
    Code:
    CDPSrvr::OnNPCBuff( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
    As you can see, there is an if statement that looks for whether or not IsCloseNpc is true or false. If it fails, no buffs. You would need to define a new NPC that can buff and let it be your buff pet somehow, or just remove that if statement. This could probably let you get buffs from the buff pang really far away or something, so that could also possible cause issues.

    Either way, do something with that function. Remove the if to do a sloppy job that still works, or spend some time on it and get it to work as expected.

    Note: I don't know if this is the reason for sure, but it seems to describe the problem pretty well. It should do the trick, but it may not.



Advertisement