Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 12:36

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

Advertisement



[How To] New Login-System(Trailer & Notices)

Discussion on [How To] New Login-System(Trailer & Notices) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
kralcocuk's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 68
Received Thanks: 103
[How To] New Login-System(Trailer & Notices)

Hello,
You can use according to your wishes.
Trailer:


Notices:



How to ?;

Open root.epk&eix / open intrologin.py:
search :

Code:
if IsFullBackImage():

change:
Code:
		if IsFullBackImage():
			self.GetChild("bg1").Show()
			self.BgBoard.Show()
			self.GetChild("bg2").Hide()
			self.Refresh()
		if self.GetWidth()==1280 and self.GetHeight()==720:
				self.SetCenterPosition()
				x, y = self.GetGlobalPosition()
				sx, sy = x + 10, y + 30
				ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
				url = "http://turkey.com.nu/1.html"
				app.ShowWebPage(url, (sx, sy, ex, ey))
		elif self.GetWidth()==1280 and self.GetHeight()==768:
			self.SetCenterPosition()
			x, y = self.GetGlobalPosition()
			sx, sy = x + 10, y + 30
			ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
			url = "http://turkey.com.nu/2.html"
			app.ShowWebPage(url, (sx, sy, ex, ey))
		elif self.GetWidth()==1280 and self.GetHeight()==800:
			self.SetCenterPosition()
			x, y = self.GetGlobalPosition()
			sx, sy = x + 10, y + 30
			ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
			url = "http://turkey.com.nu/3.html"
			app.ShowWebPage(url, (sx, sy, ex, ey))
		elif self.GetWidth()==1280 and self.GetHeight()==960:
			self.SetCenterPosition()
			x, y = self.GetGlobalPosition()
			sx, sy = x + 10, y + 30
			ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
			url = "http://turkey.com.nu/4.html"
			app.ShowWebPage(url, (sx, sy, ex, ey))
		elif self.GetWidth()==1280 and self.GetHeight()>=960:
			self.SetCenterPosition()
			x, y = self.GetGlobalPosition()
			sx, sy = x + 10, y + 30
			ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
			url = "http://turkey.com.nu/5.html"
			app.ShowWebPage(url, (sx, sy, ex, ey))
		elif self.GetWidth()==1280 and self.GetHeight()>=1024:
			self.SetCenterPosition()
			x, y = self.GetGlobalPosition()
			sx, sy = x + 10, y + 30
			ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
			url = "http://turkey.com.nu/5.html"
			app.ShowWebPage(url, (sx, sy, ex, ey))
		elif self.GetWidth()==1024 and self.GetHeight()==768:
			self.SetCenterPosition()
			x, y = self.GetGlobalPosition()
			sx, sy = x + 10, y + 30
			ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
			url = "http://turkey.com.nu/6.html"
			app.ShowWebPage(url, (sx, sy, ex, ey))
		elif self.GetWidth()==800 and self.GetHeight()==600:
			self.SetCenterPosition()
			x, y = self.GetGlobalPosition()
			sx, sy = x + 10, y + 30
			ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
			url = "http://turkey.com.nu/7.html"
			app.ShowWebPage(url, (sx, sy, ex, ey))
		elif self.GetWidth()==1152 and self.GetHeight()==864:
			self.SetCenterPosition()
			x, y = self.GetGlobalPosition()
			sx, sy = x + 10, y + 30
			ex, ey = sx + self.GetWidth() - 50, sy + self.GetHeight() - 70
			url = "http://turkey.com.nu/8.html"
			app.ShowWebPage(url, (sx, sy, ex, ey))
		return 1
Search:
Code:
self.loadingImage = None

Add:
Code:
		self.BgBoard = None
		self.BgButton = None
Search:
Code:
GetObject("LoginExitButton")

Add:
Code:
			self.BgBoard				= GetObject("BgBoard")
			self.BgButton				= GetObject("BgButton")
Search:
Code:
self.loginExitButton.SetEvent
Add:
Code:
		self.BgButton.SetEvent(ui.__mem_func__(self.__OnClickBgButton))

Search:
Code:
def __OnClickLoginButton
Add:
Code:
	def __OnClickBgButton(self):
			self.BgBoard.Hide() 
			app.HideWebPage()

Search:
Code:
if SKIP_LOGIN_PHASE:
Add:
Code:
self.BgBoard.Hide()

Search:
Code:
def BINARY_OnRunupMatrixQuiz
Add:
Code:
		self.BgBoard.Hide()

Search:
Code:
def BINARY_OnNEWCIBNPasspodRequest
Add:
Code:
		self.BgBoard.Hide()

Search:
Code:
self.serverBoard.SetPosition(self.xServerBoard, self.yServerBoard)
Add:
Code:
self.BgBoard.Show()

Search:
Code:
self.serverBoard.SetPosition(self.xServerBoard, wndMgr.GetScreenHeight())
Add:
Code:
self.BgBoard.Hide()

Search:
Code:
self.Connect(self.id, self.pwd)
Add:
Code:
self.BgBoard.Hide()

Search:
Code:
def __OnClickSelectConnectButton
Add:
Code:
self.BgBoard.Hide()


Open: Locale_%.epk&eix -- Open: Locale/%/ui/loginwindow.py
Search:
Code:
SERVER_BOARD_WEIGHT
Add:
Code:
WEB_WIDTH = 500
WEB_HEIGHT = 350
Search:
Code:
## ConnectBoard
Add:
Code:
		## BgBoard
		{
			'name' : 'BgBoard',
			'type' : 'thinboard',
			'x' : (SCREEN_WIDTH - 574) / 2,
			'y' : (SCREEN_HEIGHT - 60 + 10),
			'width' : 574,
			'height' : 54,
			"color" : 0xff777777,

			"children" :
			(
				{
					"name" : "TitleBar",
					"type" : "titlebar",
					"style" : ("attach",),

					"x" : 100,
					"y" : 5,

					"width" : 375,
					"color" : "red",
		
					"children" :
					(
						{ "name":"TitleName", "type":"text", "x":180, "y":3, "text": "Videoyu ilk kez izliyorsanız, tamamını izlemeniz önerilir.", "text_horizontal_align":"center" },
					),
				},
				{
					"name" : "BgButton",
                    "type" : "button",
					"vertical_align" : "center",
					"x" : 200,
					"y" : 15,
					"vertical_align" : "center",
                    "default_image" : "d:/ymir work/ui/public/XLarge_Button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/XLarge_Button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/XLarge_Button_03.sub",
					"text" : "Skip Videos",
				
				},
			),
		},




Download:
Ready files(intrologin.py+loginwindow.py+ftp files):
Ftp files:
pass:
kralcocuk
Virus total ftp files:
Virus total ready files:
kralcocuk is offline  
Thanks
8 Users
Old 02/12/2012, 00:53   #2
 
dimaska's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 477
Received Thanks: 79
wieder mal was neues und nützliches danke! so kann man direkt beim login die news hinzufügen dann kriegt es auch jeder mitspieler mit
dimaska is offline  
Thanks
1 User
Old 02/12/2012, 00:56   #3
 
ηєσχ's Avatar
 
elite*gold: 53
Join Date: Feb 2009
Posts: 2,041
Received Thanks: 617
gut gemacht aber das fenster ist zu groß.

Man könnte das auch unter dem Login machen
ηєσχ is offline  
Thanks
1 User
Old 02/12/2012, 00:57   #4
 
ToBii™'s Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 385
Received Thanks: 260
@Neox das kann man ja im Sricpt ändern

Thanks, good job
ToBii™ is offline  
Thanks
2 Users
Old 02/12/2012, 10:50   #5
 
kralcocuk's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 68
Received Thanks: 103
Quote:
Originally Posted by °NeoX° View Post
gut gemacht aber das fenster ist zu groß.

Man könnte das auch unter dem Login machen
Quote:
Originally Posted by ToBii™ View Post
@Neox das kann man ja im Sricpt ändern

Thanks, good job
exactly
kralcocuk is offline  
Old 02/12/2012, 10:57   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 1,702
Received Thanks: 1,468
So finde ich das nicht toll. Das Design ist einfach nicht meins.
Ich hab in meinem Login neben dem Benutzerfeld links ein Trailer & Rechts ein Newsfeld.
.Awesoome is offline  
Old 02/12/2012, 10:58   #7
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,994
Received Thanks: 3,389
The music has made headache..

It's a good idee, but i won't use it.

Thanks for Release.
Nick is offline  
Old 02/12/2012, 11:05   #8
 
kralcocuk's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 68
Received Thanks: 103
Virus total ftp files:
Virus total ready files:
kralcocuk is offline  
Old 06/19/2012, 18:10   #9
 
elite*gold: 0
Join Date: Jun 2012
Posts: 127
Received Thanks: 66
Richtig gut ^^
Brigatagraz is offline  
Old 08/10/2012, 15:08   #10
 
elite*gold: 0
Join Date: Jul 2011
Posts: 7
Received Thanks: 1
güzel gobel
superswkardes is offline  
Old 08/10/2012, 15:32   #11

 
vıo's Avatar
 
elite*gold: 0
The Black Market: 128/1/0
Join Date: Jun 2012
Posts: 1,768
Received Thanks: 356
Music Geschmack müsste überarbeitet werden :P
vıo is offline  
Reply

Tags
ingame, metin2, notices, trailer


Similar Threads Similar Threads
[Trailer] Grand Chase Chaos - Hideout System Trailer
06/17/2012 - Grand Chase Philippines - 24 Replies
Grand Chase Chaos - Hideout System Trailer This is the sneak preview of the Hideout System. and here's the comic preview: http://www.grandchase.info/wp-content/uploads/201 1/07/lololodsl.png
Login System
05/09/2010 - Silkroad Online - 4 Replies
Ok so I was testing something today and so i logged into silkroad.and did a netstat -n and got this:http://i41.tinypic.com/2lbf883.jpg would there be a way to redirct the login stuff to that ?
Sro new login system...
10/12/2009 - Silkroad Online - 22 Replies
any quicker way to login i left it on to log in for like 6 hours literally it did not get it -.- ...
Bot Notices
03/27/2007 - Silkroad Online - 2 Replies
So can someone please say what those bot Notices mean, like: "5730 Flag 4" "act notification 4" "act notification 2" and so on...



All times are GMT +1. The time now is 12:36.


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.