Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 11:26

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

Advertisement



Disable GM Private Shop

Discussion on Disable GM Private Shop within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2020
Posts: 23
Received Thanks: 0
Disable GM Private Shop

How to disable GMs from opening private shop?
Peww. is offline  
Old 06/03/2020, 14:08   #2
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by Peww. View Post
How to disable GMs from opening private shop?
If you're talking about vendors, then:

WndVendor.cpp, in function CWndVendor::OnChildNotify

Below:
Code:
			if(prj.IsInvalidName(strVendor)
#ifdef __RULE_0615
			   || prj.IsAllowedLetter(strVendor, TRUE) == FALSE
#endif
			   )
			{
				g_WndMng.OpenMessageBox(_T(prj.GetText(TID_DIAG_0020)));
				return TRUE;
			}
Add:
Code:
			if(!g_pPlayer->IsAuthorization(AUTH_GENERAL))
			{
				g_WndMng.OpenMessageBox("The administrator is forbidden to open a private shop.");
				return TRUE;
			}
QuietSmoke is offline  
Old 06/03/2020, 15:11   #3

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
lol no. Don't make a CLIENT side verification for that...

In the function "CDPSrvr::OnPVendorOpen"

after

Code:
	CUser* pUser	= g_UserMng.GetUser( dpidCache, dpidUser );
	if( IsValidObj( pUser ) )
	{
add

Code:
if ( pUser->m_dwAuthorization > AUTH_HELPER )
	return;
ZeroTwo02 is offline  
Thanks
1 User
Old 06/03/2020, 15:19   #4
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
Quote:
Originally Posted by QuietSmoke View Post
If you're talking about vendors, then:

WndVendor.cpp, in function CWndVendor::OnChildNotify

Below:
Code:
			if(prj.IsInvalidName(strVendor)
#ifdef __RULE_0615
			   || prj.IsAllowedLetter(strVendor, TRUE) == FALSE
#endif
			   )
			{
				g_WndMng.OpenMessageBox(_T(prj.GetText(TID_DIAG_0020)));
				return TRUE;
			}
Add:
Code:
			if(!g_pPlayer->IsAuthorization(AUTH_GENERAL))
			{
				g_WndMng.OpenMessageBox("The administrator is forbidden to open a private shop.");
				return TRUE;
			}
wow you talk about quality of code in another thread and then something?
Drabur is offline  
Old 06/03/2020, 15:22   #5
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by Drabur View Post
wow you talk about quality of code in another thread and then something?
What do u mean?

If you mean checking on the client side, this will not give any advantages to ordinary players, and if you fix the change of rights through CE, then there will be no problems
QuietSmoke is offline  
Old 06/03/2020, 15:24   #6
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
Quote:
Originally Posted by QuietSmoke View Post
What do u mean?

If you mean checking on the client side, this will not give any advantages to ordinary players, and if you correct the change of rights through CE, then there will be no problems
ordinary players? this is a prevention for pushing gms
it is very possible that they will try bypass it
Drabur is offline  
Old 06/03/2020, 15:26   #7
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by Drabur View Post
ordinary players? this is a prevention for pushing gms
it is very possible that they will try bypass it
If you could put 1 cycle to check the player’s credentials, then this is impossible to get around
QuietSmoke is offline  
Old 06/03/2020, 22:08   #8
 
cookie69's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 627
Received Thanks: 688
@ they are right, never trust the client xd
Always do the check in client side and in server side otherwise it is easy to bypass that client side check.
cookie69 is offline  
Old 06/03/2020, 22:12   #9
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by cookie69 View Post
@ they are right, never trust the client xd
Always do the check in client side and in server side otherwise it is easy to bypass that client side check.
I know that they are right and do not deny it
I understand that I was mistaken
But in any case, for example, it will work for me in the client, because the protection is good
QuietSmoke is offline  
Old 06/03/2020, 22:14   #10
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
Quote:
Originally Posted by QuietSmoke View Post
If you could put 1 cycle to check the player’s credentials, then this is impossible to get around
Eh, still can be bypassed?
Avalion is offline  
Old 06/03/2020, 22:16   #11
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by Avalion View Post
Eh, still can be bypassed?
The cycle is yes.
But not full protection for prohibiting changes to the Auth variable
QuietSmoke is offline  
Old 06/03/2020, 22:51   #12
 
cookie69's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 627
Received Thanks: 688
Quote:
Originally Posted by QuietSmoke View Post
The cycle is yes.
But not full protection for prohibiting changes to the Auth variable
No, never trust the client! Don't even try to find arguments.
cookie69 is offline  
Old 06/03/2020, 22:54   #13
 
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
Quote:
Originally Posted by cookie69 View Post
No, never trust the client! Don't even try to find arguments.
I know about that, but thanks for the reminder
QuietSmoke is offline  
Reply


Similar Threads Similar Threads
Serverfiles Costume Weapon, shop offline, sash system, lycan disable or no full
04/12/2016 - Metin2 PServer Guides & Strategies - 4 Replies
PRICE: 30 Euro ( Only paypal ) Skype; drink.box (Sorin Bourceanu) Today i selling my serverfiles. Serverfiles contain: - Costume Weapon - Sash system ( Combination , absorbtion , bonus transfer ) - Costume Mount
[How-To][DIF] Disable Armor Removing Obligation When Create Shop.
03/11/2013 - Metin2 PServer Guides & Strategies - 16 Replies
Hello Community ! With this dif you can disable armor removing obligation when you create shop. :awesome: Zcreen: http://i.epvpimg.com/hs3fc.jpg DIF:
Disable/DEL Shop/NPC
02/10/2013 - SRO Private Server - 6 Replies
hi guy is there any query to disable (better DEL) a specific shop from database? i found a very nice DB but there are shops and itmes i dont like for my server. thx for help



All times are GMT +1. The time now is 11:27.


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.