Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Buffer pets.

Status
Not open for further replies.
Initiate Mage
Joined
Mar 31, 2009
Messages
30
Reaction score
0
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.
 
Joined
Nov 12, 2009
Messages
701
Reaction score
113
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.
 
Status
Not open for further replies.
Back
Top