• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Service] Custom TDbP Commands

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jul 17, 2010
Messages
90
Reaction score
11
Command Line (E.g. :kick <user>) - :shoot <user>
Purpose - Shoot a user down and cut damage between 10 and 20 (from a row in users)
Rank Required (Optional) - 1 (RP Command)
Details - Well you shoot for example me :)shoot DjInTrouble) then the emu chooses a random number between 10 and 20 and cuts it from a new row in table users in db.

So basically the :punch command but renamed and different damage?

I'll post back.

---------- Post added at 11:46 PM ---------- Previous post was at 11:44 PM ----------

My rocket command, it shot me in the air, but I couldnt move without me falling to the ground.
----------------------------------------------------------------------------
:jump
makes user go up and down, like jumping
3+

sorry bout that, but i haven't seen it work any other way in an emu.

:jump i cannot do sorry.

---------- Post added at 11:47 PM ---------- Previous post was at 11:46 PM ----------

lol you should make a command : sex where it will bend down and act like its having sex and cloths will disappear.

the bending down thing will be impossible unless i did new figures and dcrs.

i can do :sex

with a speech line and figure change.

---------- Post added at 11:47 PM ---------- Previous post was at 11:47 PM ----------

code this.

Side walk like moonwalk walks side ways example implant it in Moonwalk
:walk Moonwalk On
:walk Moonwalk off
:walk Sideway on
:walk Sideway off
// Zak is doing this for fun ^_^

moonwalk has already been done.

---------- Post added at 11:49 PM ---------- Previous post was at 11:47 PM ----------

:rape x
Clothes go off the user and victim, and the lines are;

User says: Come here witch!
Victim says: Please, NO!
User says: Oh yeah!
Victim says: *Scream*

easy, post back soon.

---------- Post added 06-03-11 at 12:02 AM ---------- Previous post was 05-03-11 at 11:49 PM ----------

Command Line (E.g. :kick <user>) - :shoot <user>
Purpose - Shoot a user down and cut damage between 10 and 20 (from a row in users)
Rank Required (Optional) - 1 (RP Command)
Details - Well you shoot for example me :)shoot DjInTrouble) then the emu chooses a random number between 10 and 20 and cuts it from a new row in table users in db.

Code:
                    #region :shoot <user>
                    case "shoot":
                        {
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                if (roomUser.walkLock == true)
                                {
                                    sendData("BK" + "Nice try, but you are either stunned or cuffed.");
                                }
                                else
                                {
                                    if (punchCdLooper != null)
                                    {
                                        Room.sendWhisper(roomUser, _Username, "*aims for " + User._Username + ", but misses*");
                                    }
                                    else
                                    {
                                        int isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                                        int canHit = dbClient.getInt("SELECT violence FROM rooms WHERE id = '" + _roomID + "'");
                                        int isAfk = dbClient.getInt("SELECT afk FROM users WHERE name = '" + User._Username + "'");
                                        if (isAfk == 1)
                                        {
                                            sendData("BK" + "Sorry, but this user is AFK.");
                                        }
                                        else
                                        {
                                            if (isArrested < 1)
                                            {
                                                if (canHit == 1)
                                                {
                                                    sendData("BK" + "Sorry, but this room has been declared a no fighting zone.");
                                                }
                                                else
                                                {
                                                    if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
                                                    {
                                                        //db queries
                                                        int myHealth = dbClient.getInt("SELECT health FROM users WHERE name = '" + User._Username + "'");
                                                        int str_mod = dbClient.getInt("SELECT str FROM users WHERE name = '" + _Username + "'");

                                                        //generates a random number
                                                        Random randNum = new Random();
                                                        int hit_dif_0 = randNum.Next(10, 20);

                                                        //what a user hits
                                                        int hit = str_mod * hit_dif_0;

                                                        int getHit = myHealth - hit;
                                                        if (getHit < 1 && _Username == User._Username)
                                                        {
                                                            sendData("BK" + "Sorry, but you can not knock yourself out.");
                                                        }
                                                        else
                                                        {
                                                            dbClient.runQuery("UPDATE users SET health = health - '" + hit + "' WHERE name = '" + User._Username + "'");
                                                            dbClient.runQuery("UPDATE users SET hits = hits + 1 WHERE name = '" + _Username + "'");
                                                            int health_db_ko = dbClient.getInt("SELECT health FROM users WHERE name = '" + User._Username + "'");
                                                            Room.sendShout(roomUser, "*Shoots at " + args[1] + ", causing " + hit + " damage*");

                                                            ThreadStart punchCdStarter = new ThreadStart(punchCoolDown);
                                                            punchCdLooper = new Thread(punchCdStarter);
                                                            punchCdLooper.Priority = ThreadPriority.Lowest;
                                                            punchCdLooper.Start();

                                                            //if the user has 0 or less helth left
                                                            if (health_db_ko < 1)
                                                            {
                                                                if (User._Mission == "[Game] Deathmatch" || User._Mission == "[Game] Brawl")
                                                                {
                                                                    Room.sendShout(roomUser, "*Kills " + args[1] + ", sending them to the lobby*");
                                                                    if (User._Mission == "[Game] Deathmatch")
                                                                    {
                                                                        if (_Mission == "[Game] Deathmatch")
                                                                        {
                                                                            dbClient.runQuery("UPDATE users SET game_dm = game_dm + '10' WHERE name = '" + _Username + "'");
                                                                        }
                                                                        User.sendData("D^" + "H" + Encoding.encodeVL64(272));
                                                                        User.sendData("BK" + "Thank you for playing deathmatch.");
                                                                    }
                                                                    if (User._Mission == "[Game] Brawl")
                                                                    {
                                                                        if (_Mission == "[Game] Brawl")
                                                                        {
                                                                            dbClient.runQuery("UPDATE users SET game_brawl = game_brawl + '10' WHERE name = '" + _Username + "'");
                                                                        }
                                                                        User.sendData("D^" + "H" + Encoding.encodeVL64(181));
                                                                        User.sendData("BK" + "Thank you for playing brawl.");
                                                                    }
                                                                    User.refreshAppearance(true, true, true);
                                                                    dbClient.runQuery("UPDATE users SET health = '100' WHERE name = '" + User._Username + "'");
                                                                }
                                                                else
                                                                {
                                                                    User.sendData("D^" + "H" + Encoding.encodeVL64(153));
                                                                    User.sendData("BK" + "You have been killed by another user and sent to the hospital.");
                                                                    Room.sendShout(roomUser, "*kills " + args[1] + ", sending them to the hospital*");
                                                                    dbClient.runQuery("UPDATE users SET kills = kills + 1 WHERE name = '" + _Username + "'");
                                                                    dbClient.runQuery("UPDATE users SET deaths = deaths + 1, dead = '1', time_dead = '10' WHERE name = '" + User._Username + "'");
                                                                    User._Mission = "Dead";

                                                                    refreshAppearance(true, true, true);

                                                                    ThreadStart koStarter = new ThreadStart(User.knockOut);
                                                                    User.deadLooper = new Thread(koStarter);
                                                                    User.deadLooper.Priority = ThreadPriority.Lowest;
                                                                    User.deadLooper.Start();

                                                                    User.roomUser.walkLock = true;
                                                                }
                                                            }
                                                        }
                                                    }
                                                    else
                                                    {
                                                        if (User._roomID == _roomID && (roomUser.Y + 1 == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
                                                        {
                                                            Room.sendShout(roomUser, "*aims for " + args[1] + ", but misses*");
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            break;
                        }
                    #endregion

it debugs, not tested it in-client tho.

---------- Post added at 12:56 AM ---------- Previous post was at 12:02 AM ----------

:rape x
Clothes go off the user and victim, and the lines are;

User says: Come here witch!
Victim says: Please, NO!
User says: Oh yeah!
Victim says: *Scream*

1. Go to virtualUser.cs

2. Search for "private void punchCoolDown()"

3. Under this put:

Code:
        private void rapeTimer()
        {
            int iCount = 0;
            try
            {
                while (true)
                {
                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())

                    {

                    }
                    if (iCount == 60)
                    {
                        Room.sendSaying(roomUser, "*needs three more minutes to succesfully rape their victim*");
                    }

                    if (iCount == 120)
                    {
                        Room.sendSaying(roomUser, "*needs two more minutes to succesfully rape their victim*");
                    }

                    if (iCount == 180)
                    {
                        Room.sendSaying(roomUser, "*needs one more minutes to succesfully rape their victim*");
                    }

                    iCount++;

                    if (iCount > 180)
                    {
                        Room.sendSaying(roomUser, "*successfully rapes their victim*");
                        rapeTimerLooper = null;
                        rapeTimerLooper.Abort();
                    }
                    Thread.Sleep(1000);
                }
            }

            catch
            {
                Thread.CurrentThread.Abort();
                rapeTimerLooper = null;
            }
        }

4. Search for "private Thread jailBreakLooper;"

5. Below that put "private Thread rapeTimerLooper;"

6. Then search for ":slap"

7. Below that add:

Code:
                    #region :rape <user>
                    case "rape":
                        
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                
                                _Figure = _Uni + ""; // Removes all clothing apart from Face, Hair and Skin
                                refreshAppearance(false, true, true);
                                Room.sendSaying(roomUser, "*rips " + args[1] + "'s clothes off*");

                                ThreadStart rapeTimerStarter = new ThreadStart(jailBreak); // Starts the Rape Timer
                                rapeTimerLooper = new Thread(rapeTimerStarter);
                                rapeTimerLooper.Priority = ThreadPriority.Lowest;
                                rapeTimerLooper.Start();

                                Room.sendSaying(roomUser, "*starts raping " + args[1] + "*");
                                Room.sendSaying(roomUser, "*needs four more minutes to succesfully rape their victim*");

                                }
                          
                         break;
                       
                    #endregion

8. Done!



IMPORTANT: You must have Sledmore's Split Figure. Click here to get it

What does it do:

- Removes the clothing
- Starts the rape timer (5 Minutes)

Theres no benefit from this. But if you wanted it to minus health or plus credits do let me know.

I did initially put the false walklock in but couldnt figure out how to true walklock after the timer had finished.

Not tested btw, but it debugs!
 
Experienced Elementalist
Joined
Dec 21, 2008
Messages
290
Reaction score
33
but ya man we need pixel sex for PEjump2 or me wont ever stop searching for it on 4chanz :(
 
Custom Title Activated
Loyal Member
Joined
Oct 21, 2007
Messages
2,098
Reaction score
464
u nublet moonwalk was example sidewalk is my request
 
Experienced Elementalist
Joined
Dec 21, 2008
Messages
290
Reaction score
33
sidewalk poop u should make em have sideways vaginas like the chinks
 
Thanks for the memories!
Loyal Member
Joined
May 21, 2010
Messages
1,270
Reaction score
540
So can you fix my rocket bug? When I say, rocket, it shoots me up, but then I cant move without lowering to the ground again.
 
Custom Title Activated
Loyal Member
Joined
Oct 21, 2007
Messages
2,098
Reaction score
464
Mithex u can do custom sockets but cant fix simple cords?
jeez,

and lol nice rip of a RP timer...
 
Status
Not open for further replies.
Back
Top