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: 308845" data-attributes="member: 17995"><p>It's for the lets just say "lazy" users. I said it's nothing much, alot of users Requested me to add it so i did.[DOUBLEPOST=1413739248,1413738936][/DOUBLEPOST]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>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 <img src="/styles/default/xenforo/smilies/emojione/biggrin.png" class="smilie" loading="lazy" alt=":D" title="Big Grin :D" data-shortname=":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 = <a href="http://twitch.tv/" target="_blank">http://twitch.tv/</a> "+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;</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></blockquote><p></p>
[QUOTE="Brad, post: 308845, member: 17995"] It's for the lets just say "lazy" users. I said it's nothing much, alot of users Requested me to add it so i did.[DOUBLEPOST=1413739248,1413738936][/DOUBLEPOST]Ok got a new command, :twitch [IMG]http://i.gyazo.com/8aac8d6d47dfb059e1f94183b19c50f5.png[/IMG] [SPOILER="CODE"] 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 = [url]http://twitch.tv/[/url] "+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; [/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, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
MercuryEmu Command.
Top