Jump to content

Offline shop problem


Recommended Posts

Hello, I have a problem... When I try create offline shop, so nothing happens. I click on "create shop" and nothing...
Here is a gif: 

https://metin2.download/picture/PE8PVv2R6HjXmYT5vZwz5tMJ7O25UYBy/.gif

Cllent syserr.txt

0126 13:38:43808 :: Traceback (most recent call last):

0126 13:38:43809 ::   File "ui.py", line 1024, in CallEvent

0126 13:38:43809 ::   File "ui.py", line 87, in __call__

0126 13:38:43809 ::   File "ui.py", line 69, in __call__

0126 13:38:43809 ::   File "uiNewShop.py", line 130, in CreateShop

0126 13:38:43809 :: TypeError
0126 13:38:43809 :: : 
0126 13:38:43809 :: Open() takes exactly 2 arguments (3 given)
0126 13:38:43809 :: 

 

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

5 minutes ago, Balgram said:

Hello, I have a problem... When I try create offline shop, so nothing happens. I click on "create shop" and nothing...
Here is a gif: 


https://metin2.download/picture/PE8PVv2R6HjXmYT5vZwz5tMJ7O25UYBy/.gif

Cllent syserr.txt


0126 13:38:43808 :: Traceback (most recent call last):

0126 13:38:43809 ::   File "ui.py", line 1024, in CallEvent

0126 13:38:43809 ::   File "ui.py", line 87, in __call__

0126 13:38:43809 ::   File "ui.py", line 69, in __call__

0126 13:38:43809 ::   File "uiNewShop.py", line 130, in CreateShop

0126 13:38:43809 :: TypeError
0126 13:38:43809 :: : 
0126 13:38:43809 :: Open() takes exactly 2 arguments (3 given)
0126 13:38:43809 :: 

 

Your open function have 2 arguments like 

 

 

def Open(self, arg1):

 

 

But you call the function with 3 check the tutorial again or post the call and the function here with the code tag 

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

uishop.py

 

	def Open(self, vid, type=0):
		self.vid=int(vid)
		isPrivateShop = False
		isMainPlayerPrivateShop = False
		myshop=False
		for i in xrange(len(constInfo.MyShops)):
			if int(constInfo.MyShops[i]["vid"]) == int(self.vid):
				myshop=True
				self.vid=int(constInfo.MyShops[i]["id"])
		chr.SelectInstance(self.vid)
		if chr.GetRace() == 30000 or not chr.IsNPC(self.vid):
			isPrivateShop = True
		if player.IsMainCharacterIndex(self.vid):
			myshop=True
			self.vid=""
		if myshop == True:
			isMainPlayerPrivateShop = True

			self.btnBuy.Hide()
			self.btnSell.Hide()
			self.btnClose.Show()

		else:

			isMainPlayerPrivateShop = False

			self.btnBuy.Show()
			self.btnSell.Show()
			self.btnClose.Hide()

		shop.Open(isPrivateShop, isMainPlayerPrivateShop)

		self.tabIdx = 0

		if isPrivateShop:
			self.__HideMiddleTabs()
			self.__HideSmallTabs()
		else:
			if shop.GetTabCount() == 1:
				self.__ShowBuySellButton()
				self.__HideMiddleTabs()
				self.__HideSmallTabs()
			elif shop.GetTabCount() == 2:
				self.__HideBuySellButton()
				self.__ShowMiddleTabs()
				self.__HideSmallTabs()
				self.__SetTabNames()
				self.middleRadioButtonGroup.OnClick(0)
			elif shop.GetTabCount() == 3:
				self.__HideBuySellButton()
				self.__HideMiddleTabs()
				self.__ShowSmallTabs()
				self.__SetTabNames()
				self.middleRadioButtonGroup.OnClick(1)

		self.Refresh()
		self.SetTop()
		
		self.Show()

		(self.xShopStart, self.yShopStart, z) = player.GetMainCharacterPosition()

i dont know... i will try to code client again
 

FIXED... 

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.