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
Plus Emu 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="Altercationz" data-source="post: 365167" data-attributes="member: 59038"><p>I've been bored recently & just started coding commands into plus emu,</p><p></p><p>I'm sure some of you will find these useful.</p><p></p><p>Commands:</p><p>hug</p><p>balance</p><p>bancount</p><p>Enjoy,</p><p>[CODE]</p><p>public void hug(string[] Params)</p><p> {</p><p> string text = MergeParams(Params, 1);</p><p></p><p> Habbo Habbo1 = this.Session.GetHabbo();</p><p> if (Habbo1.CurrentRoom != null)</p><p> {</p><p> RoomUser User1 = Habbo1.CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(Habbo1.Id);</p><p> if (User1 != null)</p><p> {</p><p> RoomUser User2 = Habbo1.CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(text);</p><p> if (User2 == null)</p><p> {</p><p> this.Session.SendWhisper("Open your eyes! " + text + " is not in the room.");</p><p> return;</p><p> }</p><p> else if (new Vector2D(User1.Coordinate.X, User1.Coordinate.Y).GetDistanceSquared(new Vector2D(User2.Coordinate.X, User2.Coordinate.Y)) > 2)</p><p> {</p><p> this.Session.SendWhisper("The user is too far away, try getting closer.");</p><p> return;</p><p> }</p><p> User1.Chat(User1.GetClient(), "*Hugs " + text + "*", true, 0);</p><p> User1.GetClient().GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(9);</p><p> }</p><p> }</p><p> }</p><p>[/CODE]</p><p>[CODE]</p><p>public void balance()</p><p> {</p><p> int Credits = Session.GetHabbo().Credits;</p><p> int Pixels = Session.GetHabbo().ActivityPoints;</p><p> uint Rank = Session.GetHabbo().Rank;</p><p> string Output = String.Empty;</p><p></p><p> using (IQueryAdapter Adapter = PlusEnvironment.GetDatabaseManager().getQueryreactor())</p><p> {</p><p> Adapter.runFastQuery("SELECT credits, activity_points, rank FROM users WHERE username = @Me");</p><p> Adapter.addParameter("Me", Session.GetHabbo().Username);</p><p></p><p> DataTable Table = Adapter.getTable();</p><p> if (Table != null)</p><p> {</p><p> Output += "Account Balance for " + Session.GetHabbo().Username + "\r";</p><p> Output += "--------------------------------\r";</p><p> Output += "Credits: " + Credits.ToString() + "\r";</p><p> Output += "Pixels: " + Pixels.ToString() + "\r";</p><p> Output += "Rank: " + Rank.ToString() + "\r";</p><p></p><p> Session.SendNotifWithScroll(Output);</p><p> }</p><p> }</p><p> }</p><p>[/CODE]</p><p>[CODE]</p><p>public void bancount()</p><p> {</p><p> int Count = 0;</p><p> using (IQueryAdapter Adapter = PlusEnvironment.GetDatabaseManager().getQueryreactor())</p><p> {</p><p> Adapter.runFastQuery("SELECT id FROM bans");</p><p> DataTable BanTable = Adapter.getTable();</p><p> if (BanTable != null)</p><p> {</p><p> Count = BanTable.Rows.Count;</p><p> }</p><p> Session.SendNotif(PlusEnvironment.HotelName + " Has saved you from Disguised & Dillon " + Count.ToString() + " times!");</p><p> }</p><p> }</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Altercationz, post: 365167, member: 59038"] I've been bored recently & just started coding commands into plus emu, I'm sure some of you will find these useful. Commands: hug balance bancount Enjoy, [CODE] public void hug(string[] Params) { string text = MergeParams(Params, 1); Habbo Habbo1 = this.Session.GetHabbo(); if (Habbo1.CurrentRoom != null) { RoomUser User1 = Habbo1.CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(Habbo1.Id); if (User1 != null) { RoomUser User2 = Habbo1.CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(text); if (User2 == null) { this.Session.SendWhisper("Open your eyes! " + text + " is not in the room."); return; } else if (new Vector2D(User1.Coordinate.X, User1.Coordinate.Y).GetDistanceSquared(new Vector2D(User2.Coordinate.X, User2.Coordinate.Y)) > 2) { this.Session.SendWhisper("The user is too far away, try getting closer."); return; } User1.Chat(User1.GetClient(), "*Hugs " + text + "*", true, 0); User1.GetClient().GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(9); } } } [/CODE] [CODE] public void balance() { int Credits = Session.GetHabbo().Credits; int Pixels = Session.GetHabbo().ActivityPoints; uint Rank = Session.GetHabbo().Rank; string Output = String.Empty; using (IQueryAdapter Adapter = PlusEnvironment.GetDatabaseManager().getQueryreactor()) { Adapter.runFastQuery("SELECT credits, activity_points, rank FROM users WHERE username = @Me"); Adapter.addParameter("Me", Session.GetHabbo().Username); DataTable Table = Adapter.getTable(); if (Table != null) { Output += "Account Balance for " + Session.GetHabbo().Username + "\r"; Output += "--------------------------------\r"; Output += "Credits: " + Credits.ToString() + "\r"; Output += "Pixels: " + Pixels.ToString() + "\r"; Output += "Rank: " + Rank.ToString() + "\r"; Session.SendNotifWithScroll(Output); } } } [/CODE] [CODE] public void bancount() { int Count = 0; using (IQueryAdapter Adapter = PlusEnvironment.GetDatabaseManager().getQueryreactor()) { Adapter.runFastQuery("SELECT id FROM bans"); DataTable BanTable = Adapter.getTable(); if (BanTable != null) { Count = BanTable.Rows.Count; } Session.SendNotif(PlusEnvironment.HotelName + " Has saved you from Disguised & Dillon " + Count.ToString() + " times!"); } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
Plus Emu Commands
Top