[Uber][CommandS] roomcredits, dancer

Results 1 to 12 of 12
  1. #1
    Proficient Member JNike Rulez is offline
    MemberRank
    Sep 2010 Join Date
    GermanyLocation
    183Posts

    [Uber][CommandS] roomcredits, dancer

    Hey, i was a bit bored, again, and coded to fun 2 commands, well, i didn't test them at all, so please post a answere, if it's not working :).

    Here are the codes:
    (YOU HAVE TO PUT THEM INTO ChatCommandHandler.cs!)
    Code:
                        case "roomtaler":
                            {
                                try
                                {
    
                                    int rang = 6;
                                    if (Session.GetHabbo().Rank >= rang)
                                    {
                                        foreach (RoomUser rusr in TargetRoom.UserList)
                                        {
                                            int taleranzahl = Convert.ToInt32(Params[1]);
                                            rusr.GetClient().GetHabbo().Credits += taleranzahl;
                                        }
                                    }
                                    else if(Session.GetHabbo().Rank < rang)
                                    {
                                        Session.SendNotif("Dein Rang ist zu tief! Du solltest mindestens den Rang " + rang + " haben!");
                                    }
                                }
                                catch
                                {
                                }
                                return false;
                            }
    
                        case "dancer":
                            {
                                try
                                {
                                    int rang = 6;
                                    if (Session.GetHabbo().Rank >= rang)
                                    {
                                        foreach (RoomUser room_user in TargetRoom.UserList)
                                        {
                                            if (room_user.IsDancing)
                                            {
                                                room_user.GetClient().GetHabbo().GetBadgeComponent().GiveBadge(Params[1], true);
                                            }
                                        }
                                    }
                                    else if (Session.GetHabbo().Rank <= rang)
                                    {
                                    }
                                    return false;
                                }
                                catch(Exception e)
                                {
                                    Console.WriteLine(e);
                                }
    
                                return false;
                            }
                        #endregion
    At least i coded something, so be happy that i try to help the community and uber :/.
    If it's working, please post it, if it's not working, please post it too :p.

    What are the commands doing?
    - roomcredits = your typing :roomtaler (change the case"roomtaler": to something else like case"roomcredits":) 500 it'll give 500 credits to everyone in the room, so type :roomtaler 500 and everyone will get 500 creds :p.

    - dancer? Yeah it's maybe something cool, if someone is dancing in a room, you can easially give to EVERY dancer in the room a badge, cool or? Just type :dancer BADGECODEEHRE, example :dancer ADM everyone who's dancing will get a ADMIN Badge (ADM).

    And err, sorry for my english, im 1 minute befor i go to sleep, im tired like a bitch ~.~
    I would'nt use my self
    Code:
    room_user.GetClient().GetHabbo().GetBadgeComponent().GiveBadge(Params[1], true);
    because it's killing the economy of your retro, so use just this code, btw change the ### to your badge!
    Because if you're just giving 1 badge at all dancers, it'll hold up the economy :D, else if you give to everyone a custom badge like ADM, XXX, LLL, HC1, etc etc.. the badges won't be usefull anymore.
    Code:
    room_user.GetClient().GetHabbo().GetBadgeComponent().GiveBadge("###", true);
    Anyways have fun with it!
    Last edited by JNike Rulez; 13-04-11 at 10:15 PM. Reason: cuz im drinking whater now :O


  2. #2
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    Re: [Uber][CommandS] roomcredits, dancer

    Isn't there a thread for uber releases/commands?

  3. #3
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [Uber][CommandS] roomcredits, dancer

    Very Good +1 for you.

    ....

  4. #4
    Proficient Member JNike Rulez is offline
    MemberRank
    Sep 2010 Join Date
    GermanyLocation
    183Posts

    Re: [Uber][CommandS] roomcredits, dancer

    Quote Originally Posted by reptilon View Post
    Isn't there a thread for uber releases/commands?
    ou lol, if there is one, im sorry. wasn't a few weeks on ragezone (2 - 3 ?) :]

  5. #5
    Account Upgraded | Title Enabled! SlimHotel is offline
    MemberRank
    Mar 2011 Join Date
    c:\xampp\htdocsLocation
    390Posts

    Re: [Uber][CommandS] roomcredits, dancer

    wow nice 10/10

  6. #6
    Account Upgraded | Title Enabled! Miggs is offline
    MemberRank
    Oct 2010 Join Date
    711Posts

    Re: [Uber][CommandS] roomcredits, dancer

    Nice one :]

  7. #7
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    Re: [Uber][CommandS] roomcredits, dancer

    case"roomaler":
    loll ;/ typo? should that be case"roomcredits": ? :p

  8. #8
    Proficient Member JNike Rulez is offline
    MemberRank
    Sep 2010 Join Date
    GermanyLocation
    183Posts

    Re: [Uber][CommandS] roomcredits, dancer

    Quote Originally Posted by reptilon View Post
    case"roomaler":
    loll ;/ typo? should that be case"roomcredits": ? :p
    Well, it's my fault. roomalert (forgot t) is the german word for roomcredits. Anyways change it to all you want :D!

  9. #9
    C# | C++ Emerica is offline
    MemberRank
    Oct 2010 Join Date
    GermanyLocation
    437Posts

    Re: [Uber][CommandS] roomcredits, dancer

    Nice, the room credits was already released, but I think the codes were to buggy.
    So thanks for this one.

    But I like the dancer more than credits haha ;D

    10/10 for this

  10. #10
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: [Uber][CommandS] roomcredits, dancer

    lolwut? You call this coding?

  11. #11
    Member Elienay is offline
    MemberRank
    Dec 2008 Join Date
    78Posts

    Re: [Uber][CommandS] roomcredits, dancer

    wow, it's really cool. i like it.

  12. #12
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    Re: [Uber][CommandS] roomcredits, dancer

    What does actually :dancer doo?

    Does it make you dance?
    or if you dance you wil lget a badge? :p

    Soz, i am a R26 coder so please, correct me if im wrong :p



Advertisement