SuperBoogie
New Member
- Oct 13, 2010
- 56
- 0
- Thread starter
- #21
You didn't code thease you riped them out of some server in named it your work Lol
Here are some of my commands
Code:#region :creditcheck <user> case "creditcheck": // Who has the most credits { virtualUser User = userManager.getUser(args[1]); if (User._Credits >= _Credits) { User.sendData("BK" + "You have been credit checked, sadly" + _Username + " has more than you" + Convert.ToChar(2)); sendData("BK" + "You have more credits than " + User._Username + "!" + Convert.ToChar(2)); } else User.sendData("BK" + "You have been credit checked, sadly" + _Username + " has less than you" + Convert.ToChar(2)); sendData("BK" + "You have less credits than " + User._Username + "!" + Convert.ToChar(2)); break; } #endregion #region :refreshbots case "refreshbots": { if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) return false; else { Room.loadBots(); } break; } #endregion #region :setbotcords case "setbotcords": { if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) return false; else { using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { int x = int.Parse(args[2]); int y = int.Parse(args[3]); dbClient.runQuery("UPDATE roombots SET x = '" + x + "' WHERE id = '" + args[1] + "'"); dbClient.runQuery("UPDATE roombots SET y = '" + y + "' WHERE id = '" + args[1] + "'"); dbClient.runQuery("UPDATE roombots_coords SET x = '" + x + "' WHERE id = '" + args[1] + "'"); dbClient.runQuery("UPDATE roombots_coords SET y = '" + y + "' WHERE id = '" + args[1] + "'"); this.Room.sendShout(this.roomUser, "*Edits a bots cords*"); Room.loadBots(); } break; } } #endregion #region :propose <user> { virtualUser User = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("UPDATE users SET proposal + '1' WHERE name = '" + User._Username + "'"); } Room.sendSaying(roomUser, "*" + _Username + " Proposes to " + User._Username + "*"); sendData("BK" + "Once The Other User Proposes Say :marry (Username)" + Convert.ToChar(2)); sendData("BK" + "You Have Been Married!" + Convert.ToChar(2)); break; } #endregion #region :proposalaccept case "proposalaccept": { virtualUser User = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("UPDATE users SET proposal_accept + '1' WHERE name = '" + User._Username + "'"); } sendData("BK" + "You've succesfully accepted the Proposal, get ready for marriage." + Convert.ToChar(2)); Room.sendSaying(roomUser, "*Accepts " + User._Username + "proposal*"); break; } #endregion #region :marry <user> case "marry": // Selects The User And Enters It Into The Database { virtualUser User = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("SELECT proposal_accept FROM users WHERE users = '" + User._Username + "'"); dbClient.runQuery("INSERT INTO marriage(id,man,woman) VALUES ('" + userID + "','" + _Username + "','" + User._Username + "')"); } Room.sendSaying(roomUser, "*" + _Username + " Puts Ring On " + User._Username + "*"); sendData("BK" + "Once The Other User Proposes Say :marry (Username)" + Convert.ToChar(2)); sendData("BK" + "You Have Been Married!" + Convert.ToChar(2)); Room.sendSaying(roomUser, "*" + _Username + " Is Joined In Holy Matromony To " + User._Username + "*"); break; } #endregion #region :divorce case "divorce": { virtualUser User = userManager.getUser(args[1]); Room.sendSaying(roomUser, "*" + _Username + " Divorces " + User._Username + "*"); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("DELETE FROM marriage WHERE id = '" + userID + "' LIMIT 1"); } sendData("BK" + "You Have Divorced!" + Convert.ToChar(2)); break; } #endregion #region :happyhour case "happyhour": // Turn on/off Happy Hour { Thread Refresher; ThreadStart tStarter = null; if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) return false; else Config.enableHappyHour = false; switch (args[1]) { case "on": // Turn on HappyHour Config.enableHappyHour = true; break; } tStarter = new ThreadStart(refresh_cat); Refresher = new Thread(tStarter); Refresher.Priority = ThreadPriority.BelowNormal; Refresher.Start(); userManager.sendData("Fy" + Convert.ToChar(1) + "A~" + "HHHM" + Convert.ToChar(2) + catalogueManager.getPageIndex(Convert.ToInt16(_Rank))); } break; #endregion #region :globalfurni case "globalfurni": { if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) { return false; } string amount = args[2]; using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { foreach (virtualUser User in userManager._Users.Values) { for (int i = 0; i <= Int32.Parse(amount); i++) { dbClient.runQuery("INSERT INTO furniture(tid,ownerid,roomid) VALUES (" + args[1] + "," + User.userID + "," + "0)"); } refreshHand("update"); } } break; } #endregion #region :rape <user> case "rape": // Rape command { virtualUser User = userManager.getUser(args[1]); if (User._Rank <= _Rank) { User.sendData("BK" + "Dear " + User._Username + ", at " + DateTime.Now.ToShortTimeString() + " you have been raped by " + _Username + "!"); sendData("BK" + "You have successfully raped " + User._Username + "!" + Convert.ToChar(2)); } else sendData("BK" + "The virtual user '" + args[1] + "' was not online, or you do not have the right to rape him/her.\rYou can't rape staff!" + Convert.ToChar(2)); break; } #endregion #region :foreverwave case "foreverwave": { string user = args[1]; // @ZH virtualUser User = userManager.getUser(args[1]); User.statusManager.addStatus("wave", ""); User.statusManager.Refresh(); break; } #endregion #region :dance case "dance": { string user = args[1]; // @ZH virtualUser User = userManager.getUser(args[1]); User.statusManager.addStatus("dance", ""); User.statusManager.Refresh(); break; } #endregion #region :masswave case "masswave": { foreach (virtualRoomUser User in Room.Users) { User.statusManager.removeStatus("dance"); User.statusManager.handleStatus("wave", "", Config.Statuses_Wave_waveDuration); } break; } #endregion #region :massdance case "massdance": { foreach (virtualRoomUser User in Room.Users) { User.statusManager.addStatus("dance", ""); User.statusManager.Refresh(); } break; } #endregion #region :masstalk case "masstalk": { if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) return false; else { foreach (virtualRoomUser User in Room.Users) { User.Room.sendShout(User.User.roomUser, Text.Substring(8)); } } break; } #endregion #region :wave case "wave": { string user = args[1]; // @ZH virtualUser User = userManager.getUser(args[1]); User.statusManager.removeStatus("dance"); User.statusManager.handleStatus("wave", "", Config.Statuses_Wave_waveDuration); break; } #endregion[code][/QUOTE]