[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! :rolleyes:
Re: [Uber][CommandS] roomcredits, dancer
Isn't there a thread for uber releases/commands?
Re: [Uber][CommandS] roomcredits, dancer
Very Good +1 for you.
....
Re: [Uber][CommandS] roomcredits, dancer
Quote:
Originally Posted by
reptilon
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 ?) :]
Re: [Uber][CommandS] roomcredits, dancer
Re: [Uber][CommandS] roomcredits, dancer
Re: [Uber][CommandS] roomcredits, dancer
case"roomaler":
loll ;/ typo? should that be case"roomcredits": ? :p
Re: [Uber][CommandS] roomcredits, dancer
Quote:
Originally Posted by
reptilon
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!
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
Re: [Uber][CommandS] roomcredits, dancer
lolwut? You call this coding?
Re: [Uber][CommandS] roomcredits, dancer
wow, it's really cool. i like it.
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