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 Releases
MercuryEmu Command.
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="Brad" data-source="post: 308095" data-attributes="member: 17995"><p>[SPOILER=":FAQ"]Noting much but just thought I'd Release it.</p><p>[PHP]case "welcome":</p><p> if (!this.Session.GetHabbo().GotCommand("commands"))</p><p> {</p><p> return false;//2D3B;</p><p> }</p><p> if ((Params[1] != null))</p><p> {</p><p> string username = null;</p><p> GameClient client6 = null;</p><p> username = Params[1];</p><p> client6 = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(username);</p><p> Room room42 = client6.GetHabbo().CurrentRoom;</p><p> if (client6 == null)</p><p> {</p><p> this.Session.SendNotif("User could not be found.");</p><p> return true;</p><p> }</p><p></p><p> client6.SendWhisper("Welcome To Buzz Hotel, From " + this.Session.GetHabbo().Username);</p><p> return true;//2D3B;</p><p> }</p><p> this.Session.SendNotif("You left something empty.");</p><p> return true;[/PHP]</p><p>Just change Plus to Mercury. yes I've renamed Mercury back to it's original name.</p><p>only the user you sent it to will see it.</p><p>Command line:</p><p>:welcome (username)</p><p>Screenshot:</p><p><a href="http://gyazo.com/5aa23d51a93d37a8dc3b480fdfe35dad" target="_blank">http://gyazo.com/5aa23d51a93d37a8dc3b480fdfe35dad</a>[/SPOILER]</p><p></p><p>[SPOILER="TWITCH"]</p><p>Ok got a new command, :twitch</p><p><img src="http://i.gyazo.com/8aac8d6d47dfb059e1f94183b19c50f5.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>[SPOILER="CODE"]</p><p>[PHP]case "twitch":</p><p> case "stream":</p><p> case "streamers":</p><p> </p><p> {</p><p> using (IQueryAdapter id = PlusEnvironment.GetDatabaseManager().getQueryreactor())</p><p> {</p><p></p><p> StringBuilder builder = new StringBuilder();</p><p> builder.Append("Hey, " + this.Session.GetHabbo().Username + " Here is a list of Twitch Streamers, it will be Very Apreciated if you Follow these :D.\n");</p><p> builder.Append("\n");</p><p> id.setQuery("SELECT id,username,twitch FROM twitch_users"); </p><p> id.addParameter("user", id);</p><p> DataRow row3 = id.getRow();</p><p> builder.Append("Streamer:\n");</p><p> builder.Append("Twitch Username: "+row3[2]+" Twitch Link = http://twitch.tv/ "+row3[2]+ "\n");</p><p> builder.Append("in-game Username: " + row3[1] + "\n");</p><p> builder.Append("\n");</p><p> builder.Append("\n");</p><p></p><p> builder.Append("Do you stream on twitch & want to show here? Contact Brad in-game.\n");</p><p> this.Session.SendNotifWithScroll(builder.ToString());</p><p></p><p> </p><p> }</p><p> </p><p> }</p><p> return true;[/PHP]</p><p>[/SPOILER]</p><p>[SPOILER="MySQL Query"]</p><p>[CODE]DROP TABLE IF EXISTS `twitch_users`;</p><p>CREATE TABLE `twitch_users` (</p><p> `id` int(11) unsigned NOT NULL AUTO_INCREMENT,</p><p> `username` varchar(550) DEFAULT NULL,</p><p> `twitch` varchar(255) DEFAULT NULL,</p><p> PRIMARY KEY (`id`)</p><p>) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;</p><p></p><p>-- ----------------------------</p><p>-- Records of twitch_users</p><p>-- ----------------------------</p><p>INSERT INTO `twitch_users` VALUES ('1', 'Brad', 'Cappercom');[/CODE]</p><p>[/SPOILER]</p><p></p><p>You could altar this for Fansites if your hotel Promotes them, This is yet an easy and quick command,</p><p>[/SPOILER]</p><p></p><p></p><p></p><p>[SPOILER="Fansites"]</p><p>[PHP]case "fansites": </p><p> {</p><p> using (IQueryAdapter id = PlusEnvironment.GetDatabaseManager().getQueryreactor())</p><p> {</p><p></p><p> StringBuilder builder = new StringBuilder();</p><p> builder.Append("Hey, " + Session.GetHabbo().Username + " Here is a list of Our Official Fansites, it will be Very Apreciated if you check then out :D.\n");</p><p> builder.Append("\n");</p><p> using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor())</p><p> {</p><p> </p><p> dbClient.setQuery("SELECT `name`,`username`,`link` FROM `fansites`");</p><p> DataTable GetFansites = dbClient.getTable();</p><p></p><p> if (GetFansites != null)</p><p> {</p><p> foreach (DataRow Row in GetFansites.Rows)</p><p> {</p><p> builder.Append("Fansite:\n");</p><p> builder.Append("Fansite Name: " + Row["name"] + " Fansite Link = " + Row["link"] + "\n");</p><p> builder.Append("in-game Username: " + Row["username"] + "\n");</p><p> builder.Append("\n");</p><p> }</p><p> }</p><p> else</p><p> {</p><p> builder.Append("There are currently no Fansites.\n");</p><p> </p><p> }</p><p>}</p><p></p><p>builder.Append("Want yours to show here? Message (your username) in-game to sort this out! :D\n");</p><p>Session.SendNotifWithScroll(builder.ToString());</p><p></p><p> </p><p> }</p><p> </p><p> }</p><p> return true;[/PHP]</p><p>[CODE]CREATE TABLE `fansites` (</p><p> `name` int(11) unsigned NOT NULL AUTO_INCREMENT,</p><p> `username` varchar(550) DEFAULT NULL,</p><p> `link` varchar(255) DEFAULT NULL,</p><p></p><p>) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;[/CODE]</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="Brad, post: 308095, member: 17995"] [SPOILER=":FAQ"]Noting much but just thought I'd Release it. [PHP]case "welcome": if (!this.Session.GetHabbo().GotCommand("commands")) { return false;//2D3B; } if ((Params[1] != null)) { string username = null; GameClient client6 = null; username = Params[1]; client6 = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(username); Room room42 = client6.GetHabbo().CurrentRoom; if (client6 == null) { this.Session.SendNotif("User could not be found."); return true; } client6.SendWhisper("Welcome To Buzz Hotel, From " + this.Session.GetHabbo().Username); return true;//2D3B; } this.Session.SendNotif("You left something empty."); return true;[/PHP] Just change Plus to Mercury. yes I've renamed Mercury back to it's original name. only the user you sent it to will see it. Command line: :welcome (username) Screenshot: [URL]http://gyazo.com/5aa23d51a93d37a8dc3b480fdfe35dad[/URL][/SPOILER] [SPOILER="TWITCH"] Ok got a new command, :twitch [IMG]http://i.gyazo.com/8aac8d6d47dfb059e1f94183b19c50f5.png[/IMG] [SPOILER="CODE"] [PHP]case "twitch": case "stream": case "streamers": { using (IQueryAdapter id = PlusEnvironment.GetDatabaseManager().getQueryreactor()) { StringBuilder builder = new StringBuilder(); builder.Append("Hey, " + this.Session.GetHabbo().Username + " Here is a list of Twitch Streamers, it will be Very Apreciated if you Follow these :D.\n"); builder.Append("\n"); id.setQuery("SELECT id,username,twitch FROM twitch_users"); id.addParameter("user", id); DataRow row3 = id.getRow(); builder.Append("Streamer:\n"); builder.Append("Twitch Username: "+row3[2]+" Twitch Link = http://twitch.tv/ "+row3[2]+ "\n"); builder.Append("in-game Username: " + row3[1] + "\n"); builder.Append("\n"); builder.Append("\n"); builder.Append("Do you stream on twitch & want to show here? Contact Brad in-game.\n"); this.Session.SendNotifWithScroll(builder.ToString()); } } return true;[/PHP] [/SPOILER] [SPOILER="MySQL Query"] [CODE]DROP TABLE IF EXISTS `twitch_users`; CREATE TABLE `twitch_users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(550) DEFAULT NULL, `twitch` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of twitch_users -- ---------------------------- INSERT INTO `twitch_users` VALUES ('1', 'Brad', 'Cappercom');[/CODE] [/SPOILER] You could altar this for Fansites if your hotel Promotes them, This is yet an easy and quick command, [/SPOILER] [SPOILER="Fansites"] [PHP]case "fansites": { using (IQueryAdapter id = PlusEnvironment.GetDatabaseManager().getQueryreactor()) { StringBuilder builder = new StringBuilder(); builder.Append("Hey, " + Session.GetHabbo().Username + " Here is a list of Our Official Fansites, it will be Very Apreciated if you check then out :D.\n"); builder.Append("\n"); using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor()) { dbClient.setQuery("SELECT `name`,`username`,`link` FROM `fansites`"); DataTable GetFansites = dbClient.getTable(); if (GetFansites != null) { foreach (DataRow Row in GetFansites.Rows) { builder.Append("Fansite:\n"); builder.Append("Fansite Name: " + Row["name"] + " Fansite Link = " + Row["link"] + "\n"); builder.Append("in-game Username: " + Row["username"] + "\n"); builder.Append("\n"); } } else { builder.Append("There are currently no Fansites.\n"); } } builder.Append("Want yours to show here? Message (your username) in-game to sort this out! :D\n"); Session.SendNotifWithScroll(builder.ToString()); } } return true;[/PHP] [CODE]CREATE TABLE `fansites` ( `name` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(550) DEFAULT NULL, `link` varchar(255) DEFAULT NULL, ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;[/CODE] [/SPOILER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
MercuryEmu Command.
Top