Register for your free account! | Forgot your password?

Go Back   elitepvpers > Metin2 > Metin2 PServer - Discussions / Questions > Metin2 PServer Guides & Strategies
You last visited: Today at 20:45

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

 

[Python]How To BonusBoard + Minimierbar im Inventar

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2015
Posts: 22
Received Thanks: 58
[Python]How To BonusBoard + Minimierbar im Inventar

Hallöchen poste mal heute den Bonusboard im Inventar mit Minimieren
so sieht das ganze aus <33


als erstes entpackt ihr euren locale_de und geht in den folgendenverzeichnis

locale_de\locale\de\ui

und öffnet dort

inventorywindow.py




Abspeichern und locale_de packen und in den client schmeissen


als nächstes entpacken wir root und öffnen

uiinventory.py



das ist alles

Danke an P3NG3R für das Bonus Board



q.@quaresma741 is offline  
Thanks
5 Users
Old   #2
 
elite*gold: 0
Join Date: Aug 2012
Posts: 942
Received Thanks: 85
woher ließt du das aus?
Code:
		self.GetChild("bonus_1").SetText(str(player.GetStatus(69)))
		self.GetChild("bonus_2").SetText(str(player.GetStatus(70)))
		self.GetChild("bonus_3").SetText(str(player.GetStatus(71)))
		self.GetChild("bonus_4").SetText(str(player.GetStatus(74)))
		self.GetChild("bonus_5").SetText(str(player.GetStatus(72)))
		self.GetChild("bonus_6").SetText(str(player.GetStatus(73)))
		self.GetChild("bonus_7").SetText(str(player.GetStatus(77)))
		self.GetChild("bonus_8").SetText(str(player.GetStatus(81)))
		self.GetChild("bonus_9").SetText(str(player.GetStatus(59)))
		self.GetChild("bonus_10").SetText(str(player.GetStatus(60)))
		self.GetChild("bonus_11").SetText(str(player.GetStatus(61)))
		self.GetChild("bonus_12").SetText(str(player.GetStatus(62)))
		self.GetChild("bonus_13").SetText(str(player.GetStatus(40)))
		self.GetChild("bonus_14").SetText(str(player.GetStatus(41)))
		self.GetChild("bonus_15").SetText(str(player.GetStatus(122)))
		self.GetChild("bonus_16").SetText(str(player.GetStatus(121)))
		self.GetChild("bonus_17").SetText(str(player.GetStatus(43)))
		self.GetChild("bonus_18").SetText(str(player.GetStatus(47)))
		self.GetChild("bonus_19").SetText(str(player.GetStatus(48)))
		self.GetChild("bonus_20").SetText(str(player.GetStatus(54)))
		self.GetChild("bonus_21").SetText(str(player.GetStatus(55)))
		self.GetChild("bonus_22").SetText(str(player.GetStatus(56)))
		self.GetChild("bonus_23").SetText(str(player.GetStatus(57)))


thespeedyy is offline  
Old   #3
 
elite*gold: 10
Join Date: Jul 2013
Posts: 85
Received Thanks: 347
Talking

I think this it looks ok.
(Not tested, and maybe looks like ****)

Code:
MAX_LEN_BONUS = 23
LIST_VALUE_BONUS = {
	0	: 69,   1	: 70,
	2	: 71,   3	: 74,
	4	: 72,   5	: 73,
	6	: 77,   7	: 81,
	8	: 59,   9	: 60,
	10	: 61,   11	: 62,
	12	: 40,   13	: 41,
	14	: 122,  15	: 121,
	16	: 43,   17	: 47,
	18	: 48,   19	: 54,
	20	: 55,   21	: 56,
	22	: 57
}

for tmp in xrange(1, MAX_LEN_BONUS + 1):
	self.GetChild("bonus_%d" % (tmp)).SetText(str(player.GetStatus(LIST_VALUE_BONUS[tmp-1])))
Debug mode:

You must register and activate your account in order to view images.




Thank u for release ^
VegaS ♆ is offline  
Old   #4
 
elite*gold: 0
Join Date: Aug 2012
Posts: 942
Received Thanks: 85
mhh :/ this cant help me^^


thespeedyy is offline  
Old   #5
 
elite*gold: 0
The Black Market: 105/0/0
Join Date: May 2016
Posts: 8,614
Received Thanks: 1,540
Sieht Fresh aus und definitiv hilfreich, danke für den RLS
悪地城 is offline  
Old   #6
 
elite*gold: 0
Join Date: Feb 2016
Posts: 10
Received Thanks: 8
*

Code:
BONUS_LIST = [ 69, 70, 71, 74, 72, 73, 77, 81, 59, 60, 61, 62, 40, 41, 122, 121, 43, 47, 48, 54, 55, 56, 57 ]
for i in range(1, 23+1):
	self.GetChild("bonus_%d" % i).SetText(str(player.GetStatus(BONUS_LIST[i-1])))
mq1n4 is offline  
Old   #7
 
elite*gold: 0
Join Date: Aug 2012
Posts: 942
Received Thanks: 85
Ok und wie ändern ich dann welche Bonis anzeigt werden wenn GetStartus so komisch berechnet wird?
thespeedyy is offline  
Old   #8
 
elite*gold: 0
Join Date: Jan 2011
Posts: 53
Received Thanks: 2
Work but after teleport :

Code:
1016 17:49:13822 :: Traceback (most recent call last):

1016 17:49:13823 ::   File "uiInventory.py", line 1503, in OnUpdate

1016 17:49:13823 ::   File "uiInventory.py", line 865, in ReloadBonus

1016 17:49:13823 ::   File "ui.py", line 2835, in GetChild

1016 17:49:13823 :: KeyError
1016 17:49:13823 :: : 
1016 17:49:13823 :: 'bonus_1'
1016 17:49:13823 ::
You can easy fix this one
worldend is offline  
Old   #9
 
elite*gold: 0
Join Date: Sep 2016
Posts: 13
Received Thanks: 13
Eine nettes Feature!
xRed™ is offline  
Old   #10
 
elite*gold: 150
Join Date: Feb 2009
Posts: 553
Received Thanks: 497
Quote:
Originally Posted by worldend View Post
Work but after teleport :

Code:
1016 17:49:13822 :: Traceback (most recent call last):

1016 17:49:13823 ::   File "uiInventory.py", line 1503, in OnUpdate

1016 17:49:13823 ::   File "uiInventory.py", line 865, in ReloadBonus

1016 17:49:13823 ::   File "ui.py", line 2835, in GetChild

1016 17:49:13823 :: KeyError
1016 17:49:13823 :: : 
1016 17:49:13823 :: 'bonus_1'
1016 17:49:13823 ::
You can easy fix this one
Okay... how? ;D

MfG
Cyber
Cyber36 is offline  
Old   #11
 
elite*gold: 0
Join Date: Dec 2014
Posts: 33
Received Thanks: 22
You must register and activate your account in order to view images.

( woran liegt das ? )
..ѕιяιυѕѕ¢нωєят is offline  
Old   #12
 
elite*gold: 0
Join Date: Jul 2015
Posts: 22
Received Thanks: 58
Quote:
Originally Posted by ..ѕιяιυѕѕ¢нωєят View Post
You must register and activate your account in order to view images.

( woran liegt das ? )
inventorywindow.py mach den schritt nochmal wenns geht
SPACE_BONUS_INVENTORY wie im spoiler bzw im bild einfügen

Quote:
Originally Posted by worldend View Post
Work but after teleport :

Code:
1016 17:49:13822 :: Traceback (most recent call last):

1016 17:49:13823 ::   File "uiInventory.py", line 1503, in OnUpdate

1016 17:49:13823 ::   File "uiInventory.py", line 865, in ReloadBonus

1016 17:49:13823 ::   File "ui.py", line 2835, in GetChild

1016 17:49:13823 :: KeyError
1016 17:49:13823 :: : 
1016 17:49:13823 :: 'bonus_1'
1016 17:49:13823 ::
You can easy fix this one
Muss ich mir die tage ansehen hab grad viel Uni Kram um die ohren
q.@quaresma741 is offline  
Old   #13
 
elite*gold: 44
Join Date: Dec 2009
Posts: 1,687
Received Thanks: 3,809
Quote:
Originally Posted by [SGA]Vegas View Post
I think this it looks ok.
(Not tested, and maybe looks like shit)

Code:
MAX_LEN_BONUS = 23
LIST_VALUE_BONUS = {
	0	: 69,   1	: 70,
	2	: 71,   3	: 74,
	4	: 72,   5	: 73,
	6	: 77,   7	: 81,
	8	: 59,   9	: 60,
	10	: 61,   11	: 62,
	12	: 40,   13	: 41,
	14	: 122,  15	: 121,
	16	: 43,   17	: 47,
	18	: 48,   19	: 54,
	20	: 55,   21	: 56,
	22	: 57
}

for tmp in xrange(1, MAX_LEN_BONUS + 1):
	self.GetChild("bonus_%d" % (str(tmp))).SetText(str(player.GetStatus(LIST_VALUE_BONUS[tmp-1])))
Quote:
Originally Posted by mq1n4 View Post
*

Code:
BONUS_LIST = [ 69, 70, 71, 74, 72, 73, 77, 81, 59, 60, 61, 62, 40, 41, 122, 121, 43, 47, 48, 54, 55, 56, 57 ]
for i in range(1, 23+1):
	self.GetChild("bonus_%d" % i).SetText(str(player.GetStatus(BONUS_LIST[i-1])))

Wieso, wenn ihr es schon dynamischer machen wollt, die Anzahl statisch setzen ?

Entweder:

Quote:
for i in range(1, len(LIST_VALUE_BONUS)+1):
Oder:

Quote:
for i in range(1, len(BONUS_LIST)+1):
???
Poccix is offline  
Old   #14
 
elite*gold: 0
Join Date: Feb 2016
Posts: 10
Received Thanks: 8
Quote:
Originally Posted by Poccix View Post
Wieso, wenn ihr es schon dynamischer machen wollt, die Anzahl statisch setzen ?

Entweder:



Oder:



???
If you want 2x memory usage with len, no problem you can use what do you want.
mq1n4 is offline  
Old   #15
 
elite*gold: 0
Join Date: Dec 2014
Posts: 898
Received Thanks: 383


Jemand so freundlich und hilft mir? Hab nicht wirklich Ahnung von Python :x


BizepsSupportAccount is offline  
Reply

Tags
bonusboard, metin2, minimierbar, [email protected]



« Previous Thread | Next Thread »

Similar Threads
[C++/Python]12 Inventar Seiten
Hey. Hiermit könnt ihr 12 Inventar Seiten benutzten könnt ihr nach belieben verändern. Es können maximal 65k Slot's verwendet werden. - steht...
40 Replies - Metin2 PServer Guides & Strategies
[C++/Python]12 Inventar Seiten FEHLER :(
habe diesen fehler: compile char_item.cpp compile char_manager.cpp In file included from char_item.cpp:47: belt_inventory_helper.h: In static...
1 Replies - Metin2 PServer - Discussions / Questions
[Python]Bonusboard Fehler
Guten Abend, Ich habe auf meinem Server ein Bonusboard eingefügt und bekomme nachdem Telepotieren einen Fehler....
4 Replies - Metin2 PServer - Discussions / Questions
Python BonusBoard
Guten Mittag, Mein Problem ich drücke Ingame F7 doch das Bonusboard erscheint nicht. Syser 0210 16:40:53019 :: NameError 0210 16:40:53019 :: : ...
5 Replies - Metin2 PServer - Discussions / Questions
Bonusboard Python
Hey ich wollte ein Bonusboard einfügen der fehler 1231 00:55:55681 :: Traceback (most recent call last): 1231 00:55:55682 :: File...
2 Replies - Metin2 PServer - Discussions / Questions



All times are GMT +1. The time now is 20:45.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.