JuiceChin
Member
- Mar 19, 2011
- 36
- 1
#region :drink
#region :drunk // For Organization.
case "drunk": // You need this part in order to name the code, of course.
case "drinking": // You can give it more names if you want.
{
using(DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
dbClient.runQuery("UPDATE user SET health = health = -'25' WHERE name = '" + _Username + "'");
#region :drunk
case "drunk":
case "drinking":
{
using(DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE user SET health = health = '25' WHERE name =
'" + _Username + "'");
dbClient.runQuery("UPDATE user SET credits = credits = '50' WHERE name = '" + _Username + "'")
Room.sendShouting(roomUser, "GETTING WASTED");
_Mission = "DRUNK.";
refreshAppearance( false, true, true);
}
}
break;
#endregion
NOW ALL TOGETHER
#region :drunk
case "drunk":
case "drinking":
{
using(DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE user SET health = health = - '25' WHERE name =
'" + _Username + "'");
dbClient.runQuery("UPDATE user SET credits = credits = - '50' WHERE name = '" + _Username + "'");
Room.sendSaying(roomUser, "*Opens up a can of beer and gets drunk*");
sendData("BK" + "You're now drunk!");
_Mission = "[Drunk] DRUNK.";
refreshAppearance( false, true, true);
}
}
break;
#endregion
#palmface#
#region :drunk // For Organization.
case "drunk": // You need this part in order to name the code, of course.
case "drinking": // You can give it more names if you want.
{
using(DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
dbClient.runQuery("UPDATE user SET health = health = -'25' WHERE name = '" + _Username + "'");
#region :drunk
case "drunk":
case "drinking":
{
using(DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE user SET health = health = '25' WHERE name =
'" + _Username + "'");
dbClient.runQuery("UPDATE user SET credits = credits = '50' WHERE name = '" + _Username + "'")
Room.sendShouting(roomUser, "GETTING WASTED");
_Mission = "DRUNK.";
refreshAppearance( false, true, true);
}
}
break;
#endregion
NOW ALL TOGETHER
#region :drunk
case "drunk":
case "drinking":
{
using(DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE user SET health = health = - '25' WHERE name =
'" + _Username + "'");
dbClient.runQuery("UPDATE user SET credits = credits = - '50' WHERE name = '" + _Username + "'");
Room.sendSaying(roomUser, "*Opens up a can of beer and gets drunk*");
sendData("BK" + "You're now drunk!");
_Mission = "[Drunk] DRUNK.";
refreshAppearance( false, true, true);
}
}
break;
#endregion
#palmface#