Jump to content

Private Shop sell button removal?


Go to solution Solved by xP3NG3Rx,

Recommended Posts

  • Honorable Member
  • Solution
	## uiShop.py
	def Open(self, vid):
		import chr
		isPrivateShop = chr.IsNPC(vid) == 0

		if player.IsMainCharacterIndex(vid):
			isMainPlayerPrivateShop = True
			self.btnBuy.Hide()
			self.btnSell.Hide()
			self.btnClose.Show()
		else:
			isMainPlayerPrivateShop = False
			if isPrivateShop:
				self.vid = vid
				self.btnBuy.SetPosition(0, 295)
				self.btnBuy.SetWindowHorizontalAlignCenter()
			self.btnBuy.Show()
			self.btnSell.Hide()
			self.btnClose.Hide()

 

This depends on your shop system too. The actortype of your shops are cannot be NPC type. Otherwise you need to change the value of the isPrivateShop variable.

Edited by xP3NG3Rx
  • Love 4
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.