Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 23:06

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

Advertisement



[HELP] Guild Siege Limit Speed

Discussion on [HELP] Guild Siege Limit Speed within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2019
Posts: 11
Received Thanks: 0
[HELP] Guild Siege Limit Speed

Can someone teach me how to limit speed when guild siege.

Thanks by the way
iiamevan is offline  
Old 06/02/2020, 14:33   #2
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
Look at CMover::GetSpeed there you can check the map id and limit the speed
Drabur is offline  
Old 06/02/2020, 16:50   #3
 
elite*gold: 0
Join Date: Apr 2020
Posts: 26
Received Thanks: 3
VersionCommon.h of Neuz & Worldserver define -> __MAX_SPEED

Inside CMover::GetSpeed
Under
Code:
	if (nAdjValue != 0)
	{
Place
Code:
#ifdef	__MAX_SPEED
			if (GetWorld() && (GetWorld()->GetID() == WI_WORLD_GUILDWAR))
			{
				if (nAdjValue > 100 && IsPlayer()) // 100% Speed Cap in Siege
					nAdjValue = 100;
			}
			else {
				if (nAdjValue > 200 && IsPlayer()) //200% Speed Other Worlds
					nAdjValue = 200;
			}
#endif	//__MAX_SPEED
Leese is offline  
Old 06/02/2020, 20:53   #4
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by Leese View Post
VersionCommon.h of Neuz & Worldserver define -> __MAX_SPEED

Inside CMover::GetSpeed
Under
Code:
	if (nAdjValue != 0)
	{
Place
Code:
#ifdef	__MAX_SPEED
			if (GetWorld() && (GetWorld()->GetID() == WI_WORLD_GUILDWAR))
			{
				if (nAdjValue > 100 && IsPlayer()) // 100% Speed Cap in Siege
					nAdjValue = 100;
			}
			else {
				if (nAdjValue > 200 && IsPlayer()) //200% Speed Other Worlds
					nAdjValue = 200;
			}
#endif	//__MAX_SPEED
2 times to call a function, why?

Code:
#ifdef __MAX_SPEED
		CWorld* pWorld = GetWorld();
		if (pWorld && pWorld->GetID() == WI_WORLD_GUILDWAR)
		{
			if(nAdjValue > 100 && IsPlayer()) // 100% Speed Cap in Siege
				nAdjValue = 100;
		}
		else
		{
			if(nAdjValue > 200 && IsPlayer()) //200% Speed Other Worlds
				nAdjValue = 200;
		}
#endif
QuietSmoke is offline  
Old 06/02/2020, 22:10   #5
 
elite*gold: 0
Join Date: Apr 2020
Posts: 26
Received Thanks: 3
Quote:
Originally Posted by QuietSmoke View Post
2 times to call a function, why?

Code:
#ifdef __MAX_SPEED
		CWorld* pWorld = GetWorld();
		if (pWorld && pWorld->GetID() == WI_WORLD_GUILDWAR)
		{
			if(nAdjValue > 100 && IsPlayer()) // 100% Speed Cap in Siege
				nAdjValue = 100;
		}
		else
		{
			if(nAdjValue > 200 && IsPlayer()) //200% Speed Other Worlds
				nAdjValue = 200;
		}
#endif
Thats better yeah Thanks!
Leese is offline  
Old 06/02/2020, 23:08   #6
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
Quote:
Originally Posted by QuietSmoke View Post
2 times to call a function, why?

Code:
#ifdef __MAX_SPEED
		CWorld* pWorld = GetWorld();
		if (pWorld && pWorld->GetID() == WI_WORLD_GUILDWAR)
		{
			if(nAdjValue > 100 && IsPlayer()) // 100% Speed Cap in Siege
				nAdjValue = 100;
		}
		else
		{
			if(nAdjValue > 200 && IsPlayer()) //200% Speed Other Worlds
				nAdjValue = 200;
		}
#endif
wow that just makes absolutely no difference
Drabur is offline  
Old 06/03/2020, 01:58   #7
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by Drabur View Post
wow that just makes absolutely no difference
If this does not matter to you, then no one forces you to install more optimized code
QuietSmoke is offline  
Old 06/03/2020, 10:49   #8
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
Quote:
Originally Posted by QuietSmoke View Post
If this does not matter to you, then no one forces you to install more optimized code

"optimized"
if you want to optimize flyff open visual studio and create a new project and start reprogramming the game
Drabur is offline  
Old 06/03/2020, 12:00   #9
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by Drabur View Post
"optimized"
if you want to optimize flyff open visual studio and create a new project and start reprogramming the game
And why embed even more non-optimized code?
The game already lags on powerful PCs
Let’s write in such a way that the game of 2008 doesn’t work even on the i9-9900k
QuietSmoke is offline  
Old 06/03/2020, 12:02   #10
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
It is true that you tries to optimize code, but it is questionable whether the code will ever be used in a public server.
Drabur is offline  
Old 06/03/2020, 13:12   #11
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by Drabur View Post
It is true that you tries to optimize code, but it is questionable whether the code will ever be used in a public server.
Any optimization makes sense.
And to install more optimized code or not, everyone’s choice
QuietSmoke is offline  
Old 06/04/2020, 15:36   #12
 
elite*gold: 0
Join Date: May 2019
Posts: 6
Received Thanks: 13
Quote:
Originally Posted by QuietSmoke View Post
Any optimization makes sense.
And to install more optimized code or not, everyone’s choice
GetWorld is most likely getting inlined anyway, you're not optimizing anything at all.
Blauflosh is offline  
Reply


Similar Threads Similar Threads
[Request]How to make Job reward coin / Guild limit & union limit
02/12/2014 - SRO Private Server - 1 Replies
Hello everybody hope you are all fine i want to ask how to add gold coins as a reward from jobbing if trader hunter thief sell their goods they receive the gold coin in guild storage or inventory doesn't matter , waiting for any hints or help :D & asking about how to set guild members limit if i want guild to be 32 member only & union limit to be 4 guilds only i know it seems big requests but HELPPPPPPPPPPPP xD spam ftw thanks for reading this my regards be safe :D



All times are GMT +1. The time now is 23:07.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.