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
Daily Updated - AstroRP2 / Plus Addons
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="Javasex" data-source="post: 291509" data-attributes="member: 40998"><p><strong>Notice: This is an Addon Thread and a Help Thread for Plus Emulator , AstroRP 2 and Revision 2 Plus</strong></p><p><strong>Notice: Will be Coding Commands on Request</strong></p><p><strong>Notice: Post your own addons if you'd Coded any and contribute to the Community</strong></p><p><strong>Without Further</strong></p><p><strong>interruption...</strong></p><p><strong></strong></p><p><strong>AstroRP2</strong></p><p>HotRooms:</p><p>[CODE]#region :hotrooms</p><p> case "hotrooms":</p><p> case "popularrooms":</p><p> {</p><p> using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor())</p><p> {</p><p> string Rooms = "";</p><p> dbClient.setQuery("SELECT * FROM rooms WHERE users_now > 0 ORDER BY users_now DESC");</p><p> DataTable Table = dbClient.getTable();</p><p> foreach(DataRow Row in Table.Rows)</p><p> {</p><p> Rooms += " [" + Row["id"] + "]" + Row["caption"] + "Users: " + Row["users_now"] + "\r\r" ;</p><p> }</p><p> Session.SendNotifWithScroll(Rooms);</p><p> }</p><p> return true;</p><p> }</p><p> #endregion[/CODE]</p><p></p><p>GPS:</p><p>[CODE]#region :gps</p><p> case "gps":</p><p> if (RoomID == null)</p><p> {</p><p> </p><p> }</p><p> else</p><p> Session.GetHabbo().CurrentRoom;</p><p> PlusEnvironment.GetGame().GetRoomManager().GetRoom(CurrentRoomId);</p><p> Session.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "Pulls out my phone.", 0, 1));</p><p> Session.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "Searches my GPS For" + Username + "is located in" + RoomID + "", 0, 1)); </p><p> {</p><p> break;</p><p> }</p><p> #endregion[/CODE]</p><p></p><p>Police Radio:</p><p>[CODE] #region police radio</p><p> case "pr":</p><p> case "radio":</p><p> {</p><p></p><p> if (Session.GetHabbo().Working == 1 && Session.GetHabbo().CorpID == 3)</p><p> {</p><p> Habbo.SendToCorp("Police Radio: " + MergeParams(Params, 1) + " -" + Session.GetHabbo().Username,3);</p><p> }</p><p> return true;</p><p> }</p><p> #endregion[/CODE]</p><p></p><p>Superhire:</p><p>[CODE]#region :superhire <username> <corpid> <rankid></p><p> case "superhire":</p><p> {</p><p> </p><p> Room room = Session.GetHabbo().CurrentRoom;</p><p> RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> try</p><p> {</p><p></p><p> if (Session.GetHabbo().HasCmd("superhire") == false)</p><p> {</p><p> Session.SendWhisper("You are not allowed to do this!");</p><p> }</p><p></p><p> if (Session.GetHabbo().HasCmd("superhire"))</p><p> {</p><p> List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers();</p><p> foreach (RoomUser user in users)</p><p> {</p><p></p><p> if (user.GetUsername().ToLower() == Params[1].ToLower())</p><p> {</p><p> if (Plus.Messages.GameClientMessageHandler.HasAJob(user.GetClient().GetHabbo().Id) == true)</p><p> {</p><p> Session.SendWhisper("You cannot do this because this user has a job!");</p><p> return true;</p><p> }</p><p></p><p> uint JobID = Convert.ToUInt32(Params[2]);</p><p> int JobRank = Convert.ToInt32(Params[3]);</p><p></p><p> string HireName = Plus.Messages.GameClientMessageHandler.getRankName(JobID, JobRank);</p><p></p><p> if (JobID == 1)</p><p> {</p><p> Session.SendWhisper("That ID is for unemployment, you cannot do that.");</p><p> return true;</p><p> }</p><p></p><p> if (HireName == null || HireName == "" || HireName == " ")</p><p> {</p><p> Session.SendWhisper("This job does not exist.");</p><p> return true;</p><p> }</p><p></p><p> Plus.Messages.GameClientMessageHandler.HireUser(user.GetClient().GetHabbo(), JobID, JobRank);</p><p> room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Admin hires " + Params[1].ToLower() + " as " + HireName + "*", 0, 0));</p><p></p><p> }</p><p> }</p><p> return true;</p><p> } Session.SendWhisper("You are not allowed to do this!");</p><p> return true;</p><p> }</p><p> catch (Exception e) { Console.WriteLine("ExceptionSUPERHIRE: " + e.ToString()); }</p><p> break;</p><p> }</p><p> #endregion[/CODE]</p><p></p><p>Kill:</p><p>[CODE]#region :kill (staff)</p><p> case "kill":</p><p> {</p><p> //</p><p> Room room = Session.GetHabbo().CurrentRoom;</p><p> RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> if (Session.GetHabbo().HasCmd("kill"))</p><p> {</p><p> room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Kills " + Params[1].ToUpper() + "*", 0, 0));</p><p> </p><p> List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers();</p><p> foreach (RoomUser user in users)</p><p> {</p><p></p><p> if (user.GetUsername().ToLower() == Params[1].ToLower())</p><p> {</p><p> user.GetClient().SendNotif("You have been admin killed " + Session.GetHabbo().Username);</p><p> user.GetClient().GetHabbo().Timer = 5;</p><p> user.GetClient().GetHabbo().Dead = 1;</p><p> user.GetClient().GetMessageHandler().PrepareRoomForUser(2, "");</p><p> return true;</p><p> }</p><p></p><p> }</p><p> </p><p> }</p><p> else { Session.SendWhisper("You do not have permission to do this."); return true; }</p><p> return true;</p><p> }</p><p> #endregion[/CODE]</p><p></p><p>Release:</p><p>[CODE]#region :release (staff)</p><p> case "release":</p><p> {</p><p> Room room = Session.GetHabbo().CurrentRoom;</p><p> RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> if (Session.GetHabbo().HasCmd("release"))</p><p> {</p><p> </p><p> room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Releases " + Params[1].ToLower() + "*", 0, 0));</p><p></p><p> List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers();</p><p> foreach (RoomUser user in users)</p><p> {</p><p> </p><p> if (user.GetUsername().ToLower() == Params[1].ToLower())</p><p> {</p><p> Room userroom = user.GetClient().GetHabbo().CurrentRoom;</p><p> RoomUser roomuserr = userroom.GetRoomUserManager().GetRoomUserByHabbo(user.GetClient().GetHabbo().Id);</p><p></p><p> user.GetClient().GetHabbo().Health = 100;</p><p> user.GetClient().GetHabbo().Energy = 100;</p><p> user.GetClient().GetHabbo().Timer = 0;</p><p> user.GetClient().GetHabbo().Dead = 0;</p><p> user.Frozen = false;</p><p> user.CanWalk = true;</p><p> user.GetClient().GetHabbo().Jailed = 0;</p><p> user.GetClient().GetHabbo().isDead = false;</p><p> user.GetClient().GetHabbo().isJailed = false;</p><p> user.GetClient().GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserInformation);</p><p> Habbo.MottoMgr(user.GetClient().GetHabbo(), user.GetClient().GetHabbo().Motto, "", false, false);</p><p> user.GetClient().GetHabbo().Motto = user.GetClient().GetHabbo().oMotto;</p><p> user.GetClient().GetMessageHandler().GetResponse().AppendInt32(-1);</p><p> user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().oLook);</p><p> user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().Gender.ToLower());</p><p> user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().Motto);</p><p> user.GetClient().GetMessageHandler().GetResponse().AppendInt32(user.GetClient().GetHabbo().AchievementPoints);</p><p> user.GetClient().GetMessageHandler().SendResponse();</p><p> ServerMessage RoomUpdates = new ServerMessage(Outgoing.UpdateUserInformation);</p><p> RoomUpdates.AppendInt32(roomuser.VirtualId);</p><p> RoomUpdates.AppendString(user.GetClient().GetHabbo().oLook);</p><p> RoomUpdates.AppendString(user.GetClient().GetHabbo().Gender.ToLower());</p><p> RoomUpdates.AppendString(user.GetClient().GetHabbo().Motto);</p><p> RoomUpdates.AppendInt32(user.GetClient().GetHabbo().AchievementPoints);</p><p> userroom.SendMessage(RoomUpdates);</p><p> Habbo.MottoMgr(user.GetClient().GetHabbo(),user.GetClient().GetHabbo().Motto,"",true,true);</p><p> return true;</p><p> //user.GetClient().GetHabbo()</p><p> }</p><p></p><p> }</p><p></p><p> </p><p> }</p><p> else { Session.SendWhisper("You do not have permission to do this."); }</p><p></p><p> return true;</p><p> }</p><p> #endregion[/CODE]</p><p></p><p>Plus Addons Coming soon</p><p><strong>To the Further noobs who say i can code. -Imput middle finger twards you <img src="/styles/default/xenforo/smilies/emojione/biggrin.png" class="smilie" loading="lazy" alt=":D" title="Big Grin :D" data-shortname=":D" /></strong></p></blockquote><p></p>
[QUOTE="Javasex, post: 291509, member: 40998"] [B]Notice: This is an Addon Thread and a Help Thread for Plus Emulator , AstroRP 2 and Revision 2 Plus Notice: Will be Coding Commands on Request Notice: Post your own addons if you'd Coded any and contribute to the Community Without Further interruption... AstroRP2[/B] HotRooms: [CODE]#region :hotrooms case "hotrooms": case "popularrooms": { using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor()) { string Rooms = ""; dbClient.setQuery("SELECT * FROM rooms WHERE users_now > 0 ORDER BY users_now DESC"); DataTable Table = dbClient.getTable(); foreach(DataRow Row in Table.Rows) { Rooms += " [" + Row["id"] + "]" + Row["caption"] + "Users: " + Row["users_now"] + "\r\r" ; } Session.SendNotifWithScroll(Rooms); } return true; } #endregion[/CODE] GPS: [CODE]#region :gps case "gps": if (RoomID == null) { } else Session.GetHabbo().CurrentRoom; PlusEnvironment.GetGame().GetRoomManager().GetRoom(CurrentRoomId); Session.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "Pulls out my phone.", 0, 1)); Session.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "Searches my GPS For" + Username + "is located in" + RoomID + "", 0, 1)); { break; } #endregion[/CODE] Police Radio: [CODE] #region police radio case "pr": case "radio": { if (Session.GetHabbo().Working == 1 && Session.GetHabbo().CorpID == 3) { Habbo.SendToCorp("Police Radio: " + MergeParams(Params, 1) + " -" + Session.GetHabbo().Username,3); } return true; } #endregion[/CODE] Superhire: [CODE]#region :superhire <username> <corpid> <rankid> case "superhire": { Room room = Session.GetHabbo().CurrentRoom; RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); try { if (Session.GetHabbo().HasCmd("superhire") == false) { Session.SendWhisper("You are not allowed to do this!"); } if (Session.GetHabbo().HasCmd("superhire")) { List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers(); foreach (RoomUser user in users) { if (user.GetUsername().ToLower() == Params[1].ToLower()) { if (Plus.Messages.GameClientMessageHandler.HasAJob(user.GetClient().GetHabbo().Id) == true) { Session.SendWhisper("You cannot do this because this user has a job!"); return true; } uint JobID = Convert.ToUInt32(Params[2]); int JobRank = Convert.ToInt32(Params[3]); string HireName = Plus.Messages.GameClientMessageHandler.getRankName(JobID, JobRank); if (JobID == 1) { Session.SendWhisper("That ID is for unemployment, you cannot do that."); return true; } if (HireName == null || HireName == "" || HireName == " ") { Session.SendWhisper("This job does not exist."); return true; } Plus.Messages.GameClientMessageHandler.HireUser(user.GetClient().GetHabbo(), JobID, JobRank); room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Admin hires " + Params[1].ToLower() + " as " + HireName + "*", 0, 0)); } } return true; } Session.SendWhisper("You are not allowed to do this!"); return true; } catch (Exception e) { Console.WriteLine("ExceptionSUPERHIRE: " + e.ToString()); } break; } #endregion[/CODE] Kill: [CODE]#region :kill (staff) case "kill": { // Room room = Session.GetHabbo().CurrentRoom; RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (Session.GetHabbo().HasCmd("kill")) { room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Kills " + Params[1].ToUpper() + "*", 0, 0)); List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers(); foreach (RoomUser user in users) { if (user.GetUsername().ToLower() == Params[1].ToLower()) { user.GetClient().SendNotif("You have been admin killed " + Session.GetHabbo().Username); user.GetClient().GetHabbo().Timer = 5; user.GetClient().GetHabbo().Dead = 1; user.GetClient().GetMessageHandler().PrepareRoomForUser(2, ""); return true; } } } else { Session.SendWhisper("You do not have permission to do this."); return true; } return true; } #endregion[/CODE] Release: [CODE]#region :release (staff) case "release": { Room room = Session.GetHabbo().CurrentRoom; RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (Session.GetHabbo().HasCmd("release")) { room.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "*Releases " + Params[1].ToLower() + "*", 0, 0)); List<RoomUser> users = room.GetRoomUserManager().GetRoomUsers(); foreach (RoomUser user in users) { if (user.GetUsername().ToLower() == Params[1].ToLower()) { Room userroom = user.GetClient().GetHabbo().CurrentRoom; RoomUser roomuserr = userroom.GetRoomUserManager().GetRoomUserByHabbo(user.GetClient().GetHabbo().Id); user.GetClient().GetHabbo().Health = 100; user.GetClient().GetHabbo().Energy = 100; user.GetClient().GetHabbo().Timer = 0; user.GetClient().GetHabbo().Dead = 0; user.Frozen = false; user.CanWalk = true; user.GetClient().GetHabbo().Jailed = 0; user.GetClient().GetHabbo().isDead = false; user.GetClient().GetHabbo().isJailed = false; user.GetClient().GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserInformation); Habbo.MottoMgr(user.GetClient().GetHabbo(), user.GetClient().GetHabbo().Motto, "", false, false); user.GetClient().GetHabbo().Motto = user.GetClient().GetHabbo().oMotto; user.GetClient().GetMessageHandler().GetResponse().AppendInt32(-1); user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().oLook); user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().Gender.ToLower()); user.GetClient().GetMessageHandler().GetResponse().AppendString(user.GetClient().GetHabbo().Motto); user.GetClient().GetMessageHandler().GetResponse().AppendInt32(user.GetClient().GetHabbo().AchievementPoints); user.GetClient().GetMessageHandler().SendResponse(); ServerMessage RoomUpdates = new ServerMessage(Outgoing.UpdateUserInformation); RoomUpdates.AppendInt32(roomuser.VirtualId); RoomUpdates.AppendString(user.GetClient().GetHabbo().oLook); RoomUpdates.AppendString(user.GetClient().GetHabbo().Gender.ToLower()); RoomUpdates.AppendString(user.GetClient().GetHabbo().Motto); RoomUpdates.AppendInt32(user.GetClient().GetHabbo().AchievementPoints); userroom.SendMessage(RoomUpdates); Habbo.MottoMgr(user.GetClient().GetHabbo(),user.GetClient().GetHabbo().Motto,"",true,true); return true; //user.GetClient().GetHabbo() } } } else { Session.SendWhisper("You do not have permission to do this."); } return true; } #endregion[/CODE] Plus Addons Coming soon [B]To the Further noobs who say i can code. -Imput middle finger twards you :D[/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Daily Updated - AstroRP2 / Plus Addons
Top