[UBER] Roombadge Command [JNike]

Results 1 to 13 of 13
  1. #1
    Account Inactive JNike Rulez is offline
    InactiveRank
    Sep 2010 Join Date
    GermanyLocation
    183Posts

    [UBER] Roombadge Command [JNike]


    RaGEZONE Recommends

    RaGEZONE Recommends

    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. #2
    swagggggg Livar is offline
    Alpha MaleRank
    Oct 2008 Join Date
    United KingdomLocation
    2,343Posts

    Re: [UBER] Roombadge Command [JNike]

    Nice release.

  3. #3
    Red subscription LucasReis is offline
    SubscriberRank
    Jun 2009 Join Date
    Sorocaba, BraziLocation
    208Posts

    Re: [UBER] Roombadge Command [JNike]

    Nice, and thanks !

  4. #4
    Account Inactive JNike Rulez is offline
    InactiveRank
    Sep 2010 Join Date
    GermanyLocation
    183Posts

    Re: [UBER] Roombadge Command [JNike]

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

  5. #5
    You can call me Monty :D GuikBretas is offline
    True MemberRank
    Apr 2009 Join Date
    NorwayLocation
    332Posts

    Re: [UBER] Roombadge Command [JNike]

    Create a code :globalbadge and :globalcredits :D

  6. #6
    sexiess is a sin. Subway is offline
    Alpha MaleRank
    Jun 2010 Join Date
    2,497Posts

    Re: [UBER] Roombadge Command [JNike]

    Good codes man!

  7. #7
    Infraction Banned HabMoon is offline
    GammaRank
    Jun 2007 Join Date
    HM OfficesLocation
    3,080Posts

    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.

  8. #8
    sexiess is a sin. Subway is offline
    Alpha MaleRank
    Jun 2010 Join Date
    2,497Posts

    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.

  9. #9
    Account Inactive Kouille is offline
    InactiveRank
    Jun 2010 Join Date
    37Posts

    Re: [UBER] Roombadge Command [JNike]

    very nice :p

  10. #10
    Account Inactive JNike Rulez is offline
    InactiveRank
    Sep 2010 Join Date
    GermanyLocation
    183Posts

    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.

  11. #11
    Respect("John Lennon"); Jonteh is offline
    GammaRank
    Apr 2007 Join Date
    New ZealandLocation
    3,174Posts

    Re: [UBER] Roombadge Command [JNike]

    Taken from the VG?
    HabboArchive

    Your retro on my high end linux hardware, DDoS protection, no Windows or remote desktop required.

    All configurations come with 24 hour, no BS support. Contact me.

  12. #12
    Banned c0mma is offline
    BannedRank
    Jan 2011 Join Date
    ^RaGEZONE^Location
    706Posts

    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

  13. #13
    Account Inactive Benutzername is offline
    InactiveRank
    Oct 2010 Join Date
    7Posts

    Re: [UBER] Roombadge Command [JNike]

    Where do I add one of the




Advertisement