So, I read Xavi's tutorial on how to create commands and i took up the opportunity to try one out.
here's the code:
there was an advanced code, i mixed it around. it came out like this:Code:#region :drink case "alcohol": { Room.sendSaying(roomUser, "*Pours some vodka into a shotglass and drinks*"); Room.sendSaying(roomUser, "*gets tipsy*"); User.sendData("BK" + "Dont fall over!"); resfreshAppearence(true,true,true); break; } #endregion
If i did anything wrong, or you want to edit something post below.Code:#region :drink case "alcohol": { using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("UPDATE users SET health = health - '35' WHERE name = '" + _Username + "'"); dbClient.runQuery("UPDATE users SET credits = credits - '250' WHERE name = '" + _Username + "'"); Room.sendSaying(roomUser, "*Pours some vodka into a shotglass and drinks*"); _Mission = "[Intoxicated] tipsy!"; Room.sendSaying(roomUser, "*Gets tipsy*"); this.statusManager.containsStatus("lay"); User.sendData("BK" + "Dont fall over!"); refreshAppearence(true,true,true); } break; } #endregion
hailey
credits:
xavi - tutorial
me - command
Also, i was wondering if this command can be used on a v36 hotel, or only an RP hotel. any clarification on this would be awesome







