Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 10:35

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

Advertisement



[Python]ButtonTaskBar

Discussion on [Python]ButtonTaskBar within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2009
Posts: 70
Received Thanks: 5
[Python]ButtonTaskBar

Germany :
Hallo Community
Hier habe ich versucht, eine Taste auf der Taskleiste zu implementieren, mit der Funktion öffnet sich eine Seite BonusBoard.
Ich Vien an Ihnen, ob ich auf dem richtigen Weg bin.
--------------------------------------------------------------
English :
Hi community
Here I tried to implement a button on the taskbar, with the function opens a page BonusBoard.
I vien to you whether I'm on the right track.

--------------------------------------------------------------
Code:
    def __OnBonus(self):
		if self.wndTaskBar.IsShow():
			self.wndTaskBar.Hide()
		else:
			self.wndTaskBar.SetTop()
			self.wndTaskBar.Show()
##BonusPageDialog
			self.GetChild("Sword_def_Value").SetText(str(player.GetStatus(69)))
			self.GetChild("Twohand_def_Value").SetText(str(player.GetStatus(70)))
			self.GetChild("Knife_def_Value").SetText(str(player.GetStatus(71)))
			self.GetChild("Bow_def_Value").SetText(str(player.GetStatus(74)))
			self.GetChild("Bell_def_Value").SetText(str(player.GetStatus(72)))
			self.GetChild("Fan_def_Value").SetText(str(player.GetStatus(73)))
			self.GetChild("Magic_def_Value").SetText(str(player.GetStatus(77)))
			self.GetChild("Poison_def_Value").SetText(str(player.GetStatus(81)))
			self.GetChild("Warrior_def_Value").SetText(str(player.GetStatus(59)))
			self.GetChild("Assassin_def_Value").SetText(str(player.GetStatus(60)))
			self.GetChild("Sura_def_Value").SetText(str(player.GetStatus(61)))
			self.GetChild("Mage_def_Value").SetText(str(player.GetStatus(62)))
			self.GetChild("Crit_Value").SetText(str(player.GetStatus(40)))
			self.GetChild("Pierce_Value").SetText(str(player.GetStatus(41)))
			self.GetChild("Hitdmg_Value").SetText(str(player.GetStatus(122)))
			self.GetChild("Skilldmg_Value").SetText(str(player.GetStatus(121)))
			self.GetChild("Halfhuman_Value").SetText(str(player.GetStatus(43)))
			self.GetChild("Undead_Value").SetText(str(player.GetStatus(47)))
			self.GetChild("Devil_Value").SetText(str(player.GetStatus(48)))
			self.GetChild("Warrior_str_Value").SetText(str(player.GetStatus(54)))
			self.GetChild("Assassin_str_Value").SetText(str(player.GetStatus(55)))
			self.GetChild("Sura_str_Value").SetText(str(player.GetStatus(56)))
			self.GetChild("Mage_str_Value").SetText(str(player.GetStatus(57)))
##BonusPageDialog End

##BonusPageDialog
	def __LoadRefreshBonus(self):
		self.RefreshBonus()

	def RefreshBonus(self):
		try:
			self.GetChild("Sword_def_Value").SetText(str(player.GetStatus(69)))
			self.GetChild("Twohand_def_Value").SetText(str(player.GetStatus(70)))
			self.GetChild("Knife_def_Value").SetText(str(player.GetStatus(71)))
			self.GetChild("Bow_def_Value").SetText(str(player.GetStatus(74)))
			self.GetChild("Bell_def_Value").SetText(str(player.GetStatus(72)))
			self.GetChild("Fan_def_Value").SetText(str(player.GetStatus(73)))
			self.GetChild("Magic_def_Value").SetText(str(player.GetStatus(77)))
			self.GetChild("Poison_def_Value").SetText(str(player.GetStatus(81)))
			self.GetChild("Warrior_def_Value").SetText(str(player.GetStatus(59)))
			self.GetChild("Assassin_def_Value").SetText(str(player.GetStatus(60)))
			self.GetChild("Sura_def_Value").SetText(str(player.GetStatus(61)))
			self.GetChild("Mage_def_Value").SetText(str(player.GetStatus(62)))
			self.GetChild("Crit_Value").SetText(str(player.GetStatus(40)))
			self.GetChild("Pierce_Value").SetText(str(player.GetStatus(41)))
			self.GetChild("Hitdmg_Value").SetText(str(player.GetStatus(122)))
			self.GetChild("Skilldmg_Value").SetText(str(player.GetStatus(121)))
			self.GetChild("Halfhuman_Value").SetText(str(player.GetStatus(43)))
			self.GetChild("Undead_Value").SetText(str(player.GetStatus(47)))
			self.GetChild("Devil_Value").SetText(str(player.GetStatus(48)))
			self.GetChild("Warrior_str_Value").SetText(str(player.GetStatus(54)))
			self.GetChild("Assassin_str_Value").SetText(str(player.GetStatus(55)))
			self.GetChild("Sura_str_Value").SetText(str(player.GetStatus(56)))
			self.GetChild("Mage_str_Value").SetText(str(player.GetStatus(57)))
		except:
			import exception
			exception.Abort("InventoryWindow.RefreshBonus.BindObject")
##BonusPageDialog End

##BonusPageDialog
	def OnUpdate(self):
		if self.isLoaded == 1:
			self.__LoadRefreshBonus()
##BonusPageDialog
Thanks for Help

Up

Up

Up's
hsu59 is offline  
Reply


Similar Threads Similar Threads
[Python-Modul]EXP-Donator (kompatibel mit Python Loader)
11/23/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 27 Replies
Moin, da man mich danach gefragt hat und ich sowieso mal ein Beispiel für die Benutzung meines Python Loaders veröffentlichen wollte, habe ich die Gelegenheit genutzt und euch eben einen EXP-Spendebot geschrieben. Man kann ihn einfach mit dem oben verlinkten Python Module Loader laden und ihn mit F5 aktivieren/deaktivieren. Sobald ihr mehr als 99 Erfahrungspunkte habt (man kann nur in 100er Schritten spenden), werden alle Erfahrungspunkte an eure Gilde gespendet. Wer Lust hat und...
Python
08/16/2012 - Metin2 - 2 Replies
Wollte mal Fragen ob mir jemand erklären zeigen könnte wie man mit python VID's ausließt also in der umgebung und/oder mir das Modpack von darealfreak geben könnte da es den Thread nicht mehr gibt ;) Thanks im vorraus Mfg Joshi
Python + Eric Python IDE installieren ?!
07/05/2011 - General Coding - 0 Replies
hat sich erledigt.
Python
09/12/2009 - Dekaron - 5 Replies
Leveling in python, where is the boss that spawns? Is there deffo 1 ? And how do oyu get to tomb, i get outside theres a NPC sitting outside and i wallkhack thru the gate but i dont no how to go into the differnt world?



All times are GMT +2. The time now is 10:35.


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.