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!

__fix_ranger_roller

Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
MoverMove.cpp
Code:
		case OBJACT_RANGE_ATTACK:
			{
				if( pObj->GetType() == OT_MOVER )
				{
					PlayCombatMusic();

					OBJID	idTarget = GetCmdParam(0);
					int		nPower = GetCmdParam(1);
					CMover *pTarget = prj.GetMover( idTarget );		// Ÿ°ÙÀÇ ¾ÆÀ̵𸦠Æ÷ÀÎÅÍ·Î ÀÐÀ½.
					if( IsInvalidObj(pTarget) )		break;			// Ÿ°ÙÀÌ °Å½Ã±âÇÑ Æ÷ÀÎÅ͸é Ãë¼Ò½ÃÅ´.
					
#ifdef __FIX_RANGER_ROLLER
					SendActMsg(OBJMSG_STOP);
#endif
					SendActMsg( OBJMSG_STAND );
					SendActMsg( OBJMSG_STOP_TURN );

					ClearDestObj();									// ¸ñÇ¥¿¡ µµ´ÞÇϸé ÃßÀûÀ» ¸ØÃã.
#ifdef __FIX_RANGER_ROLLER
					CMover* pTargetObj = prj.GetMover(idTarget);
					ItemProp* pItemProp = GetActiveHandItemProp();
					if (IsValidObj(pTargetObj) && IsRangeObj(pTargetObj, GetAttackRange(pItemProp->dwAttackRange)) == FALSE)
					{
						SendActMsg(OBJMSG_STOP);
						return;
					}// x¹ÌÅÍ À̳»¿¡ µé¾î¿Í¾ß Èֵθ§.
#endif

					DoAttackRange( pTarget, nPower, 0 );			// nPower¸¦ dwItemID¿¡ ³Ö´Â´Ù.
				}				
			}
			break;

MoverSkill.cpp
Code:
int	 CMover::DoAttackRange( CObj *pTargetObj, DWORD dwItemID, int idSfxHit )
{
	ItemProp* pItemProp = NULL;
	int nPower = 0;

	if( IsInvalidObj(pTargetObj) )
		return -1;

#ifdef __FIX_RANGER_ROLLER
	m_pActMover->SendActMsg(OBJMSG_STOP);
#endif

#ifdef __CLIENT
	if( IsActiveMover() )
	{

0 support will be given by me as you guys never hit the thanks button and(or) say thanks in general.
 
Last edited:
Back
Top