Range Skills

11/03/2013 12:41 raventh1984#1
Hi elitepvpers,

I noticed that all my skills could do range attack.
Even Asal can do it.

I have checked PropSkill.txt and its AR_SHORT however i dont even have to be close to the mob to peform the skills.

Here is an image showing the distance

[Only registered and activated users can see links. Click Here To Register...]

Now i wonder how can i fix this.

With kind regards.
11/03/2013 19:43 Rhyder`#2
try this one:

Code:
switch( pSkillProp->dwID )
	{
	case SI_BIL_PST_ASALRAALAIKUM:
		if(pSkillProp->dwAttackRange != AR_SHORT)
		{
			return FALSE;
		}
		break;
         }
11/03/2013 20:14 raventh1984#3
Already have it and its with all skills no matter wat class it is.
11/04/2013 08:13 Rhyder`#4
Quote:
Originally Posted by raventh1984 View Post
Already have it and its with all skills no matter wat class it is.
here it is:
credits to pumaaa
Code:
	if( pSrc->GetType() == OT_MOVER )
	{
		D3DXVECTOR3 v3Len = GetPos() - pSrc->GetPos();
		FLOAT fTotalLen = D3DXVec3LengthSq( &v3Len );

		if( fTotalLen > ((CMover*)pSrc)->GetAttackRange( pSkillProp->dwAttackRange ) )
			return;
	}
11/05/2013 23:03 Swäg#5
Go in MoverMsg.cpp

and search for AR_SHORT

there you will find the value which is used to calculate the range.

Make sure it looks like this:

Code:
case AR_SHORT:	fAttRange = 2.0f;
11/06/2013 08:43 raventh1984#6
Thanks Swag however it is the same value as that one. I altered it to lets say 0.8 and now its working as it should be. The strange thing is that i only added an new class. and i never touched movermsg.cpp.

But thanks again.

#closerequest.