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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.


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.