Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Avoid users wears non-purchasable clothing on mannequin. [Plus EMU R2]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 464217" data-attributes="member: 36373"><p>Personally,</p><p></p><p>I would create a class that you can send in the figure the user wants to wear, and the user who is attempting to wear it, and do the check if they can wear those items. That way it is reusable for anything:</p><p></p><p>Mannequins, Mimic Command, Football Gate, Wired Effects, etc</p><p>[automerge]1600700649[/automerge]</p><p>Further Help -</p><p></p><p><a href="https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Users/Clothing/ClothingComponent.cs" target="_blank">https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Users/Clothing/ClothingComponent.cs</a></p><p></p><p>Each Habbo.cs file should have a reference to this ClothingComponent. When it is initialized, the db is loaded and adds those figures into here. </p><p></p><p>Step 1) Check if the clothing is buyable. If the users buy the clothing from the catalog you can use this class -> <a href="https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Catalog/Clothing/ClothingManager.cs" target="_blank">https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Catalog/Clothing/ClothingManager.cs</a></p><p></p><p>Step 2) Check if that item is owned by the ClothingComponent class / Habbo</p></blockquote><p></p>
[QUOTE="JayC, post: 464217, member: 36373"] Personally, I would create a class that you can send in the figure the user wants to wear, and the user who is attempting to wear it, and do the check if they can wear those items. That way it is reusable for anything: Mannequins, Mimic Command, Football Gate, Wired Effects, etc [automerge]1600700649[/automerge] Further Help - [URL]https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Users/Clothing/ClothingComponent.cs[/URL] Each Habbo.cs file should have a reference to this ClothingComponent. When it is initialized, the db is loaded and adds those figures into here. Step 1) Check if the clothing is buyable. If the users buy the clothing from the catalog you can use this class -> [URL]https://github.com/Sledmore/PlusEMU/blob/master/HabboHotel/Catalog/Clothing/ClothingManager.cs[/URL] Step 2) Check if that item is owned by the ClothingComponent class / Habbo [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Avoid users wears non-purchasable clothing on mannequin. [Plus EMU R2]
Top