|
You last visited: Today at 11:26
Advertisement
Disable GM Private Shop
Discussion on Disable GM Private Shop within the Flyff Private Server forum part of the Flyff category.
06/03/2020, 12:46
|
#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?
|
|
|
06/03/2020, 14:08
|
#2
|
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
|
Quote:
Originally Posted by Peww.
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;
}
|
|
|
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;
|
|
|
06/03/2020, 15:19
|
#4
|
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
|
Quote:
Originally Posted by QuietSmoke
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?
|
|
|
06/03/2020, 15:22
|
#5
|
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
|
Quote:
Originally Posted by Drabur
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
|
|
|
06/03/2020, 15:24
|
#6
|
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
|
Quote:
Originally Posted by QuietSmoke
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
|
|
|
06/03/2020, 15:26
|
#7
|
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
|
Quote:
Originally Posted by Drabur
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
|
|
|
06/03/2020, 22:08
|
#8
|
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.
|
|
|
06/03/2020, 22:12
|
#9
|
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
|
Quote:
Originally Posted by cookie69
@  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
|
|
|
06/03/2020, 22:14
|
#10
|
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
|
Quote:
Originally Posted by QuietSmoke
If you could put 1 cycle to check the player’s credentials, then this is impossible to get around 
|
Eh, still can be bypassed?
|
|
|
06/03/2020, 22:16
|
#11
|
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
|
Quote:
Originally Posted by Avalion
Eh, still can be bypassed? 
|
The cycle is yes.
But not full protection for prohibiting changes to the Auth variable
|
|
|
06/03/2020, 22:51
|
#12
|
elite*gold: 0
Join Date: Nov 2009
Posts: 627
Received Thanks: 688
|
Quote:
Originally Posted by QuietSmoke
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.
|
|
|
06/03/2020, 22:54
|
#13
|
elite*gold: 0
Join Date: May 2018
Posts: 48
Received Thanks: 37
|
Quote:
Originally Posted by cookie69
No, never trust the client! Don't even try to find arguments.
|
I know about that, but thanks for the reminder
|
|
|
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.
|
|