RP Commands

Status
Not open for further replies.

SuperBoogie

New Member
Oct 13, 2010
56
0
You didn't code thease you riped them out of some server in named it your work Lol :D
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][/QUOTE]
 

Kieren

The OGz
Aug 4, 2010
2,957
752
You should get a warning for that taking credit for someone else's work :/

The commands are great but is there going to be any new 1's coming like maybe commands what would help the hotel like....

:tilesrefresh
:restart

something that would help minimise the hotels lag and bugs, instead of the useless commands such as :masswave
 

Caleb

New Member
Oct 24, 2010
13
1
First of all, you didn't code these, so quit stealing credits for other's personal work. You don't gain anything by tricking the community of false work. Honestly, proves that your only considered a noob. These commands were from my emulator, so therefore I coded them myselfs, including sledmore for help with the :rocket command.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Hm, Ain't that rocket from Phoenix? And I'm sure Caleb asked me for the rocket command? All you've done, if hes right, is taken some code away?
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
either add it to a Open source C# old school or learn VB6 and convert it (must be Open source aswell)
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
VB6 is Visual Basic thats what old school commands are coded in
 

Mango2735

The Sexy One.
Oct 13, 2010
288
3
here is the nypd bot function Credz to Sleddy

Introduction:

Hey guys, Well today I'm releasing my bot codes for RASTALULZ RP V26. As Caleb as released his, I thought that I may as well do mine.

[NOTE: I KNOW THESES ARE MESSY, BUT THESES WERE FOR PERSONAL USE, AND IF I SEE ,MANY WANTING THEM, THEN I'M HAPPY TOO CONTINUE TO DO WORK ON THEM!]

1) Open up virtualRooms.cs
2) Search for;
"private string _publicroomItems;" - With no quotes
3) Add this;
" public Thread follow;" - with no quotes.
4) Search for;
"internal void sendShout(virtualRoomUser sourceUser, string Message)"
5) ABOVE IT add this snippet;
Code:
public void follower()
{
int iCount = 0;
try
{
while (true)
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
foreach (virtualBot roomBot in _Bots.Values)
foreach (virtualRoomUser sourceUser in _Users.Values)
{
int punch_randomer;
int slap_randomer;
int dead;
virtualUser Target = userManager.getUser(sourceUser.userID);
punch_randomer = dbClient.getInt("SELECT punch FROM users WHERE id = '" + Target.userID + "'");
slap_randomer = dbClient.getInt("SELECT slap FROM users WHERE id = '" + Target.userID + "'");
dead = dbClient.getInt("SELECT dead FROM users WHERE id = '" + Target.userID + "'");
int cop = dbClient.getInt("SELECT cop FROM roombots WHERE figure = '" + roomBot.Figure + "'");

if (dead == 1)
{
sendShout(roomBot, "Cunt, Your dead, Il get you later, i guess!");
dbClient.runQuery("UPDATE users SET punch = '0' WHERE name = '" + Target._Username + "'");
follow = null;
follow.Abort();
}
else
{
if (punch_randomer == 1)
{
if (cop == 1)
{
iCount++;
roomBot.Z1 = Rotation.Calculate(roomBot.X, roomBot.Y, Target.roomUser.X, Target.roomUser.Y);
roomBot.Z2 = roomBot.Z1;
Coord Next = new Coord();
int[] Borders = getMapBorders();
Next = new Coord(Target.roomUser.X - 1, Target.roomUser.Y);
roomBot.goalX = Next.X;
roomBot.goalY = Next.Y;
Thread.Sleep(200);

if ((roomBot.Y == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y + 1 == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y - 1 == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y == Target.roomUser.Y && roomBot.X + 1 == Target.roomUser.X) || (roomBot.Y == Target.roomUser.Y && roomBot.X - 1 == Target.roomUser.X))
{
Target.roomUser.walkLock = true;
Target.roomUser.goalX = -1;
Target.Run();
sendSaying(roomBot, "*fires a stungun at " + Target._Username + "*");
if ((roomBot.Y == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y + 1 == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y - 1 == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y == Target.roomUser.Y && roomBot.X + 1 == Target.roomUser.X) || (roomBot.Y == Target.roomUser.Y && roomBot.X - 1 == Target.roomUser.X))
{
iCount++;
roomBot.Z1 = Rotation.Calculate(roomBot.X, roomBot.Y, Target.roomUser.X, Target.roomUser.Y);
roomBot.Z2 = roomBot.Z1;
Next = new Coord(Target.roomUser.X - 1, Target.roomUser.Y);
roomBot.goalX = Next.X;
roomBot.goalY = Next.Y;
Thread.Sleep(2000);
Target.roomUser.walkLock = true;
sendSaying(roomBot, "*removes cuffs from belt and wraps around " + Target._Username + " wrists*");
Thread.Sleep(2000);
sendSaying(roomBot, "*arrests " + Target._Username + " for 15 minutes, and fines them 75 credits, for assult!*");
dbClient.runQuery("UPDATE users SET credits = credits - '75' WHERE name = '" + Target._Username + "'");
Target.refreshValueables(true, true);
dbClient.runQuery("UPDATE users SET arrested = '1', arrests = arrests + '1', time_jail = '15', working = '0' WHERE name = '" + Target._Username + "'");
Target._Figure = Target._Uni + "ch-220-94.lg-280-94.sh-290-94";
Target._Mission = "Convict";
Target.refreshAppearance(false, true, true);
dbClient.runQuery("UPDATE users SET punch = '0' WHERE name = '" + Target._Username + "'");
dbClient.runQuery("UPDATE users SET avoid = '1' WHERE name = '" + Target._Username + "'");
Target.sendData("D^" + "H" + Encoding.encodeVL64(7));
ThreadStart jailStarter = new ThreadStart(Target.jailTime);
Target.jailLooper = new Thread(jailStarter);
Target.jailLooper.Priority = ThreadPriority.Lowest;
Target.jailLooper.Start();
follow = null;
follow.Abort();
}
else if (slap_randomer == 1)
{
if (cop == 1)
{
iCount++;
roomBot.Z1 = Rotation.Calculate(roomBot.X, roomBot.Y, Target.roomUser.X, Target.roomUser.Y);
roomBot.Z2 = roomBot.Z1;
Next = new Coord(Target.roomUser.X - 1, Target.roomUser.Y);
roomBot.goalX = Next.X;
roomBot.goalY = Next.Y;
Thread.Sleep(200);

if ((roomBot.Y == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y + 1 == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y - 1 == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y == Target.roomUser.Y && roomBot.X + 1 == Target.roomUser.X) || (roomBot.Y == Target.roomUser.Y && roomBot.X - 1 == Target.roomUser.X))
{
Target.roomUser.walkLock = true;
Target.roomUser.goalX = -1;
Target.Run();
sendSaying(roomBot, "*fires a stungun at " + Target._Username + "*");
if ((roomBot.Y == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y + 1 == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y - 1 == Target.roomUser.Y && roomBot.X == Target.roomUser.X) || (roomBot.Y == Target.roomUser.Y && roomBot.X + 1 == Target.roomUser.X) || (roomBot.Y == Target.roomUser.Y && roomBot.X - 1 == Target.roomUser.X))
{
iCount++;
roomBot.Z1 = Rotation.Calculate(roomBot.X, roomBot.Y, Target.roomUser.X, Target.roomUser.Y);
roomBot.Z2 = roomBot.Z1;
Next = new Coord(Target.roomUser.X - 1, Target.roomUser.Y);
roomBot.goalX = Next.X;
roomBot.goalY = Next.Y;
Thread.Sleep(2000);
Target.roomUser.walkLock = true;
sendSaying(roomBot, "*removes cuffs from belt and wraps around " + Target._Username + " wrists*");
Thread.Sleep(2000);
sendSaying(roomBot, "*arrests " + Target._Username + " for 5 minutes, and fines them 25 credits, for assult!*");
dbClient.runQuery("UPDATE users SET credits = credits - '25' WHERE name = '" + Target._Username + "'");
Target.refreshValueables(true, true);
dbClient.runQuery("UPDATE users SET arrested = '1', arrests = arrests + '1', time_jail = '5', working = '0' WHERE name = '" + Target._Username + "'");
Target._Figure = Target._Uni + "ch-220-94.lg-280-94.sh-290-94";
Target._Mission = "Convict";
Target.refreshAppearance(false, true, true);
dbClient.runQuery("UPDATE users SET slap = '0' WHERE name = '" + Target._Username + "'");
dbClient.runQuery("UPDATE users SET avoid = '1' WHERE name = '" + Target._Username + "'");
Target.sendData("D^" + "H" + Encoding.encodeVL64(7));
ThreadStart jailStarter = new ThreadStart(Target.jailTime);
Target.jailLooper = new Thread(jailStarter);
Target.jailLooper.Priority = ThreadPriority.Lowest;
Target.jailLooper.Start();
follow = null;
follow.Abort();
}
}
}
}
Thread.Sleep(300);
}
}
}
}
}
}
}
catch
{
Thread.CurrentThread.Abort();
follow = null;
}
}
6) Search for;
" internal void sendShout(virtualRoomUser sourceUser, string Message)" - With no quotes.
7) Open up the void, if not already opened.
8) I CANNOT REMEMBER WHAT WAS IN THAT VOID, AS I DID THIS MONTHS BACK, BUT ADD THIS IN THE VOID IF YOU CAN;

Code:
virtualUser Target = userManager.getUser(sourceUser.userID);
{
int cop = dbClient.getInt("SELECT cop FROM roombots WHERE figure = '" + roomBot.Figure + "'");
int randomer = dbClient.getInt("SELECT punch FROM users WHERE id = '" + Target.userID + "'");
{
if (follow != null)
{
}
else
{
if (randomer == 1)
{
if (cop == 1)
{
sendShout(roomBot, "FREEZE LAPD!");
follow = new Thread(follower);
follow.Priority = ThreadPriority.Lowest;
follow.Start();
}
}
Database collums:
This may sound stupid but I never worked out a different method..

Goto users table and add a collum for;
punch
int 1
defined 0

Goto roombots table, and add a collum for;
cop
int 1
defined 0

And on your punch command add this query;

" dbClient.runQuery("UPDATE users SET punch = '1' WHERE name = '" + _Username + "'");"
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
May wanna give me the credits for the police bot.. I don't think I've released it here though o.o.
 
Status
Not open for further replies.

Users who are viewing this thread

Top