Hello & Welcome to our community. Is this your first visit? Register

Results 1 to 13 of 13
  1. #1
    Ultimate Member JNike Rulez's Avatar

    Rank
    Member
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    183

    [UBER] Roombadge Command [JNike]

    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 Code:
                        case "roombadges":
                            {
                                if (
    Session.GetHabbo().Rank >= 6)
                                {
                                    
    string badgecode MergeParams(Params1);
                                    
    // 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(badgecodetrue);
                                    }

                                    return 
    true;
                                }
                                return 
    false;
                            } 


  2. # ADS
    HyperFilter
    RaGEZONE Sponsor

    Rank
      Sponsor  
    Join Date
    Sep 2013
    Posts
    9000


     

  3. #2
    Now 35% cooler!

    Rank
    Alpha Male
    Join Date
    Oct 2008
    Location
    C:/
    Posts
    2,315

    Re: [UBER] Roombadge Command [JNike]

    Nice release.

  4. #3
    Account Upgraded | Title Enabled! LucasReis's Avatar

    Rank
    True Member
    Join Date
    Jun 2009
    Location
    Sorocaba, Brazi
    Posts
    206

    Re: [UBER] Roombadge Command [JNike]

    Nice, and thanks !

  5. #4
    Ultimate Member JNike Rulez's Avatar

    Rank
    Member
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    183

    Re: [UBER] Roombadge Command [JNike]

    Well thanks, Insert the code somewhere under any other case in the ChatCommandhandler.cs!

  6. #5
    You can call me Monty :D GuikBretas's Avatar

    Rank
    True Member
    Join Date
    Apr 2009
    Location
    Norway
    Posts
    332

    Re: [UBER] Roombadge Command [JNike]

    Create a code :globalbadge and :globalcredits :D
    You are a Noob for reading this

  7. #6
    sexiess is a sin.

    Rank
    Alpha Male
    Join Date
    Jun 2010
    Posts
    2,497

    Re: [UBER] Roombadge Command [JNike]

    Good codes man!
    sign4ture?

  8. #7
    Best contributor of 2012ツ HabMoon's Avatar

    Rank
    Moderator
    Join Date
    Jun 2007
    Location
    HM Offices
    Posts
    2,979

    Re: [UBER] Roombadge Command [JNike]

    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 by HabMoon; 03-03-11 at 10:02 PM.


    Quote Originally Posted by r63
    Your problems are not my problems therefore meaning I don't care.
    I explained and you said you didn't understand, you cannot say I didn't try to help,
    the fact you are unable to comprehend my help is not my issue.

  9. #8
    sexiess is a sin.

    Rank
    Alpha Male
    Join Date
    Jun 2010
    Posts
    2,497

    Re: [UBER] Roombadge Command [JNike]

    I think you will have to add a line, I don't think this code updates badges inventory D:
    Last edited by Subway; 03-03-11 at 10:12 PM.
    sign4ture?

  10. #9
    Member

    Rank
    Member
    Join Date
    Jun 2010
    Posts
    37

    Re: [UBER] Roombadge Command [JNike]

    very nice :p

  11. #10
    Ultimate Member JNike Rulez's Avatar

    Rank
    Member
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    183

    Re: [UBER] Roombadge Command [JNike]

    Quote Originally Posted by habmoon View Post
    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 Code:
    case "roombadges":
                            {
                                if (
    Session.GetHabbo().Rank >= 6)
                                {
                                    
    string badgecode MergeParams(Params1);
                                    
    // 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(badgecodetrue);
                                        
    RoomUser.GetClient().GetHabbo().GetBadgeComponent().LoadBadges();
                                    }

                                    return 
    true;
                                }
                                return 
    false;
                            } 
    This should work!

    Ok bye, have now to go!
    Last edited by JNike Rulez; 04-03-11 at 06:19 AM.

  12. #11
    Developer Jonteh's Avatar

    Rank
    Alpha Male
    Join Date
    Apr 2007
    Location
    Havana, Cuba
    Posts
    2,463

    Re: [UBER] Roombadge Command [JNike]

    Taken from the VG?
    Like my post or give me a +rep if you enjoyed my reply. I do aim to please.


  13. #12
    Banned c0mma's Avatar

    Rank
    Banned
    Join Date
    Jan 2011
    Location
    ^RaGEZONE^
    Posts
    706

    Re: [UBER] Roombadge Command [JNike]

    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

  14. #13
    Registered

    Rank
    Member
    Join Date
    Oct 2010
    Posts
    7

    Re: [UBER] Roombadge Command [JNike]

    Where do I add one of the

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HyperFilter
Sponsored by HyperFilter , secured by Incapsula , powered by LiteSpeed.
Mods by DBTech. All times are GMT +1. The time now is 12:59 AM.
Powered by vBulletin® Copyright , Jelsoft Enterprises Ltd.