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
Azure Emu - Custom Commands
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: 338057" data-attributes="member: 36373"><p>This is how you do it in GTE (Never used Azure) maybe its the same?</p><p>Open your emulator in VB</p><p>Open RoleManager.CS (HabboHotel -> Roles -> RoleManager)</p><p>Find where you are adding dictionary_4</p><p>[CODE] this.dictionary_4.Add("welcome", 160);[/CODE]</p><p>"welcome" is the command name and "160" is the next available number in dictionary_4 (that will be your case number)</p><p></p><p>Next we open ChatCommandHandler (HabboHotel -> Misc -> ChatCommandHandler)</p><p>[CODE]if (Session.GetHabbo().HasFuse("cmd_enable"))</p><p>{</p><p> text7 = text7 + GoldTreeEnvironment.GetExternalText("cmd_welcome_desc") + "\r\r";</p><p>}[/CODE]</p><p>I am using the cmd_enable because everyone gets the enable command and its easier for me so I don't have to add more permissions</p><p>The text7 is your commands command and it will add the description from your texts in the database</p><p>Then just code your command...</p><p>You need to test 3 things:</p><p>- That user exists in the database</p><p>- That user is in the room</p><p>- That user registered less than 1 day ago (This is a good feature, so people can't abuse command)</p><p>then you just say</p><p>Session.GetHabbo().Shout("Welcome to the hotel " + Params[1] + " Hope you enjoy your stay!");</p></blockquote><p></p>
[QUOTE="JayC, post: 338057, member: 36373"] This is how you do it in GTE (Never used Azure) maybe its the same? Open your emulator in VB Open RoleManager.CS (HabboHotel -> Roles -> RoleManager) Find where you are adding dictionary_4 [CODE] this.dictionary_4.Add("welcome", 160);[/CODE] "welcome" is the command name and "160" is the next available number in dictionary_4 (that will be your case number) Next we open ChatCommandHandler (HabboHotel -> Misc -> ChatCommandHandler) [CODE]if (Session.GetHabbo().HasFuse("cmd_enable")) { text7 = text7 + GoldTreeEnvironment.GetExternalText("cmd_welcome_desc") + "\r\r"; }[/CODE] I am using the cmd_enable because everyone gets the enable command and its easier for me so I don't have to add more permissions The text7 is your commands command and it will add the description from your texts in the database Then just code your command... You need to test 3 things: - That user exists in the database - That user is in the room - That user registered less than 1 day ago (This is a good feature, so people can't abuse command) then you just say Session.GetHabbo().Shout("Welcome to the hotel " + Params[1] + " Hope you enjoy your stay!"); [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Azure Emu - Custom Commands
Top