Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server > Flyff PServer Guides & Releases
You last visited: Today at 06:25

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

Advertisement



[Release] IP Ban command by Twisted

Discussion on [Release] IP Ban command by Twisted within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Closed Thread
 
Old 03/29/2012, 19:39   #16
 
420twisted1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 181
Received Thanks: 23
heres the thing if i can get CDPSrvr::LoadIPCut( LPCSTR lpszFileName ) to work in the command this code will work perfect but i cant call it because it is in dpsrvr in acountserver and when i try it looks in dpservr in worldserver for LoadIPCut

can some one give me advice as to how to call this?

ps... I'm also working on a temp ban command that allows you to select how long a user is banned for 1 - 30 days

Code:
BOOL TextCmd_PERM_BAN( CScanner & scanner )
{
#ifdef __WORLDSERVER
	CUser* pUser = (CUser*)scanner.dwValue;
	
	scanner.GetToken();
	u_long idTarget	= CPlayerDataCenter::GetInstance()->GetPlayerId( scanner.token );

	if( idTarget == 0 )
		idTarget = pUser->m_idPlayer;

	CUser* pTarget	= g_UserMng.GetUserByPlayerID( idTarget );	

	if( !IsValidObj( pTarget ) )
	{
		pUser->AddText( "Invalid target name." );		
		return TRUE;
	}
	
	CString TNickName;
	CString UNickName;
	char szBannish[MAX_PATH];
	CString strTargetIp;
	CString strPath;
	TNickName = pTarget->GetName();
	UNickName = pUser->GetName();
	CString strIp = pTarget->m_playAccount.lpAddr;
	CString strAccnt = pTarget->m_playAccount.lpszAccount;
	
	if( pUser->IsAuthHigher( AUTH_GAMEMASTER ) ) 
	{
	    sprintf( szBannish, "%s , you have been Banned by [Staff member]--> %s", TNickName, UNickName );
	    pTarget->AddText( szBannish );
		strTargetIp.Format( "%s - %s // Accnt %s  UserNname %s was banned by Staff member %s ", strIp,  strIp, strAccnt, TNickName, UNickName );
		strPath.Format( "..\\Program\\IPCut.ini" );
		DSystemLog( strTargetIp, strPath, 0 );
// -> //LoadIPCut( "IPCut.ini" );
		pUser->AddText("User has been Banned");
	}
#endif // __WORLDSERVER
	return TRUE;
}
420twisted1 is offline  
Old 03/29/2012, 21:39   #17
 
Jomex's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 24
Received Thanks: 16
make a packet that worldserver will send to account server to reload ipcut.ini on packet receive.

EDIT:also in your command you have to dc target user.
Jomex is offline  
Old 03/30/2012, 04:03   #18
 
420twisted1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 181
Received Thanks: 23
Quote:
Originally Posted by Jomex View Post
make a packet that worldserver will send to account server to reload ipcut.ini on packet receive.

EDIT:also in your command you have to dc target user.
yea i already added the d/c part working on making the packet
420twisted1 is offline  
Old 08/21/2014, 05:32   #19
 
Ecrypter's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
hi how can i banned totally or permanent ip ban of the player in the server.,


sorry for my bad english., thanks in advance
Ecrypter is offline  
Old 08/21/2014, 18:41   #20
 
elite*gold: 20
Join Date: Aug 2014
Posts: 105
Received Thanks: 9
Quote:
Originally Posted by Ecrypter View Post
hi how can i banned totally or permanent ip ban of the player in the server.,


sorry for my bad english., thanks in advance
"/ban username" || Richtig Comedy der Junge
Ętheria is offline  
Thanks
2 Users
Old 08/26/2014, 19:03   #21
 
elite*gold: 0
Join Date: Apr 2014
Posts: 193
Received Thanks: 3
I get an error :

\Source\Program\_Interface\FuncTextCmd.cpp(757): error C3861: 'DSystemLog': identifier not found, even with argument-dependent lookup

can you told me how to add DSystemLog?
DerHeiligeJesus is offline  
Old 08/26/2014, 19:50   #22
 
Ecrypter's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
how can i banned ip of the payers not the character.,

thanks in advance
Ecrypter is offline  
Old 08/27/2014, 04:09   #23



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,177
Received Thanks: 14,471
Click on a player and then use /ip so you see his/her ip. Now add it into the Ipcut.ini and let the account server reload it.
Sedrika is offline  
Old 09/03/2014, 15:10   #24
 
Ecrypter's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
Quote:
Originally Posted by Sedrika View Post
Click on a player and then use /ip so you see his/her ip. Now add it into the Ipcut.ini and let the account server reload it.

can you give me exact details how the proper putting ip in the ipcute because i see this

ip 79.194.0.0 - 79.194.255.255

thanks in advance to your reply
Ecrypter is offline  
Closed Thread


Similar Threads Similar Threads
[Release] Summoners Rift: 6v6,12v12. Twisted Treeline: 6v6, and Dominion(kinda!)
09/23/2012 - League of Legends Hacks, Bots, Cheats & Exploits - 86 Replies
Download Readme contents: 3 Files are included: -AirGeneratedContent.swf - Sets the map player limit -6v6.swf - Removes the checks for map max limit. -dominion.swf - Removes the checks for map max limit and forces the gametype to dominion (same ruleset as Classic but allows the new summoners + shows up in match history). Installing: -AirGeneratedContent.swf - Place in: C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\0.0. 0.75\deploy\assets (yes overwrite). -6v6/dominion...
PAX TWISTED FATE !!!!!!!!!! No jax No sivir Its TWISTED FATE
01/20/2012 - League of Legends Trading - 8 Replies
Hello i want to sell Pax Twisted fate CODE SERIAL !!!!!!!!!!!!!!!!!!!!!!!! It works For US Server (don't Know On EU) The code has been given out in 2009 Pax (only 20.000 Codes Was Given Out) Now I got This Super Extra rare code For SALE !!!!!!!!!!!!!!! I accept paypal payments only ! (full verified)



All times are GMT +2. The time now is 06:25.


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