Register for your free account! | Forgot your password?

You last visited: Today at 06:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Fix] Skill Range

Discussion on [Fix] Skill Range within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
[Fix] Skill Range

Open Ctrl.cpp and go to
Code:
int		CCtrl::DoApplySkillEx( CCtrl *pTarget, ItemProp *pSkillProp, AddSkillProp *pAddSkillProp, bool bIgnoreProb, int nParam, BOOL bOnlyDmg, BOOL bControl )
After

Code:
	if( pSrc->GetType() == OT_MOVER )
	{
Include

Code:
	if( this != pSrc && pSrc->GetType() == OT_MOVER && ((CMover*)pSrc)->IsPlayer() )
	{
		
		float fX = GetPos().x-pSrc->GetPos().x;
		float fZ = GetPos().z-pSrc->GetPos().z;

		if( fX > 1.0f && fZ > 1.0f )
		{
			D3DXVECTOR3 v3Len = D3DXVECTOR3( fX, 0.0f, fZ );
			float fTotalLen = D3DXVec3LengthSq( &v3Len );

			fTotalLen -= GetRadiusXZ();
			fTotalLen -= pSrc->GetRadiusXZ();

			float fAttRange = ((CMover*)pSrc)->GetAttackRange( pSkillProp->dwAttackRange );

			if( fAttRange && fTotalLen < fAttRange )
					return;
		}
	}

ZeroTwo02 is offline  
Thanks
6 Users
Old 08/02/2019, 18:09   #2
 
elite*gold: 0
Join Date: May 2019
Posts: 74
Received Thanks: 5
This is really cool, but can still be done with this fix.
Fatcode is offline  
Old 08/03/2019, 00:11   #3
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
return -> return 0;
Code:
if(this != pSrc && pSrc->GetType() == OT_MOVER && ((CMover*)pSrc)->IsPlayer())
{
	float fX = GetPos().x-pSrc->GetPos().x;
	float fZ = GetPos().z-pSrc->GetPos().z;

	if(fX > 1.0f && fZ > 1.0f)
	{
		D3DXVECTOR3 v3Len = D3DXVECTOR3(fX, 0.0f, fZ);
		float fTotalLen = D3DXVec3LengthSq(&v3Len);

		fTotalLen -= GetRadiusXZ();
		fTotalLen -= pSrc->GetRadiusXZ();

		float fAttRange = ((CMover*)pSrc)->GetAttackRange(pSkillProp->dwAttackRange);

		if(fAttRange && fTotalLen < fAttRange)
			return 0;
	}
}
QuietSmoke is offline  
Old 08/05/2019, 05:20   #4
 
elite*gold: 0
Join Date: May 2019
Posts: 74
Received Thanks: 5
Quote:
Originally Posted by QuietSmoke View Post
return -> return 0;
Code:
if(this != pSrc && pSrc->GetType() == OT_MOVER && ((CMover*)pSrc)->IsPlayer())
{
	float fX = GetPos().x-pSrc->GetPos().x;
	float fZ = GetPos().z-pSrc->GetPos().z;

	if(fX > 1.0f && fZ > 1.0f)
	{
		D3DXVECTOR3 v3Len = D3DXVECTOR3(fX, 0.0f, fZ);
		float fTotalLen = D3DXVec3LengthSq(&v3Len);

		fTotalLen -= GetRadiusXZ();
		fTotalLen -= pSrc->GetRadiusXZ();

		float fAttRange = ((CMover*)pSrc)->GetAttackRange(pSkillProp->dwAttackRange);

		if(fAttRange && fTotalLen < fAttRange)
			return 0;
	}
}
Hi, why not 1? Why not a garbage value? I see some source that has this returns 1 or just a garbage(return). Thoughts?
Fatcode is offline  
Old 08/05/2019, 15:30   #5



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Quote:
Originally Posted by Fatcode View Post
Hi, why not 1? Why not a garbage value? I see some source that has this returns 1 or just a garbage(return). Thoughts?
Have a look at the parent function to see what behaviour will happen on what return value.
Sedrika is offline  
Old 08/06/2019, 04:51   #6
 
elite*gold: 0
Join Date: May 2019
Posts: 74
Received Thanks: 5
Quote:
Originally Posted by Sedrika View Post
Have a look at the parent function to see what behaviour will happen on what return value.
Thank you! I still have some confusions about this and constantly learning.. I just know that 0 is true and above or below 0 is false and I saw this fix in some source and they return 1 instead of 0 :O Anyways thank you!
Fatcode is offline  
Reply


Similar Threads Similar Threads
[tutorial] fussion [GM]ghostmode+teleportation;Skill speed,Skill range hack
03/05/2014 - Dekaron PServer Hacks, Bots, Cheats & Exploits - 275 Replies
Ok..this is my first tutorial..today i will show you how to make ghostmode+teleportation hack,Skill speed hack,Skill range hack,Wall Hack,Mana consumation hack.. The programs that you need is : Cheat engine 5.4/5.5 version Microsoft excell 2003 or try with newest version..maybe will work again 1. ghostmode+teleport hack firtst step is open (launch) your dekaron..without login! next open your Cheat Engine and you will see in the left corner one little PC that glow..press on it and...
Dekaron Fussion.... Vac , Skill , Wall , Skill Range ...... hack ? give me the links
04/13/2011 - Dekaron Private Server - 5 Replies
hey Guys im searching for Good Dekaron Fussion Hacks.... Please contact me or Give me links Thx you very much. :):D



All times are GMT +1. The time now is 06:33.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.