Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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
 
Custom Title Activated
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