Jump to content
  • 0

Private Shop sell button removal?


Shahin
Go to solution Solved by xP3NG3Rx,

Question

2 answers to this question

Recommended Posts

  • 1
  • 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 (see edit history)
  • Love 4
Link to post

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


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