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
Server Releases
[RELEASE] PlusEMU Commands that might be useful.
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="Jerry" data-source="post: 273231" data-attributes="member: 35321"><p>I'll be releasing a few more commands if it's useful or not.</p><ul> <li data-xf-list-type="ul">FAQ</li> <li data-xf-list-type="ul">HandItem</li> </ul><p>Handitem:</p><p>[CODE] #region handitem (:handitem <id>)</p><p> case "handitem":</p><p> {</p><p> if (Session.GetHabbo().HasCmd("handitem"))</p><p> {</p><p> Room currentRoom = Session.GetHabbo().CurrentRoom;</p><p> RoomUser roomUserByHabbo = null;</p><p> currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);</p><p> if (currentRoom != null)</p><p> {</p><p> roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> if (roomUserByHabbo != null)</p><p> {</p><p> try</p><p> {</p><p> roomUserByHabbo.CarryItem(int.Parse(Params[1]));</p><p> }</p><p> catch</p><p> {</p><p> }</p><p> }</p><p> }</p><p> }</p><p> return true;</p><p> }</p><p> #endregion</p><p>[/CODE]</p><p>FAQ:</p><p>[CODE] #region FAQ (:faq)</p><p> case "faq":</p><p> {</p><p> if (Session.GetHabbo().HasCmd("faq"))</p><p> {</p><p> DataTable table;</p><p> Room currentRoom = Session.GetHabbo().CurrentRoom;</p><p> using (IQueryAdapter adapter = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())</p><p> {</p><p> adapter.setQuery("SELECT question, answer FROM faq");</p><p> table = adapter.getTable();</p><p> }</p><p> StringBuilder builder = new StringBuilder();</p><p> builder.Append(" - FAQ - \r\r");</p><p> foreach (DataRow row in table.Rows)</p><p> {</p><p> builder.Append("Q: " + ((string)row["question"]) + "\r");</p><p> builder.Append("A: " + ((string)row["answer"]) + "\r\r");</p><p> }</p><p> Session.SendNotif(builder.ToString());</p><p> }</p><p> return true;</p><p> }</p><p> </p><p></p><p> #endregion</p><p>[/CODE]</p><p>SQL for FAQ:</p><p>[CODE]-- ----------------------------</p><p>-- Table structure for `faq`</p><p>-- ----------------------------</p><p>DROP TABLE IF EXISTS `faq`;</p><p>CREATE TABLE `faq` (</p><p> `id` int(11) NOT NULL AUTO_INCREMENT,</p><p> `question` text NOT NULL,</p><p> `answer` text NOT NULL,</p><p> PRIMARY KEY (`id`),</p><p> UNIQUE KEY `id` (`id`) USING BTREE</p><p>) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;</p><p></p><p>-- ----------------------------</p><p>-- Records of faq</p><p>-- ----------------------------</p><p>INSERT INTO `faq` VALUES ('1', 'How can I be staff?', 'Be active, help users, advertise and more');</p><p>INSERT INTO `faq` VALUES ('2', 'Can I have more credits?', 'No, you get 500c every 15 minutes');</p><p>INSERT INTO `faq` VALUES ('3', 'Can I have a rare?', 'Hell no');</p><p>INSERT INTO `faq` VALUES ('4', 'Can I have more duckets?', 'No, you get 100 duckets every 15 minutes');</p><p>INSERT INTO `faq` VALUES ('5', 'When will pets get released?', 'They are allready in the catalog.');</p><p>INSERT INTO `faq` VALUES ('6', 'Can staff come and advertise my room?', 'Sometimes..');</p><p>INSERT INTO `faq` VALUES ('7', 'Can I be friend with staff?', 'Sure, as long you do not beg :D');</p><p>INSERT INTO `faq` VALUES ('8', 'Can I have a badge?', 'No, there is a badgeshop feature on your website, check it out :D');</p><p>[/CODE]</p><p>SQL for fuse_cmds:</p><p>[CODE]INSERT INTO `fuse_cmds` VALUES ('86', 'handitem', '1', '%id%', 'Gives you the chosen item');</p><p>INSERT INTO `fuse_cmds` VALUES ('87', 'faq', '1', null, 'It gives you the answers you might need');</p><p>[/CODE]</p><p></p><p>Screenshots;</p><p><img src="http://i.imgur.com/4TCFBvD.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><img src="http://i.imgur.com/ULHSmgj.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><strong>Credits:</strong></p><p><em>JerryCool</em> - Fixed coding for PlusEMU.</p><p><em>SwiftEMU</em> - Taking their code from the source.</p></blockquote><p></p>
[QUOTE="Jerry, post: 273231, member: 35321"] I'll be releasing a few more commands if it's useful or not. [LIST] [*]FAQ [*]HandItem [/LIST] Handitem: [CODE] #region handitem (:handitem <id>) case "handitem": { if (Session.GetHabbo().HasCmd("handitem")) { Room currentRoom = Session.GetHabbo().CurrentRoom; RoomUser roomUserByHabbo = null; currentRoom = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (currentRoom != null) { roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (roomUserByHabbo != null) { try { roomUserByHabbo.CarryItem(int.Parse(Params[1])); } catch { } } } } return true; } #endregion [/CODE] FAQ: [CODE] #region FAQ (:faq) case "faq": { if (Session.GetHabbo().HasCmd("faq")) { DataTable table; Room currentRoom = Session.GetHabbo().CurrentRoom; using (IQueryAdapter adapter = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor()) { adapter.setQuery("SELECT question, answer FROM faq"); table = adapter.getTable(); } StringBuilder builder = new StringBuilder(); builder.Append(" - FAQ - \r\r"); foreach (DataRow row in table.Rows) { builder.Append("Q: " + ((string)row["question"]) + "\r"); builder.Append("A: " + ((string)row["answer"]) + "\r\r"); } Session.SendNotif(builder.ToString()); } return true; } #endregion [/CODE] SQL for FAQ: [CODE]-- ---------------------------- -- Table structure for `faq` -- ---------------------------- DROP TABLE IF EXISTS `faq`; CREATE TABLE `faq` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question` text NOT NULL, `answer` text NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) USING BTREE ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of faq -- ---------------------------- INSERT INTO `faq` VALUES ('1', 'How can I be staff?', 'Be active, help users, advertise and more'); INSERT INTO `faq` VALUES ('2', 'Can I have more credits?', 'No, you get 500c every 15 minutes'); INSERT INTO `faq` VALUES ('3', 'Can I have a rare?', 'Hell no'); INSERT INTO `faq` VALUES ('4', 'Can I have more duckets?', 'No, you get 100 duckets every 15 minutes'); INSERT INTO `faq` VALUES ('5', 'When will pets get released?', 'They are allready in the catalog.'); INSERT INTO `faq` VALUES ('6', 'Can staff come and advertise my room?', 'Sometimes..'); INSERT INTO `faq` VALUES ('7', 'Can I be friend with staff?', 'Sure, as long you do not beg :D'); INSERT INTO `faq` VALUES ('8', 'Can I have a badge?', 'No, there is a badgeshop feature on your website, check it out :D'); [/CODE] SQL for fuse_cmds: [CODE]INSERT INTO `fuse_cmds` VALUES ('86', 'handitem', '1', '%id%', 'Gives you the chosen item'); INSERT INTO `fuse_cmds` VALUES ('87', 'faq', '1', null, 'It gives you the answers you might need'); [/CODE] Screenshots; [IMG]http://i.imgur.com/4TCFBvD.png[/IMG] [IMG]http://i.imgur.com/ULHSmgj.png[/IMG] [B]Credits:[/B] [I]JerryCool[/I] - Fixed coding for PlusEMU. [I]SwiftEMU[/I] - Taking their code from the source. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[RELEASE] PlusEMU Commands that might be useful.
Top