RP Commands

Status
Not open for further replies.

SuperBoogie

New Member
Oct 13, 2010
56
0
Code:
#region :revive
                    case "revive":
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
                                return false;
                            else
                            {
                                string Dead;
                                Dead = DB.runRead("SELECT dead FROM users WHERE name = '" + _Username + "'");
                                if (Dead == "1")
                                {
                                    DB.runQuery("UPDATE users SET dead = '0', time_dead = '0' WHERE name = '" + _Username + "'");
                                    Room.sendSaying(roomUser, "*regains conciousness*");
                                    roomUser.walkLock = false; // Freezes the user
                                    TestRefresh(_Username);
                                    deadLooper.Abort();
                                    deadLooper = null;

                                }
                            }
                            break;
                        }
                    #endregion




Code:
#region :rocket
                    case "rocket":                            
                        {
                             
                            
                            int X = roomUser.X;
                            int Y = roomUser.Y - 1;
                            int[] mapLimits = Room.getMapBorders();
                            int rocket = int.Parse(DB.runRead("SELECT rocket FROM rooms WHERE id = '" + _roomID + "'"));
                            if (X <= mapLimits[0] && Y <= mapLimits[1] && X >= 0 && Y >= 0) // Abort the teleport if they are trying to teleport outside the array
                            {
                                if (_Rank > 2)
                                
                                if (rocket == 0)
                                {
                                    sendData("BK" + "Your rocket is not usable in this area.");
                                }
                                else

                                if (roomUser.walkLock == true)
                                    sendData("BK" + "Your rocket has been consficated by the police, you can no longer use it until you leave jail." + Convert.ToChar(2));
                                else
                                {
                                   

                                        Room.sqUNIT[X, Y] = true; // Block the new tile
                                    Room.sqUNIT[roomUser.X, roomUser.Y] = false; // Unblock the old tile
                                    roomUser.X = X;
                                    roomUser.Y = Y;
                                    roomUser.H = roomUser.H + 2;
                                    roomUser.goalX = +1;
                                    Room.Refresh(roomUser);
                                    refreshAppearance(false, false, true);
                                    roomUser.goalX = roomUser.X;
                                    roomUser.goalY = roomUser.Y;
                                    roomUser.H = roomUser.H + 1;

                                    Room.sendSaying(roomUser, "*activates their jetpack, taking off into the sky*");

                                }
                            }
                            
                        }
                        break; 

                    #endregion


I Will Be Releaseing More
 

wallis

Member
Oct 7, 2010
115
0
Be nice if you could code some gang commands, as on most emulators, they arn't on there, or just arnt finished. Thanks. :D
 

Kieren

The OGz
Aug 4, 2010
2,957
752
These are some good commands, thanks for the rocket command, lets see some more coming from you. can't wait.
 

SuperBoogie

New Member
Oct 13, 2010
56
0
Uhhh i will be sure to post the gang commands because i have it riped it from aaron server :ddd
be nice if you could command some gang commands, as on most emulators, they arn't on there, or just arnt finished. Thanks. :d
 

Jo$h

Posting Freak
Jul 7, 2010
1,030
79
put your Commands in Code Brackets like
Code:
 This
so they are easier to understand. The command is
Code:
[code
 

Mango2735

The Sexy One.
Oct 13, 2010
288
3
Here are some of my commands :p
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]
 

Kieren

The OGz
Aug 4, 2010
2,957
752
I am sure these commands are for Holograph emulator the same emulator Rasta released for his Role Play server.
 
Status
Not open for further replies.

Users who are viewing this thread

Top