Jump to content
×
×
  • Create New...
  • 0

Private Shop sell button removal?


Shahin

Question

2 answers to this question

Recommended Posts

  • 2
  • Honorable Member
	## 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.