Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 16:24

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

Advertisement



GM not allowed to trade?

Discussion on GM not allowed to trade? within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2014
Posts: 167
Received Thanks: 7
Question GM not allowed to trade?

How to edit in source the GM not allowed to trade?


sorry for bad english
randeljohnvalencia is offline  
Old 11/15/2014, 13:07   #2



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Open your source and look for the trade function and add a check if the auth is gm or not.
Sedrika is offline  
Old 11/15/2014, 13:39   #3
 
elite*gold: 0
Join Date: Jul 2014
Posts: 167
Received Thanks: 7
MoverRender.cpp this?
randeljohnvalencia is offline  
Old 11/15/2014, 14:21   #4

 
elite*gold: 353
Join Date: Jan 2013
Posts: 924
Received Thanks: 617


Code:
#define	__NO_TRADE
Kiseku is offline  
Old 11/15/2014, 14:52   #5
 
elite*gold: 23
Join Date: Dec 2010
Posts: 743
Received Thanks: 617
CDPSrvr::OnTrade

Quote:
if( pUser->IsAuthorization( AUTH_GAMEMEMASTER )
{
pUser->AddText( "Unauthorized Action." );
return;
}
if( (CUser*)pTrader->IsAuthorization( AUTH_GAMEMEMASTER )
{
((CUser*)pTrader)->AddText("Unauthorized Action.");
return;
}
lawl.
.SnoX is offline  
Thanks
1 User
Old 11/15/2014, 16:32   #6
 
elite*gold: 0
Join Date: Jul 2014
Posts: 167
Received Thanks: 7
where the CDPSrvr::OnTrade ?
randeljohnvalencia is offline  
Old 11/15/2014, 17:31   #7
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,497
Received Thanks: 3,525
In DPSrvr.cpp.
Lumi is offline  
Old 11/16/2014, 05:55   #8
 
elite*gold: 0
Join Date: Jul 2014
Posts: 167
Received Thanks: 7
how put the code in source?
randeljohnvalencia is offline  
Old 11/16/2014, 14:11   #9
 
elite*gold: 23
Join Date: Dec 2010
Posts: 743
Received Thanks: 617
Gnar Gnar..
Man cmon wake up. Search for this function CDPSrvr::OnTrade..
Which file is it? CDPSrvr::OnTrade(.cpp)

And add this under..
Quote:
void CDPSrvr::OnTrade( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
OBJID objidTrader;
ar >> objidTrader;

CWorld* pWorld;
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
if( IsValidObj( pUser ) && ( pWorld = pUser->GetWorld() ) && pUser->m_vtInfo.GetOther() == NULL )
{
CMover* pTrader = prj.GetMover( objidTrader );
if( IsValidObj( pTrader ) && pTrader->GetWorld() && pTrader->m_vtInfo.GetOther() == NULL )
{
if( pTrader->IsPlayer() ) // pc
{
.SnoX is offline  
Reply


Similar Threads Similar Threads
Is it allowed?
10/02/2012 - Dekaron - 5 Replies
I'm waiting for answers like : yes or no . I won't answer any other questions. Is it allowed to sell item create method on black market?
DeviantPvP-- Hardcore PvP Factions-- Raiding allowed---- Greifing Allowed
07/23/2012 - Minecraft Server Advertising - 0 Replies
Server info IP Address: 23.29.115.110:25571 Port: 25571 Slots: 140 The port is required or it wont let you on the server Staff Owner: Tmac Moderator:LemonLimeGreen
Minecraft Bukkit [24/7] No Rules Survival Server! [Killing Allowed] [Grief Allowed]
08/16/2011 - Minecraft Server Advertising - 0 Replies
Server DOWN... bitte löschtmal das thema hier :D
Ok tell me here if i get allowed too...
07/24/2008 - Dekaron - 3 Replies
Ok tell me here if i get alowed to copy ur Thread into mine and make all thread's into one. And i will post before ur Thread "Original posted by <Ur name here> and for they so want post ur Url to the thread and i copy it. :D And i would like to hear about ur answer on making 1 thread about all. This is a idea to make the forum more cleaner to avoid spam/flaming we could close it but if none want to do this just say no. :rolleyes: This is an example: Original posted by Whazzzup.



All times are GMT +1. The time now is 16:25.


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.