Jump to content

Nero

Inactive Member
  • Posts

    85
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Nero

  1. On 2/23/2014 at 18:08, ѕeмa™ said:

    I go to release a simple system , to see the coins in the inventory.

     

    http://youtu.be/93aufcRE_4s

    
    REMEMBER:
    localeInfo is from binary r28k
    locale is from binary r36k

    First, go to uiinventory.py and now search:

    
    self.wndMoneySlot = self.GetChild("Money_Slot")

    And down put:

    
    			self.wndMds = self.GetChild("Mds")
    			self.wndMdsSlot = self.GetChild("Mds_Slot")

    Now, search 

    
    	def Destroy(self):
    		self.ClearDictionary()
    		....
    		....
    		self.wndMoney = 0
    		self.wndMoneySlot = 0

    And down put:

    
    		self.wndMds = 0
    		self.wndMdsSlot = 0

    Now, Search:

    
    def RefreshStatus(self):

    And change to:

    
    	def RefreshStatus(self):
    		money = player.GetElk()
    		self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))
    		
    		import constInfo
    		self.wndMds.SetText(str(constInfo.mds) + " Md's")

    And down Put:

    
    	def OnUpdate(self):
    		import constInfo
    		self.wndMds.SetText(str(constInfo.mds) + " Md's")

    The uiinventory is finished, save and close, now go to locale/xx/ui/inventorywindow.py.

     

    Search:

    
    ## Print
    				{
    					"name":"Money_Slot",
    					"type":"button",
    
    					"x":-68,
    					"y":28,
    
    					"horizontal_align":"center",
    					"vertical_align":"bottom",
    
    					"default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
    					"over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
    					"down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
    
    					"children" :
    					(
    						{
    							"name":"Money_Icon",
    							"type":"image",
    
    							"x":-21,
    							"y":2,
    
    							"image":"d:/ymir work/ui/game/windows/money_icon.sub",
    						},
    
    						{
    							"name" : "Money",
    							"type" : "text",
    
    							"x" : 5,
    							"y" : 3,
    
    							"horizontal_align" : "right",
    							"text_horizontal_align" : "right",
    
    							"text" : "123456789",
    						},
    					),
    				},

    And Down Put:

    
    				{
    					"name":"Mds_Slot",
    					"type":"button",
    
    					"x":-68,
    					"y":48,
    
    					"horizontal_align":"center",
    					"vertical_align":"bottom",
    
    					"default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
    					"over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
    					"down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
    
    					"children" :
    					(
    						{
    							"name":"Mds_Icon",
    							"type":"image",
    
    							"x":-21,
    							"y":2,
    
    							"image":"d:/ymir work/ui/game/windows/money_icon.sub",
    						},
    
    						{
    							"name" : "Mds",
    							"type" : "text",
    
    							"x" : 5,
    							"y" : 3,
    
    							"horizontal_align" : "right",
    							"text_horizontal_align" : "right",
    
    							"text" : "123456789 Md's",
    						},
    					),
    				},

    Remember change the "x" and "y".

     

    Now, go to game.py in root.

     

    Search:

    
    	def __ServerCommand_Build(self):
    		serverCommandList={

    And down put:

    
    			#Carga Mds Start
    			"Mds"					: self.__Mds,
    			#Carga Mds End

    and now, go to the end and put:

    
    	def __Mds(self, coins):
    		import constInfo
    		constInfo.mds = int(coins)

    Save and close.

     

    Now go to constinfo.py and put

    
    mds = 0

    And Here the quest:

    
    quest mds begin
    	state start begin
    		when login begin
    			loop_timer("carga_mds", 10)
    		end
    	
    		when carga_mds.timer begin
    			local coins = mysql_query("SELECT coins from account.account WHERE id="..pc.get_account_id().." LIMIT 1;")[1][1]
    			cmdchat("Mds "..coins)
    		end
    	end
    end

    This is my release in this forum.

     

    Sorry my bad english.. I'm Spanish.

     

    If you don't know how put, upload my archives uiinventory and inventorywindow.py

     

    https://mega.co.nz/#!R9A3SD6Q!IFZ38BXrwGOt0Z8N3qT9g5vr5XAa4DdKdeAf2KRlPEY

     

     

    Do you know how can I do to get 1 coin for every metin beaten, and then use this coins in a special shop?

  2. 32 minutes ago, Sonitex said:
    
    ## Z ##############################################################################
    		self.GiftBox = ui.Button()
    		self.GiftBox.SetUpVisual("d:/ymir work/ui/present.tga")
    		self.GiftBox.SetOverVisual("d:/ymir work/ui/present.tga")
    		self.GiftBox.SetDownVisual("d:/ymir work/ui/present.tga")
    		self.GiftBox.SetText("?")
    		self.GiftBox.SetToolTipText("Open the box!")
    		self.GiftBox.SetPosition(10, int(wndMgr.GetScreenHeight())-126)
    		self.GiftBox.SetEvent(self.ZetsuGiftSystem__deff__)
    		self.GiftBox.Show()
    		## Z ##############################################################################

    Edit self.Giftbox.SetPosition line;)

     

    Oh, thank you ! :) 

  3. Hi guys, do you know how to set shop restriction in some maps? For example : Players can't make shops in map1, no one of them.
    I would like if someone of you can do this for me, I don't want complex systems, I don't want texts on chat or things like this, just to be impossible to make a shop in a map.
    Have a nice day and thank you in advance! :) 

    PS : I have shop offline system.

  4. I'm not very good at english so i'll try to give you an example first. 
    So, we have an armor for example, the armor gives you 100 defense and 500 HP (That's the stats, so all armours like this have that 500 hp, is not a bonus) . Is it possible to get another HP bonus on the armor without evolve it from another armor? 
    So, the armor have 100 defense and 500 HP as normal stats, I enchant the item and now the armor will have 100 defense , 500 HP and 1000 HP (that's the enchant). So, can this be possible?
    I want the armour to get the bonuses like it doesn't have HP stat, like a basic armour.

    I hope you guys know what I am talking about, as I said, I'm not very good at english. 
    Have a nice day! :) 

  5. Hi , can someone help me with property in World Editor. I decrypted the property from metin2ro ( romanian oficial server ) and after that i put them in ymir work (located in D ofc) , but there are a few objects from maps that don`t work , for example : dawnmistwood_dungeon , devils_dragon_island , mt_thunder_dungeon etc. I also decrypted and put in ymir work the "zone" , but the objects from these maps still don`t work . Can someone help me?

    Sorry for my english . Have a nice day ! :P

    And here is an image with all the maps whose objects don`t work : lololloll.png.lnk

  6. Hi community, sorry for my english, I may do writing mistakes and things like this.
    This is my first topic on this forum, so if I did something wrong just tell me .

    Soo... As some of you may know, there is a map called outdoor (just outdoor). This map is incomplete, and was made to be the map1 of the kingdom 4.

    There was a .txt file where it says the map is "incomplete" instead of "outdoor" (like other maps). 
    outdoor - minds it works
    incomplete - doesn't

    I modified the file before the installing (instead of "incomplete" i put "outdoor") and in client. 

    The map had no coordinates , so i set random coordinates.
    But now, after i installed map, when i try to teleport, the client crashes, my caracter become bugged in the map and it shows me a error that says the map is incomplete. Help? (not with the debug, with the map, i want to work)

    Again, sorry for the grammaticall and writing mistakes. And sorry if i posted in wrong topic...
    Have a good day! :)

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.