Register for your free account! | Forgot your password?

You last visited: Today at 17:13

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

 

Official Inventory Expansion

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


Bugs solved(video1):
#Last Update (21.04.2018):
Attached Files
File Type: rar InventoryExpansion.rar (111.5 KB, 434 views)



blackdraonx61 is offline  
Thanks
8 Users
Old   #2
 
elite*gold: 10
Join Date: Feb 2014
Posts: 56
Received Thanks: 11
Nice thanks for share.


StoneyStyles is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 31
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   #4


 
elite*gold: 7404
The Black Market: 209/0/1
Join Date: Feb 2014
Posts: 6,198
Received Thanks: 657
Thanks for it !


BosniaWarlord is offline  
Thanks
1 User
Old   #5
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 31
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   #6

 
elite*gold: 1280
Join Date: Jul 2009
Posts: 2,470
Received Thanks: 5,611
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   #7
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 31
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   #8
 
elite*gold: 0
Join Date: Jul 2011
Posts: 24
Received Thanks: 14
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   #9
 
elite*gold: 0
Join Date: Sep 2012
Posts: 184
Received Thanks: 19
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   #10
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 31
Quote:
Originally Posted by gerald500 View Post
this code is terrible ^^
Tell me better way but you can't
blackdraonx61 is offline  
Old   #11
 
elite*gold: 0
Join Date: Feb 2016
Posts: 10
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   #12
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 31
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   #13
 
elite*gold: 10
Join Date: Jul 2013
Posts: 91
Received Thanks: 380
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   #14
 
elite*gold: 0
Join Date: Sep 2012
Posts: 184
Received Thanks: 19
belt iventory is locked why
Chris9090909090 is offline  
Old   #15
 
elite*gold: 0
Join Date: Sep 2014
Posts: 20
Received Thanks: 31
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



« Previous Thread | Next Thread »

Similar Threads
MMO Paradox Expansion Episode VIII Official Server
http://imageshack.com/a/img661/8023/3d453f.png Official Website: MMOParadox Cabal - HekateWebToolz v0.1 Official Forum: MMOParadox...
137 Replies - Cabal PServer - Discussions / Questions
[Release]MMOParadox Expansion - Episode VIII Official !
https://imagizer.imageshack.us/v2/745x250q50/20/6xzc.png http://imageshack.com/a/img62/363/bnas.jpg http://imageshack.com/a/img545/4118/qm44.jpg...
20 Replies - Cabal PServer - Discussions / Questions
[Buying] [SUCHE] Farming Simulator 2013 - Official Expansion (Titanium)
Suche: Farming Simulator 2013 - Official Expansion (Titanium) on Steam (Is für nen Kumpel) Biete: 6-8€ PayPal PN ME / KOMMENTAR
0 Replies - Trading
Inventory Expansion
Moin moin, weiß einer woher ich diesen inventory expansions scroll herbekomme? mein erster char. hat den irgendwann bekommen (hab erst viel...
4 Replies - C9 - Continent of the Ninth
SWSRO 2 Inventory Expansion(s)
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...
6 Replies - SRO PServer Ask the Experts



All times are GMT +2. The time now is 17:13.


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

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