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
  • 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 post
Guest
This topic is now closed to further replies.


Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

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