Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 00:28

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

Advertisement



Auswahl Reich - code python

Discussion on Auswahl Reich - code python within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2014
Posts: 5
Received Thanks: 0
Auswahl Reich - code python

Hallo. Ich möchte hinzufugen neue button und ich will werde das war immer noch ausgewählt, weil ich will hinzufugen auswahl Reich . Ich würde für den Code python fragen. Sehr bitte. Vielen dank.

Entschuldigung, aber meine Deutsch nicht so gut. xd
historia1233 is offline  
Old 07/30/2015, 16:06   #2
 
Poccix's Avatar
 
elite*gold: 44
Join Date: Dec 2009
Posts: 1,696
Received Thanks: 3,835
Deine Deutsch gar nicht gut, richtig.
Can you write your question in english?
Poccix is offline  
Old 07/30/2015, 16:40   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 46
Received Thanks: 1
er meint ob mann noch ein reich oder ein button fürs reich hinzufügen kann
cersus2015 is offline  
Old 07/30/2015, 16:46   #4
 
elite*gold: 0
Join Date: Feb 2014
Posts: 5
Received Thanks: 0
I must add choice kingdoms. I don't make selection. I want to do choice to one kingdom was marked permanently (pressed). I ask for the code in python. Thanks.
historia1233 is offline  
Old 07/30/2015, 19:29   #5
 
Poccix's Avatar
 
elite*gold: 44
Join Date: Dec 2009
Posts: 1,696
Received Thanks: 3,835
If i'm right, you want to say "You must select this kingdom - all other are disabled",
so you can use this to do that.

-------
introempire.py search for:
Code:
		self.empireID=app.GetRandom(1, 3)
replace with:
Code:
		self.empireID = 3
1 = Red Kingdom / 2 = Yellow Kingdom / 3 = Blue Kingdom

search for:
Code:
	class EmpireButton(ui.Window):
replace complete function with:
Code:
	class EmpireButton(ui.Window):
		def __init__(self, owner, arg):
			ui.Window.__init__(self)
			self.owner = owner
			self.arg = arg
			self.disabled = None
			
		def OnMouseOverIn(self):
			if self.disabled:
				return
			self.owner.OnOverInEmpire(self.arg)
			
		def OnMouseOverOut(self):
			if self.disabled:
				return
			self.owner.OnOverOutEmpire(self.arg)
			
		def OnMouseLeftButtonDown(self):
			if self.disabled:
				return
			if self.owner.empireID != self.arg:
				self.owner.OnSelectEmpire(self.arg)

		def DisableKingdom(self):
			self.disabled = True
search for:
Code:
			self.empireAreaButton[key] = btn
add under this:
Code:
			if key != self.empireID:
				btn.DisableKingdom()
search for:
Code:
			self.leftButton		= GetObject("left_button")
			self.rightButton	= GetObject("right_button")
add under this:
Code:
			self.leftButton.Hide()
			self.rightButton.Hide()
Poccix is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Reich aus der auswahl entfernen?
04/30/2014 - Metin2 Private Server - 15 Replies
Ja leute, ist es möglich ein reich aus der auswahl(am anfang) zu entfernen? Sprich, nicht das reich entfernen, sondern nur, das man Es beim Char erstellen nicht auswählen kann.. Hab mal auf ein paar Server gesehen das die nur 2 reiche haben, wie funz. sowas den?
[Python]Embedding code in C++
12/17/2013 - Metin2 - 3 Replies
Hey Leute, ich hab lange aufgehört das zu machen und wollte wieder anfangen. Erfahrungen mit C++ habe ich, aber jedes Mal, wenn ich versuche Code mit PyRun_SimpleString(string s); auszuführen, krieg ich nen Error geworfen. Code: Module Name: C:\Program Files (x86)\Metin2\metin2client.bin Time Stamp: 0x5272224d - (null)
Python Run Exe Code(without os.system)
05/31/2012 - Metin2 - 2 Replies
What is run exe code in python without os.system because when os.system starting exe , os.system open cmd then run it.



All times are GMT +2. The time now is 00:28.


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.