Drink Command

Status
Not open for further replies.

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#
 

Ari

Member
Sep 29, 2010
320
48
there is no point in this command i hate people who release commands like this just change ur motto health and credits
 

IPodl

New Member
Mar 26, 2011
10
1
Shitty release considering you just edited a fully released command GOOD JOB!......no
 

Ari

Member
Sep 29, 2010
320
48
also it would be better to make the user carry a drink when they do this command duh..
 
Status
Not open for further replies.

Users who are viewing this thread

Top