[Service]HabboCodingThread[Service]

Status
Not open for further replies.

Mango2735

The Sexy One.
Oct 13, 2010
288
3
Hey guys, I have made a coding thread mostly For RP Commands ;) So please post some imaginary rp codes you would love to see on your hostel ;) LOL!

If you don't get it right away im pretty sure someone on the forums will code it for you. ;) GO AHEAD~
 

Kieren

The OGz
Aug 4, 2010
2,957
751
Maybe an invisible command for holograph emu or if not that maybe : purchase <code> <colourid>
 

Mango2735

The Sexy One.
Oct 13, 2010
288
3
Here you go Ki,

PHP:
#region :invisible
                    case "invisible":
                        {
                            if (rankManager.containsRight(this, "fuse_enter_full_rooms", userID) == false)
                                return false;
                            else
                            {
                                _Figure = "hd-0-0.sh-0-.lg-0-.ch-0-.hr-0-0";
                                _Mission = "Invisible Mode Activated";
                                
                                
                                refreshAppearance(false, true, true);
                            }
                            break;
                        }
                    #endregion


More specifics for the :purchase command? What kind clothing?
 

IRCHRIS

New Member
Jul 20, 2010
15
0
Ive been using Obbo's emu with advanced bot's and i would like a command like :at but were it makes the bot go with u to the room.
 

Jared

Member
Jul 14, 2010
74
15
:summonall to summon the whole hotel to you

:forcesummon name - some people cancel a summon this would make the cancel button disappear etc
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
:summonall to summon the whole hotel to you

:forcesummon name - some people cancel a summon this would make the cancel button disappear etc

Thought I'd give a crack at coding again, And I did this for ya, Should work not tested..

This is the :summonall command. (You shouldn't really use this if you have 35+ online, It will probably bug the rooms and stuff, That's what I think anyway.

PLACE THIS VOID IN userManager.CS

Code:
 // summons the whole hotel.
        public static void summonWholeHotel(int _Rank, bool includeHigher, string Data)
        {
            try
            {
                {
                    foreach (virtualUser User in _Users.Values)
                    {
                        using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                        {
                                if (_Rank < 8)
                                {
                                    User.sendData(Data);
                                }
                            }
                        }
                    }
                }
            catch { }
        }
        // end the summoning void.

Command, You know where to place this, BUt just incase, virtualUser.CS.


Code:
#region :summonall
                    case "summonall":
                        {
                            if (_Rank > 4)
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                {
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
                                        userManager.KickRedTeam(1, true, "BK" + "Your flag has been captured your out of the game");
                                        User.sendData("D^" + "H" + Encoding.encodeVL64(_roomID));
                                        User.sendData("BK" + "An administrator has summoned you!");
                                        Room.sendSaying(roomUser, "*uses their god-like powers to summon the whole hotel*");
                                        dbClient.runQuery("UPDATE users SET avoid = '1' WHERE name = '" + User._Username + "'");
                                    }
                                }
                            }
                            break;
                        }
                    #endregion

I can imagine that there is an error in there, Due to me doing this instantly when I just woke up LOL. ;)

- Cheers.
 

Kieren

The OGz
Aug 4, 2010
2,957
751
Here you go Ki,

PHP:
#region :invisible
                    case "invisible":
                        {
                            if (rankManager.containsRight(this, "fuse_enter_full_rooms", userID) == false)
                                return false;
                            else
                            {
                                _Figure = "hd-0-0.sh-0-.lg-0-.ch-0-.hr-0-0";
                                _Mission = "Invisible Mode Activated";
                                
                                
                                refreshAppearance(false, true, true);
                            }
                            break;
                        }
                    #endregion


More specifics for the :purchase command? What kind clothing?

I tried this but it makes your figure have nothing, so really everyone DC's when they click on the figure, and clothing like going into a cloth store and type : purchasing <clothid> <colourid> if you can't do that then I don't blame you it would take a lot of coding.
 

Ceejay

Member
Aug 10, 2010
161
2
#region :invisible
case "invisible":
{
if (
rankManager.containsRight(this, "fuse_enter_full_rooms", userID) == false)
return
false;
else
{
_Figure = "hd-0-0.sh-0-.lg-0-.ch-0-.hr-0-0";
_Mission = "Invisible Mode Activated";


refreshAppearance(false, true, true);
}
break;
}
#endregion


Hmm, A better version of this tbh:

virtualUser:

#region :spy
case "spy":
{
if (_Rank > 5)
{
if (_isInvisible == true)
{
_isInvisible = false;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("INSERT INTO staff_log (username,against,action) VALUES ('" + _Username + "', '" + _Username + "', 'Spy Mode OFF')");
}
}
else if (_isInvisible == false)
{
_isInvisible = true;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("INSERT INTO staff_log (username,against,action) VALUES ('" + _Username + "', '" + _Username + "', 'Spy Mode ON')");
}
}
}
break;
}
#endregion
Virtual User again
Search for " #region Personal"
under that place:
public bool _isInvisible;
Now in virtualRoom
find:
if (nextState == squareState.Seat) // The next steps are on a seat, seat the user, prepare the sit status for next cycle of thread ABOVE that put:
if (roomUser.User._isInvisible == true)
{
roomUser.H = 100;
}
else
{
roomUser.H = nextHeight;
}
You may or maynot get errors Idk where other stuff is..
 

Kieren

The OGz
Aug 4, 2010
2,957
751
Hmm, A better version of this tbh:

virtualUser:


Virtual User again
Search for " #region Personal"
under that place:

Now in virtualRoom
find:
if (nextState == squareState.Seat) // The next steps are on a seat, seat the user, prepare the sit status for next cycle of thread ABOVE that put:

You may or maynot get errors Idk where other stuff is..

Your version doesn't work with Holograph Emulator I tried to add something like that and it went tits up.
 

Ceejay

Member
Aug 10, 2010
161
2
Your version doesn't work with Holograph Emulator I tried to add something like that and it went tits up.

You haveto add the othe stuff..
But idk, As i said you may get errors or you may not
 

Mango2735

The Sexy One.
Oct 13, 2010
288
3
Well, If you want the invisble command habborp used to have i reccomend you get the effects package because the one i gave you invisble which is the right code ;)

@IRCHRIS HERE I have tested so it might be rusty ;)

PHP:
#region :sendbot <user>
                    case "sendbot":
                    case "sendbot":
                        {
                            if (_Rank > 4)
                            {
                                foreach (virtualBot roomBot in Room._Bots.Values)
                            {
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    int roomname;
                                    roomname = dbClient.getInt("SELECT name FROM rooms WHERE id = '" + _roomID + "'");

                                    Room.sendSaying(roomUser, "*Jetpacks " + User._Username + " to " + roomname + " [" + _roomID + "]*");
                                    User.sendData("D^" + "H" + Encoding.encodeVL64(roomname));
                                    
                                }
                            }
                            break;
                        }
                    #endregion
 
Status
Not open for further replies.

Users who are viewing this thread

Top