Al-Santoro
New Member
- Jan 20, 2011
- 29
- 5
Information:
Well, just to inform you, I'm new to C# and I've decided to try out the commands and such, and I've been learning a bit.. And these are the first two commands I made. ;] Hopefully everyone would like it..
Drinking Command!
Crack Command
C# Code Release Command: v0.1 -- Small Release; Coded from scratch! ;D
More Information:
And I would recommend adding a cooldown to this, otherwise they'll spam the whole room and such.. And tbh, I never worked on making a cooldown for this, since I'm not that advanced to erm, you know... add it in and such.. >_>
Credits:
Al-Santoro - For making both commands.
Live-Jam - For fixing my Drinking command. (Made a slight error).
[mod] Thread moved to Habbo Releases - Ki. [/mod]
Well, just to inform you, I'm new to C# and I've decided to try out the commands and such, and I've been learning a bit.. And these are the first two commands I made. ;] Hopefully everyone would like it..
Drinking Command!
PHP:
#region :drinking
case "drinking":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET health = health - '20' WHERE name = '" + _Username + "'");
dbClient.runQuery("UPDATE users SET credits = credits - '0' WHERE name = '" + _Username + "'");
Room.sendSaying(roomUser, "*Opens a can of beer, and starts talking randomly, being drunk*");
Room.sendSaying(roomUser, "*I... *Hic* I'm in the ultimate flying form!!*");
Room.sendSaying(roomUser, "Heyyyyy!! *Hic* I... like..... beerrrrrrrrr!!");
Room.sendSaying(roomUser, "*Stops drinking their beer, and still feels cautious*");
_Mission = "[Drunk] Be Cautious of this User!";
refreshAppearance(false, true, true);
sendData("BK" + "You are now drunk!");
}
}
break;
#endregion
Crack Command
PHP:
#region :crack
case "crack":
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET health = health = - '25' WHERE name = '" + _Username + "'");
dbClient.runQuery("UPDATE users SET credits = credits = - '0' WHERE name = '" + _Username + "'");
Room.sendSaying(roomUser, "*Pulls out their cigar and puts their crack in it*");
Room.sendSaying(roomUser, "*Starts lighting up their cigar and starts smoking*");
Room.sendSaying(roomUser, "*Starts getting high from smoking and loses 25 HP!*");
sendData("BK" + "Aye Mr. Al Capone, you just lost 25 HP and you're high!");
_Mission = "[High]This user is high, but be careful, it's worse than you know!";
refreshAppearance(false, true, true);
}
}
break;
#endregion
C# Code Release Command: v0.1 -- Small Release; Coded from scratch! ;D
More Information:
And I would recommend adding a cooldown to this, otherwise they'll spam the whole room and such.. And tbh, I never worked on making a cooldown for this, since I'm not that advanced to erm, you know... add it in and such.. >_>
Credits:
Al-Santoro - For making both commands.
Live-Jam - For fixing my Drinking command. (Made a slight error).
[mod] Thread moved to Habbo Releases - Ki. [/mod]