Register for your free account! | Forgot your password?

You last visited: Today at 04:13

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

Advertisement



Inventory System

Discussion on Inventory System within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2014
Posts: 14
Received Thanks: 1
Inventory System

HIIII. who knows how to make this system? this icons to right...



Thanks

Forgive my English
SounndP is offline  
Old 04/04/2015, 11:45   #2
 
Poccix's Avatar
 
elite*gold: 44
Join Date: Dec 2009
Posts: 1,696
Received Thanks: 3,833
Inventory System in Metin2 ! o_O Damn it !
---
You can change the size of the window in "locale/de(or other language)/ui/inventorywindow.py" at:
Code:
window = {
	"name" : "InventoryWindow",

	## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
	"x" : SCREEN_WIDTH - 176,
	"y" : SCREEN_HEIGHT - 37 - 565,

	"style" : ("movable", "float",),

	"width" : 176,
	"height" : 565,

	"children" :
	(
		## Inventory, Equipment Slots
		{
			"name" : "board",
			"type" : "board",
			"style" : ("attach",),

			"x" : 0,
			"y" : 0,

			"width" : 176,
			"height" : 565,
Both width and height declarations.

Then you can add new Buttons like this:

Code:
						{
							"name" : "NewSounndPButton",
							"type" : "button",

							"x" : 118,
							"y" : 148,

							"tooltip_text" : "I'm a new Button",

							"default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
							"over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
							"down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
						},
With your own images and position.

In uiinventory.py in your root folder can you give the button a function.

e.G.
Code:
self.NewSounndPButton = self.GetChild("NewSounndPButton")
self.NewSounndPButton.SetEvent(ui.__mem_func__(self.NewTestFunc))

def NewTestFunc(self):
	import chat
	chat.AppendChat(1,"This is an example for a new function")
Poccix is offline  
Thanks
3 Users
Old 04/04/2015, 17:57   #3


 
Zevion's Avatar
 
elite*gold: 906
Join Date: Sep 2009
Posts: 17,294
Received Thanks: 4,400
->
Zevion is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
Inventory System
04/04/2015 - Metin2 Private Server - 3 Replies
HIIII. :pwho:D:):confused: knows how to make this system? this icons to right... http://i57.tinypic.com/2r41lso.png Thanks Forgive my English
inventory lock system?
02/15/2015 - Metin2 Private Server - 2 Replies
Hello friends ; Does the information on the inventory lock system? . Python code and quests . But incomplete or incorrect guess. Information that can help ?
Inventory Tabs System Problem
03/14/2012 - Flyff Private Server - 8 Replies
I've tried getting inventory tabs to work, using snippets from the source released by InteL (apparently the snippets are from the DITS source) and they show up but not quite work. The tabs show up but the items are not filtered into them propperly; everything goes either into the main one OR the equipment slots, so I've tried replicating this code to make it work with other functions that seemed to be related to inserting items into the inventory (in Mover.cpp): Sometimes I've used...



All times are GMT +1. The time now is 04:13.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.