Register for your free account! | Forgot your password?

You last visited: Today at 22:45

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


[Source] Sleeping Fix

Discussion on [Source] Sleeping Fix within the Flyff PServer Guides & Releases forum part of the Flyff PServer - Discussions / Questions category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 42
Received Thanks: 24
[Source] Sleeping Fix

Since the released fix has some bugs and way to much code and some servers still haven't fixed this in 2019 - there you go:


This is also fixed:

After editing make sure to define __SLEEPING_FIX in your VersionCommon.h of neuz and worldserver.
Have a good one.



Knusper02 is offline  
Thanks
4 Users
Old 05/16/2019, 12:08   #2
 
elite*gold: 0
Join Date: Dec 2013
Posts: 57
Received Thanks: 54
thanks for sharing it.
i guess many server owners dont know about it, even tho its a public bug since the release of the 3rd job classes.
We used it a lot in the official flyff PVP Arena to avoid sleeping.
It was nice because once u removed the stun from sleeping you didnt get stunned again as long as the sleeping buff was active.

But as Pserver goes, i think many owners didnt know about it and those who knew it didnt spend time to fix it since Scroll of Holy is dirt cheap on most pservers and people spam it anyways.

But i guess for super low rate servers this is a good fix.


Btw, did u know that there is no Pserver that actually fixed the harlequin greetins ?
Only the Official flyff has the harlequin greetins which teleport the user behind the Target.
Every Pserver (since the Release of 3rd Jobs) has it as a normal Attack without the Teleporting.

If you have the time and want to put some effort into fixing this, then go ahead

Heres a example video of how it should look like (eflyff):



TheGodIsHereBrah is offline  
Thanks
1 User
Old 05/16/2019, 13:06   #3
 
elite*gold: 0
Join Date: Jan 2015
Posts: 161
Received Thanks: 612
Quote:
Originally Posted by TheGodIsHereBrah View Post
thanks for sharing it.
i guess many server owners dont know about it, even tho its a public bug since the release of the 3rd job classes.
We used it a lot in the official flyff PVP Arena to avoid sleeping.
It was nice because once u removed the stun from sleeping you didnt get stunned again as long as the sleeping buff was active.

But as Pserver goes, i think many owners didnt know about it and those who knew it didnt spend time to fix it since Scroll of Holy is dirt cheap on most pservers and people spam it anyways.

But i guess for super low rate servers this is a good fix.


Btw, did u know that there is no Pserver that actually fixed the harlequin greetins ?
Only the Official flyff has the harlequin greetins which teleport the user behind the Target.
Every Pserver (since the Release of 3rd Jobs) has it as a normal Attack without the Teleporting.

If you have the time and want to put some effort into fixing this, then go ahead

Heres a example video of how it should look like (eflyff):

Your information is wrong, Forsaken FlyFF has a fixed version of Harlequin's Greeting.
It's not even hard to implement but most people don't pay attention to details.
Blouflash is offline  
Thanks
3 Users
Old 05/16/2019, 14:20   #4
 
elite*gold: 0
Join Date: Aug 2016
Posts: 113
Received Thanks: 82
Yeah it isn't. The fix is actually in many released sources.



Naltalah is offline  
Old 05/16/2019, 17:17   #5

 
elite*gold: 28
Join Date: Feb 2010
Posts: 423
Received Thanks: 207
What I just saw ...

Including a client-side fix is totally useless, I can remove it in 10 seconds with cheat-engine and continued using it.

Here's what you need to do if you want to fix this bug:

add this code on CUser::StartCollecting & CUser::StopCollecting (WorldServer/User.cpp)

Code:
	if( IsSleepOrStun() == true )
		return;
MoverParam.cpp

Code:
bool	CMover::IsSleepOrStun()
{
	if( GetAdjParam( DST_CHRSTATE ) & CHS_SLEEPING ) //Sleep
		return true;

	if( GetAdjParam( DST_CHRSTATE ) & CHS_STUN ) //Stun
		return true;

	return false;
}
Mover.h

Code:
	bool	IsSleepOrStun();
ZeroTwo02 is offline  
Thanks
2 Users
Old 05/16/2019, 17:49   #6
 
elite*gold: 0
Join Date: Jan 2008
Posts: 393
Received Thanks: 449
Quote:
Originally Posted by ZeroTwo02 View Post
What I just saw ...

Including a client-side fix is totally useless, I can remove it in 10 seconds with cheat-engine and continued using it.

Here's what you need to do if you want to fix this bug:

add this code on CUser::StartCollecting & CUser::StopCollecting (WorldServer/User.cpp)

Code:
	if( IsSleepOrStun() == true )
		return;
MoverParam.cpp

Code:
bool	CMover::IsSleepOrStun()
{
	if( GetAdjParam( DST_CHRSTATE ) & CHS_SLEEPING ) //Sleep
		return true;

	if( GetAdjParam( DST_CHRSTATE ) & CHS_STUN ) //Stun
		return true;

	return false;
}
Mover.h

Code:
	bool	IsSleepOrStun();
Yups, should be simple as that :P
netHoxInc is offline  
Thanks
2 Users
Old 05/17/2019, 01:24   #7
 
elite*gold: 0
Join Date: Aug 2010
Posts: 42
Received Thanks: 24
For the ppl that want server-sided fix and as short as possible:
In User.cpp of worldserver
Search for:
Code:
void CUser::StopCollecting( void )
{
Add under:
Code:
#ifdef __SLEEPING_FIX
	if( !IsRegionAttr(RA_COLLECTING) )
		return;
#endif
Knusper02 is offline  
Thanks
1 User
Old 05/18/2019, 13:10   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 138
Received Thanks: 8
Quote:
Originally Posted by Knusper02 View Post
For the ppl that want server-sided fix and as short as possible:
In User.cpp of worldserver
Search for:
Code:
void CUser::StopCollecting( void )
{
Add under:
Code:
#ifdef __SLEEPING_FIX
	if( !IsRegionAttr(RA_COLLECTING) )
		return;
#endif
Hi, why only at StopCollecting function and not in StartCollecting function too? Sorry Im still learning c++.
pakinglalat is offline  
Old 05/18/2019, 13:22   #9

 
elite*gold: 0
Join Date: Jul 2018
Posts: 63
Received Thanks: 33
Quote:
Originally Posted by pakinglalat View Post
Hi, why only at StopCollecting function and not in StartCollecting function too? Sorry Im still learning c++.
Its already in void CUser::StartCollecting(void) mate


-Valor is offline  
Thanks
1 User
Reply



« V20 Models | Release v15 Source/Files with Custom Map »

Similar Threads
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bots-cheats-exploits/2843300-11-09-gigabyte-public-v2-7-a.html



All times are GMT +2. The time now is 22:45.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 3KeUpz52VCbhmLwuwydqxu6U1xsgbT8YT5
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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