Jump to content

[Search Update] ItemProto & MobProto


Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

hace 43 minutos, Exynox dijo:

Hello, I cannot find you with the Skype ID you have posted. Please check your private messages :)

Sorry, I had a problem. And my name changed.
Already back to: [ADM] Rusef

https://metin2.download/picture/RX80dLM8Uw9Ps46ua7cwcZoDW79xE4Qi/.png

 

hace 35 minutos, xP3NG3Rx dijo:

Easy :facepalm:

Someone, already answered for me.

 

hace 15 minutos, ondry dijo:

ah great, thanks for your comment.. i think now he doesnt need the "service" anymore

Thank you
 

 

@Rusef
 

-- UP 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Try this. 

#@root/uiInventory.py
#Search for:
	def OnPickMoney(self, money):
		mouseModule.mouseController.AttachMoney(self, player.SLOT_TYPE_INVENTORY, money)
#Add after:
	def RefreshSlotAcce(self):
		[self.wndEquip.SetItemSlot(item.COSTUME_SLOT_START + i, player.GetItemIndex(item.COSTUME_SLOT_START + i), 0) for i in xrange(item.COSTUME_SLOT_COUNT)]
		self.wndEquip.RefreshSlot()
		
#Search in class InventoryWindow(ui.ScriptWindow):
	def Show(self):
		self.__LoadWindow()
#Add after:
		self.RefreshSlotAcce()

#Search in def RefreshEquipSlotWindow(self):
		self.wndEquip.RefreshSlot()
#Add after:
		self.RefreshSlotAcce()

#@locale/xx/InventoryWindow.py
#Search for:
                            "slot" : (
#Add after:
										{"index": item.COSTUME_SLOT_START + 2, "x": 80, "y": 3, "width":32, "height": 32},
Link to comment
Share on other sites

hace 4 horas, Tasho dijo:

Try this. 


#@root/uiInventory.py
#Search for:
	def OnPickMoney(self, money):
		mouseModule.mouseController.AttachMoney(self, player.SLOT_TYPE_INVENTORY, money)
#Add after:
	def RefreshSlotAcce(self):
		[self.wndEquip.SetItemSlot(item.COSTUME_SLOT_START + i, player.GetItemIndex(item.COSTUME_SLOT_START + i), 0) for i in xrange(item.COSTUME_SLOT_COUNT)]
		self.wndEquip.RefreshSlot()
		
#Search in class InventoryWindow(ui.ScriptWindow):
	def Show(self):
		self.__LoadWindow()
#Add after:
		self.RefreshSlotAcce()

#Search in def RefreshEquipSlotWindow(self):
		self.wndEquip.RefreshSlot()
#Add after:
		self.RefreshSlotAcce()

#@locale/xx/InventoryWindow.py
#Search for:
                            "slot" : (
#Add after:
										{"index": item.COSTUME_SLOT_START + 2, "x": 80, "y": 3, "width":32, "height": 32},

Thanks, ya esta hecho.

 

  • Up! Change question
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.