Register for your free account! | Forgot your password?

You last visited: Today at 21:40

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

Advertisement



Official Inventory Expansion

Discussion on Official Inventory Expansion within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 37
Official Inventory Expansion


Bugs solved(video1):
#Last Update (21.04.2018):
Attached Files
File Type: rar InventoryExpansion.rar (111.5 KB, 737 views)
blackdraonx61 is offline  
Thanks
12 Users
Old 03/15/2017, 13:32   #2
 
elite*gold: 155
Join Date: Feb 2014
Posts: 61
Received Thanks: 11
Nice thanks for share.
StoneyStyles is offline  
Thanks
1 User
Old 03/16/2017, 07:33   #3
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 37
Quote:
Originally Posted by sema1995 View Post
You have to be kidding me...



What is this?
Another way my smart friend?
blackdraonx61 is offline  
Thanks
1 User
Old 03/16/2017, 07:36   #4

 
BosniaWarlord's Avatar
 
elite*gold: 162
The Black Market: 307/0/1
Join Date: Feb 2014
Posts: 7,851
Received Thanks: 856
Thanks for it !
BosniaWarlord is offline  
Thanks
1 User
Old 03/16/2017, 08:15   #5
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 37
Quote:
Originally Posted by BosniaWarlord View Post
Thanks for it !

Update missing codes:
uiiventory.py:
Find
def SetEquipmentPage(self, page):
self.equipmentPageIndex = page
self.equipmentTab[1-page].SetUp()
self.RefreshEquipSlotWindow()
Add;
blackdraonx61 is offline  
Thanks
1 User
Old 03/16/2017, 12:07   #6

 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,471
Received Thanks: 5,622
Create an List Object containing all the elements so you dont have to hide and show every element manually

ex:
Code:
coverImages = []
coverImages.append((self.GetChild("engel_01_open"), self.GetChild("engel_01_close")))
....


for i, coverImage in enumerate(coverImages):
    (openImage, closeImage) = coverImage
    ....

#or

for coverImage in coverImages:
    (openImage, closeImage) = coverImage
    self.closeImage.Show()

for i in xrange(player.GetEnvanter()):
    (openImage, closeImage) = coverImages[i]
    openImage.Show()
something more like that would be nice,
in programing there are always better ways to achieve your goals
and you well used the knowledge you had and it works its ok i guess
its just not very well written
.Alpha. is offline  
Thanks
1 User
Old 03/16/2017, 13:10   #7
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 37
Quote:
Originally Posted by .Alpha. View Post
Create an List Object containing all the elements so you dont have to hide and show every element manually

ex:
Code:
coverImages = []
coverImages.append((self.GetChild("engel_01_open"), self.GetChild("engel_01_close")))
....


for i, coverImage in enumerate(coverImages):
    (openImage, closeImage) = coverImage
    ....

#or

for coverImage in coverImages:
    (openImage, closeImage) = coverImage
    self.closeImage.Show()

for i in xrange(player.GetEnvanter()):
    (openImage, closeImage) = coverImages[i]
    openImage.Show()
something more like that would be nice,
in programing there are always better ways to achieve your goals
and you well used the knowledge you had and it works its ok i guess
its just not very well written
Sorry my python is bad but they just criticize me
blackdraonx61 is offline  
Thanks
1 User
Old 03/16/2017, 15:22   #8
 
elite*gold: 0
Join Date: Jul 2011
Posts: 25
Received Thanks: 15
Thanks for the release, i know some people that will use this for sure.

sema1995, i dont know what the problem.
Since when on programming you must do things on just one way?
Of course his way is longer to write then how .Alpha. showed, but so what?
At the end of the day what matters is if it works or not.
redryan is offline  
Thanks
3 Users
Old 03/16/2017, 19:55   #9
 
elite*gold: 0
Join Date: Sep 2012
Posts: 184
Received Thanks: 20
0316 19:47:16490 ::
uiInventory.py(line:380) __LoadWindow
uiInventory.py(line:127) __init__
uiInventory.py(line:219) __LoadWindow

InventoryWindow.LoadWindow.BindObject - <type 'exceptions.AttributeError'>:'InventoryWindow' object has no attribute 'OverInItem'

0316 19:47:16490 :: ================================================== ================================================== ========
0316 19:47:16490 :: Abort!!!!


kriege den fehler wenn ich connecten will
Chris9090909090 is offline  
Old 03/16/2017, 21:08   #10
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 37
Quote:
Originally Posted by gerald500 View Post
this code is terrible ^^
Tell me better way but you can't
blackdraonx61 is offline  
Old 03/16/2017, 21:50   #11
 
elite*gold: 0
Join Date: Feb 2016
Posts: 11
Received Thanks: 8
Quote:
Originally Posted by blackdraonx61 View Post
Tell me better way but you can't
It's not hard.







It can be done much simpler. I've wrote for only a example.
mq1n4 is offline  
Old 03/16/2017, 22:18   #12
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 37
Quote:
Originally Posted by mq1n4 View Post
It's not hard.







It can be done much simpler. I've wrote for only a example.
Thanks my python is bad
blackdraonx61 is offline  
Old 03/17/2017, 02:42   #13
 
VegaS ♆'s Avatar
 
elite*gold: 10
Join Date: Jul 2013
Posts: 93
Received Thanks: 416
These criticisms are constructive, you would need to be glad that some people are trying to give you a few tricks of their knowledge for you to be better in the future.
Every day we learn new things, you should gather all the comments that were obtained each time with different parts and to collect them, and then next time you'll have a much better structured code compared to last time.
No one insulted you personally, they just insulted code.
  • The structure of the system itself is 0.1% compared to the official structure.
  • But here is a big part of uiInventory rewritten in some lines. (I have not tested, i just give you some points, also and my points is ugly, all time can be better, but if they works good, doesn't importantly.)

English isn’t my first language, so please excuse any mistakes.

Code:
def get(key):
    inventoryDict = {
        2: [0, 1, 2, 3],
        3: [4, 5],
        4: [6, 7, 8],
        5: [9, 10, 11],
        6: [12, 13, 14],
        7: [15, 16, 17]		
    }
    
    for k, v in inventoryDict.iteritems():
        if key in v:
            return k
Code:
self.main = {
	"elements" : {
		"open" : [GetObject("inventory_0%d_open" % (i+1)) for i in xrange(player.INVENTORY_MAX_LINE)],						
		"close" : [GetObject("inventory_0%d_close" % (i+1)) for i in xrange(player.INVENTORY_MAX_LINE)]
	}
}
for wnd in [self.main["elements"]["open"], self.main["elements"]["close"]]:
	wnd.Hide()
	
for tabButton in self.main["elements"]["open"]:
	self.tabButton.SetEvent(ui.__mem_func__(self.OpenInventoryDialog))
VegaS ♆ is offline  
Thanks
2 Users
Old 03/17/2017, 14:31   #14
 
elite*gold: 0
Join Date: Sep 2012
Posts: 184
Received Thanks: 20
belt iventory is locked why
Chris9090909090 is offline  
Old 03/17/2017, 21:36   #15
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 37
Quote:
Originally Posted by VegaS ♆ View Post
These criticisms are constructive, you would need to be glad that some people are trying to give you a few tricks of their knowledge for you to be better in the future.
Every day we learn new things, you should gather all the comments that were obtained each time with different parts and to collect them, and then next time you'll have a much better structured code compared to last time.
No one insulted you personally, they just insulted code.
  • The structure of the system itself is 0.1% compared to the official structure.
  • But here is a big part of uiInventory rewritten in some lines. (I have not tested, i just give you some points, also and my points is ugly, all time can be better, but if they works good, doesn't importantly.)

English isn’t my first language, so please excuse any mistakes.

Code:
def get(key):
    inventoryDict = {
        2: [0, 1, 2, 3],
        3: [4, 5],
        4: [6, 7, 8],
        5: [9, 10, 11],
        6: [12, 13, 14],
        7: [15, 16, 17]		
    }
    
    for k, v in inventoryDict.iteritems():
        if key in v:
            return k
Code:
self.main = {
	"elements" : {
		"open" : [GetObject("inventory_0%d_open" % (i+1)) for i in xrange(player.INVENTORY_MAX_LINE)],						
		"close" : [GetObject("inventory_0%d_close" % (i+1)) for i in xrange(player.INVENTORY_MAX_LINE)]
	}
}
for wnd in [self.main["elements"]["open"], self.main["elements"]["close"]]:
	wnd.Hide()
	
for tabButton in self.main["elements"]["open"]:
	self.tabButton.SetEvent(ui.__mem_func__(self.OpenInventoryDialog))
thanks my bro
blackdraonx61 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
MMO Paradox Expansion Episode VIII Official Server
08/26/2014 - Cabal Private Server - 137 Replies
http://imageshack.com/a/img661/8023/3d453f.png Official Website: MMOParadox Cabal - HekateWebToolz v0.1 Official Forum: MMOParadox Community Official Facebook: MMOParadox Expansion Download Links:
[Release]MMOParadox Expansion - Episode VIII Official !
12/25/2013 - Cabal Private Server - 20 Replies
https://imagizer.imageshack.us/v2/745x250q50/20/6x zc.png http://imageshack.com/a/img62/363/bnas.jpg http://imageshack.com/a/img545/4118/qm44.jpg http://imageshack.com/a/img191/6348/j11l.jpg http://imageshack.com/a/img96/6483/gxvw.jpg http://imageshack.com/a/img822/5191/aa4l.jpg http://imageshack.com/a/img841/9066/ixxh.jpg http://imageshack.com/a/img853/3413/pdbw.jpg http://imageshack.com/a/img24/3731/5n8v.jpg
[Buying] [SUCHE] Farming Simulator 2013 - Official Expansion (Titanium)
11/13/2013 - Trading - 0 Replies
Suche: Farming Simulator 2013 - Official Expansion (Titanium) on Steam (Is für nen Kumpel) Biete: 6-8€ PayPal PN ME / KOMMENTAR
Inventory Expansion
07/10/2012 - C9 - Continent of the Ninth - 4 Replies
Moin moin, weiß einer woher ich diesen inventory expansions scroll herbekomme? mein erster char. hat den irgendwann bekommen (hab erst viel später gesehen, dass ich voll viele items geschenk bekommen habe, wegen event oderso) dann hab ich einen 2. char erstellt und der hätte bis zu meinem level schon eine bekommen müssen... ist nur nix da... ^^ also weiß einer woher man den bekommt?
SWSRO 2 Inventory Expansion(s)
10/03/2010 - SRO Private Server - 6 Replies
Hi guys, i am wondering because i made the 1st and 2nd invent expansion but i cant get the quest for the 3rd at the Hotans "Mamoje". there is no quest for me??? is this a bug or something?! greets



All times are GMT +2. The time now is 21:40.


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.