• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[UBER] Roombadge Command [JNike]

Status
Not open for further replies.
Junior Spellweaver
Joined
Sep 8, 2010
Messages
145
Reaction score
55
Hey guys, i was a bit bored, and made this command, Slaxxer did see how i made it my self. lol. Back to topic. what does it do?

It gives to every user in the room a Badge.

Example:

:roombadges XXX

Every user in the room will get a badge called XXX aka Xler Badge.

Anyways, have fun with it!

Code:

PHP:
                    case "roombadges":
                        {
                            if (Session.GetHabbo().Rank >= 6)
                            {
                                string badgecode = MergeParams(Params, 1);
                                // Das sind alles METHODEN zb:
                                TargetRoom = UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                foreach (RoomUser RoomUser in TargetRoom.UserList)
                                {
                                    if (RoomUser.IsBot)
                                    {
                                        continue;
                                    }

                                    RoomUser.GetClient().GetHabbo().GetBadgeComponent().GiveBadge(badgecode, true);
                                }

                                return true;
                            }
                            return false;
                        }


:thumbup:
 
Junior Spellweaver
Joined
Apr 28, 2009
Messages
150
Reaction score
2
Create a code :globalbadge and :globalcredits :D
 
I would wait for the moon
Loyal Member
Joined
Jun 9, 2007
Messages
2,081
Reaction score
1,192
I love you.

<3Liked'


Question: will this automaticly update the badge inventory? (so the users don't have to restart?) or do I need to add an .LoadBadges(); line?
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Jan 25, 2009
Messages
1,539
Reaction score
4
I think you will have to add a line, I don't think this code updates badges inventory D:
 
Last edited:
Junior Spellweaver
Joined
Sep 8, 2010
Messages
145
Reaction score
55
I love you.

<3Liked'


Question: will this automaticly update the badge inventory? (so the users don't have to restart?) or do I need to add an .LoadBadges(); line?

Thanks bro, it wasn't hard for me.
Anyways, im sorry that i didnt put the refresh aka loadbadge shiz.

After school im going make Globalcredits and badges ;).

Anyways, ive got from habmoon a thanks woot.

Going yet to school; 07:20 PM :p

PHP:
case "roombadges":
                        {
                            if (Session.GetHabbo().Rank >= 6)
                            {
                                string badgecode = MergeParams(Params, 1);
                                // Das sind alles METHODEN zb:
                                TargetRoom = UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                foreach (RoomUser RoomUser in TargetRoom.UserList)
                                {
                                    if (RoomUser.IsBot)
                                    {
                                        continue;
                                    }

                                    RoomUser.GetClient().GetHabbo().GetBadgeComponent().GiveBadge(badgecode, true);
                                    RoomUser.GetClient().GetHabbo().GetBadgeComponent().LoadBadges();
                                }

                                return true;
                            }
                            return false;
                        }

This should work!

Ok bye, have now to go!
 
Last edited:
Banned
Banned
Joined
Jan 20, 2011
Messages
531
Reaction score
36
Thanks for this :O!

---------- Post added at 07:03 PM ---------- Previous post was at 07:01 PM ----------

Also, I need one where is gives to the whole hotel, and alsoooo, I need the command where it gives the whole hotel credits :masscredits

---------- Post added at 07:04 PM ---------- Previous post was at 07:03 PM ----------

I need the :masscredits command too :O :D

---------- Post added at 07:05 PM ---------- Previous post was at 07:04 PM ----------

I need the :masscredits command too :O :D

---------- Post added at 07:06 PM ---------- Previous post was at 07:05 PM ----------

I need the :masscredits command too :O :D
 
Status
Not open for further replies.
Back
Top