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
bool HasRights
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="cammy" data-source="post: 447209" data-attributes="member: 46853"><p>Currently trying to allow anyone to use a crafting alter however at the moment it's set to only allow users to use their own.</p><p></p><p>How would I go about allowing people who don't own the alter to use it?</p><p></p><p>Here's my InteractorCrafting.cs</p><p>[SPOILER="InteractorCrafting.cs"]</p><p>using System;</p><p>using Emulator.HabboHotel.GameClients;</p><p>using Emulator.Communication.Packets.Outgoing.Rooms.Furni;</p><p>using Emulator.Communication.Packets.Outgoing.Rooms.Notifications;</p><p>using Emulator.HabboHotel.Items.Interactor;</p><p>using Emulator.HabboHotel.Items;</p><p>using Emulator.Communication.Packets.Outgoing.Rooms.Furni.Crafting2;</p><p></p><p>namespace Emulator.HabboHotel.Items.Interactor</p><p>{</p><p> class InteractorCrafting : IFurniInteractor</p><p> {</p><p> public void OnPlace(GameClient Session, Item Item)</p><p> {</p><p> }</p><p></p><p> public void OnRemove(GameClient Session, Item Item)</p><p> {</p><p> }</p><p></p><p> public void OnTrigger(GameClient Session, Item Item, int Request, bool HasRights)</p><p> {</p><p> Session.SendMessage(new MassEventComposer("inventory/open"));</p><p> Session.SendMessage(new CraftableProductsComposer());</p><p> }</p><p></p><p> public void OnWiredTrigger(Item Item)</p><p> {</p><p> }</p><p> }</p><p>}</p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="cammy, post: 447209, member: 46853"] Currently trying to allow anyone to use a crafting alter however at the moment it's set to only allow users to use their own. How would I go about allowing people who don't own the alter to use it? Here's my InteractorCrafting.cs [SPOILER="InteractorCrafting.cs"] using System; using Emulator.HabboHotel.GameClients; using Emulator.Communication.Packets.Outgoing.Rooms.Furni; using Emulator.Communication.Packets.Outgoing.Rooms.Notifications; using Emulator.HabboHotel.Items.Interactor; using Emulator.HabboHotel.Items; using Emulator.Communication.Packets.Outgoing.Rooms.Furni.Crafting2; namespace Emulator.HabboHotel.Items.Interactor { class InteractorCrafting : IFurniInteractor { public void OnPlace(GameClient Session, Item Item) { } public void OnRemove(GameClient Session, Item Item) { } public void OnTrigger(GameClient Session, Item Item, int Request, bool HasRights) { Session.SendMessage(new MassEventComposer("inventory/open")); Session.SendMessage(new CraftableProductsComposer()); } public void OnWiredTrigger(Item Item) { } } } [/SPOILER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
bool HasRights
Top