Register for your free account! | Forgot your password?

You last visited: Today at 05:11

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

Advertisement



[RLS]Client-server after ban.

Discussion on [RLS]Client-server after ban. within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 58
[RLS]Client-server after ban.

Hello. Today I want to show You, how to edit messages/functions which we see, when our account is unavailable. With this, our client can.. play music or run our server`s website when server is unavailable. How?

Look, open intrologin.py (root), and u can see table of statuses and messages:
Code:
		self.loginFailureMsgDict={
			#"DEFAULT" : locale.LOGIN_FAILURE_UNKNOWN,

			"ALREADY"	: locale.LOGIN_FAILURE_ALREAY,
			"NOID"		: locale.LOGIN_FAILURE_WRONG_PASSWORD,
			"WRONGPWD"	: locale.LOGIN_FAILURE_WRONG_PASSWORD,
			"FULL"		: locale.LOGIN_FAILURE_TOO_MANY_USER,
			"SHUTDOWN"	: locale.LOGIN_FAILURE_SHUTDOWN,
			"REPAIR"	: locale.LOGIN_FAILURE_REPAIR_ID,
			"BLOCK"		: locale.LOGIN_FAILURE_BLOCK_ID,
			"WRONGMAT"	: locale.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER,
			"QUIT"		: locale.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER_TRIPLE,
			"BESAMEKEY"	: locale.LOGIN_FAILURE_BE_SAME_KEY,
			"NOTAVAIL"	: locale.LOGIN_FAILURE_NOT_AVAIL,
			"NOBILL"	: locale.LOGIN_FAILURE_NOBILL,
			"BLKLOGIN"	: locale.LOGIN_FAILURE_BLOCK_LOGIN,
			"WEBBLK"	: locale.LOGIN_FAILURE_WEB_BLOCK,
		}
For example, if account.account status = "BLOCK", then we are banned and we see message located in locale.LOGIN_FAILURE_BLOCK_ID etc.
So we can add a line like this:
Code:
"BITCH"	: "Serveradmin is a bitch, and he can`t run this server!",
and, when admin send query:
UPDATE account.account SET status = "BITCH";
then, everybody will see a message

Second... Next table:
Code:
		self.loginFailureFuncDict = {
			"WRONGPWD"	: self.__DisconnectAndInputPassword,
			"WRONGMAT"	: self.__DisconnectAndInputMatrix,
			"QUIT"		: app.Exit,
		}
There we see a status and function which will be runned, when we`ll try to log on account with status = "QUIT". app.Exit = client will be closed.
So, we can write new function.. something like "self.PlaySound" and, when admin set all statuses, we will hear music


Sorry for my english, i hope that you understand
Have fun.!
xDeStRuCtx is offline  
Thanks
9 Users
Old 02/12/2013, 16:11   #2
 
.Sinnex's Avatar
 
elite*gold: 3
Join Date: Jun 2012
Posts: 152
Received Thanks: 90
Danke für die Mühe <3


Greez
.Sinnex is offline  
Old 02/12/2013, 16:39   #3
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,358
I've seen this several times before. Last time a week ago.
Mi4uric3 is offline  
Old 02/12/2013, 16:48   #4
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 58
@UP
where?
xDeStRuCtx is offline  
Old 02/12/2013, 20:55   #5
 
DEMONKING.'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 290
Received Thanks: 357
I didn't understand
If my account blocked
And I add this function
What will happen
DEMONKING. is offline  
Old 02/12/2013, 20:59   #6

 
.Kaycon's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 355
Received Thanks: 427
Danke fürs teilen, scheint recht nützlich zu sein.
.Kaycon is offline  
Old 02/12/2013, 21:33   #7
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 58
@DEMON
you can for example.. create new status 'VALIDATING'. Then, after creating new account on your website, you send query to set status of account to 'VALIDATING'. After that, if you will try to login you will see a message from client, that you have to validate this account. When you`ll activate email, next query = set status to 'OK' and account will be ready.
xDeStRuCtx is offline  
Thanks
1 User
Old 02/12/2013, 22:25   #8
 
-TÜRK-'s Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 434
Good Tut.
-TÜRK- is offline  
Old 02/14/2013, 19:08   #9
 
elite*gold: 21
Join Date: Oct 2012
Posts: 374
Received Thanks: 524




allready public
Analyze™ is offline  
Old 02/14/2013, 19:22   #10
 
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 58
@UP
Show me, where is something about this
Quote:
There we see a status and function which will be runned, when we`ll try to log on account with status = "QUIT". app.Exit = client will be closed.
So, we can write new function.. something like "self.PlaySound" and, when admin set all statuses, we will hear music
it`s the most important thing in this tutorial
xDeStRuCtx is offline  
Old 02/14/2013, 19:51   #11


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
I think everybody knew this since they are working with the client.
#SoNiice is offline  
Reply


Similar Threads Similar Threads
2011er Client/Files Server mit 2010er Client zocken.
09/10/2011 - Metin2 - 3 Replies
Ich zocke auf Imba-2010. Und zwar hat der Server glaube ich 2011er Client oder Files. Mein Problem ist dort kann ich nicht den Client modden. Im spiel sind die meisten dann unsichtbar und manche Characktäre von mir auch und kann auch nicht laufen. Meine Frage ist, kann ich irgendwie mit einem 2010er Client auf den Server spielen. Wenn jah könnt ihr mir sagen wie ? Sorry wenn das hier unpassend ist. Ich kenne mich hier nicht so wirklich aus. Fange grad mit allem an. Thxz im vorraus...



All times are GMT +1. The time now is 05:13.


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.