Daily Updated - AstroRP2 / Plus Addons

Javasex

On Instagram str8 Flexin
Dec 21, 2013
128
24
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

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

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

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

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

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

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

Plus Addons Coming soon
To the Further noobs who say i can code. -Imput middle finger twards you :D
 

Javasex

On Instagram str8 Flexin
Dec 21, 2013
128
24
Do you code C#?
Never saw you code before tbh.. :L Maybe post some addons and contribute to the community....
if you can. no rush gogo
 

ptimmaq2

We all make mistakes
Aug 7, 2013
283
33
U
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

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

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

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

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

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

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

Plus Addons Coming soon
To the Further noobs who say i can code. -Imput middle finger twards you :D
Update it to latest LATEST ui ;)
 

MrPoopy

New Member
Jun 30, 2014
8
6
Ew.. what the hell is this? Looks like you just got someone elses work, and pasted it on here, without even properly evaluating it. Firstly learn to give credit where it is due, secondly, what on earth is this?
#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:
if (RoomID == null)
Um? Where is the RoomID variable? It isnt defined? And what the hell is this?
Code:
Session.GetHabbo().CurrentRoom;
Why did you randomy decide to reference a variable without even asigning it to a value?
Also this:
Code:
Session.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "Searches my GPS For" + Username + "is located in" + RoomID + "", 0, 1));

Where is the Username variable defined? This command doesnt do anything, chuck it into your emu and expect an error.

PS: You can't code.
 

ptimmaq2

We all make mistakes
Aug 7, 2013
283
33
Ew.. what the hell is this? Looks like you just got someone elses work, and pasted it on here, without even properly evaluating it. Firstly learn to give credit where it is due, secondly, what on earth is this?


Code:
if (RoomID == null)
Um? Where is the RoomID variable? It isnt defined? And what the hell is this?
Code:
Session.GetHabbo().CurrentRoom;
Why did you randomy decide to reference a variable without even asigning it to a value?
Also this:
Code:
Session.SendMessage(new Plus.Communication.Packets.Outgoing.Rooms.Chat.ShoutComposer(roomuser.VirtualId, "Searches my GPS For" + Username + "is located in" + RoomID + "", 0, 1));

Where is the Username variable defined? This command doesnt do anything, chuck it into your emu and expect an error.

PS: You can't code.
Ikr he cant but he playss all pro and says he makes malware and said to me he made butterfly LOOOOOOOOOOOOL
 

Javasex

On Instagram str8 Flexin
Dec 21, 2013
128
24
Ikr he cant but he playss all pro and says he makes malware and said to me he made butterfly LOOOOOOOOOOOOL
Your just mad i left ur arse m8 + We can join.me whenever?
No timo you cant code m8 you come to me with your problems and your only saying that shit cause i ditched you You just said "Update it to latest LATEST ui ;)"
If you didnt notice it takes about to seconds to change PlusEnviorment to SilverwaveEnviorment nooob (Assuming your using Silverwave)
You even told me you dont even know PHP? + You didn't know how to setup an R63B hotel on your little hamachi server cause your 12. So you quit retros and i was generous enough to do it for you.. When ever did i say i made butterfly? I told you my mate OMAR passed on his Butterfly DEVELOPMENT to me. Dont be stupid kid...
LOL Stupid kid SKID LOLOLOLOL = TIMO
 

ptimmaq2

We all make mistakes
Aug 7, 2013
283
33
Your just mad i left ur arse m8 + We can join.me whenever?
No timo you cant code m8 you come to me with your problems and your only saying that shit cause i ditched you You just said "Update it to latest LATEST ui ;)"
If you didnt notice it takes about to seconds to change PlusEnviorment to SilverwaveEnviorment nooob (Assuming your using Silverwave)
You even told me you dont even know PHP? + You didn't know how to setup an R63B hotel on your little hamachi server cause your 12. So you quit retros and i was generous enough to do it for you.. When ever did i say i made butterfly? I told you my mate OMAR passed on his Butterfly DEVELOPMENT to me. Dont be stupid kid...
LOL Stupid kid SKID LOLOLOLOL = TIMO
1. im same age u are, 2. you are more skid i am so stfu nigga.
 

Users who are viewing this thread

Top