[RP]Habbo Command / Function [Service]

Status
Not open for further replies.

Mango2735

The Sexy One.
Oct 13, 2010
288
3
Hello, It's Me Mango
Ok, So I am Starting a Habbo Command/ Function Service. It Has been a while before we Had this So I am Here To Start So. I wanted To do something a little different. The Emu type for these commands/ functions can be From V26 RP Servers e.g.(rasta lulz, obborp) to, R35 servers like e.g.(Life Emu, or domminicc's edit) or Dayron's Uber RP, or Possibly some R63 Uber Emu RP Commands You Want to Request.

The Format Should be

Server Version:

Command/ Function:

What it does:


___________

Now, Please Don't get Mad If I don't Respond in your request right away tommorrow or possibly any other time. I have a Life Also
. I Hope Some Other coder's Will Help You But 95/100 I'll Respond to it right away.
Mk, Thanks Mango
 

Kieren

The OGz
Aug 4, 2010
2,957
751
Thread approved and moved to releases; Please be away any commands that are released without credits will lead to removal.
 

IJude

New Member
Jun 18, 2011
18
0
Ok I coded my own. and troll wt are you talkin bout.
LOl, !.
I coded Something for R35 EMu's. RP Though. Ok, a DMV System Like a driving Test that gets you a Driving License.


1. Ok First You need to make a custom badge and save it as DMV.
2.OK Then You need to add a users structure named DMV, make it int 1 or so.
3. Ok Add this private thread in your emu.
Search for private thread jailbreakLooper. Under it put Private thread drivingtestLooper.
4. Search for private void jailbreakLooper. Under it put this snippet.
PHP:
private void drivingtest()        {            int iCount = 0;            try            {                while (true)                {                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())                    {                        if (_roomID != 20)                        {                            Room.sendSaying(roomUser, "*Fails Their Driving Test.*");                            jailBreakLooper = null;                            jailBreakLooper.Abort();                        }                        if (iCount == 80)                        {                            Room.sendSaying(roomUser, "*needs three more minutes to succesfully pass their driving test.*");                        }
                        if (iCount == 160)                        {                            Room.sendSaying(roomUser, "*needs two more minutes to succesfully pass their driving test.*");                        }
                        if (iCount == 240)                        {                            Room.sendSaying(roomUser, "*needs one more minute to succesfully pass their driving test.*");                        }
                        iCount++;
                        if (iCount > 240)                        {                            Room.sendSaying(roomUser, "*successfully, Finshes Their Driving Test.*");                            dbClient.runQuery("UPDATE userbadges SET id = dmv WHERE id = '" + userID + "' LIMIT 1");
dbClient.runQuery("UPDATE users SET dmv = 1 WHERE id = '" + userID + "' LIMIT 1");                            Room.sendSaying(roomUser, "*Now you need To Purchase a Car.*");                            refreshValueables(true, true);                            drivingtestLooper = null;                            drivingtestLooper.Abort();                        }                        Thread.Sleep(1000);                    }                }            }            catch            {                Thread.CurrentThread.Abort();                drivingtestLooper = null;            }        }


5.Ok Now add This Command.
PHP:
#region :dmv                    case "dmv":                        {                            if (drivingtestLooper == null && _roomID == 20)                            {                                 Room.sendSaying(roomUser, "*Starts their driving test.*");                                Room.sendSaying(roomUser, "*Needs 6 more minutes to successfuly finish their driving Test.*");
                                ThreadStart drivingtestStarter = new ThreadStart(drivingtest);                                drivingtestLooper = new Thread(drivingtestStarter);                                drivingtestLooper.Priority = ThreadPriority.Lowest;                                drivingtestLooper.Start();                            }                            break;                        }                    #endregion
Ok, Now I will Edit this Later so it will let a car appear. SO you can drive around. ONLY For R35.! Ok, I didn't test but, Im sure it works 100%.
Thanks
 

Caleb

New Member
Oct 24, 2010
13
1
War Started

Stole work? I don't believe so. Your begging me to code you a poof command for goodness sakes. It's already in the emulator kid!
 

Al-Santoro

New Member
Jan 20, 2011
29
5
Well, since no one is requesting anything, I guess I'll be the first.

The Format Should be:
Server Version:

Command/ Function:

What it does:

- Weed & drug based type.
- Rasta's v26 RP Emulator.
- Well, name the command :smoke or something.
- What I want it to do, is first, they'll need to have a weed first, Such as.. if(weed == 1), etc. And, what it do, it'll make them lose 2HP only, since it's just a little weed, and they gain + 1 strength and +10 HP for 15 minutes. I'm not sure if you're able to make it fully function like this, but it's cool, I respect that. ;]. And if also, make it a limit, that they can't go over 13 strength with the weed, seeing that's how people do.. And, I guess that's all. Thanks.

- James ,!
 

Mango2735

The Sexy One.
Oct 13, 2010
288
3
PHP:
#region :smokeweed <drug>
                    case "smoke":
                        {
                            string Drug = stringManager.wrapParameters(args, 1);
                            {
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    if (Drug == "weed")
                                    {
                                        int myWeed;
                                        myWeed = dbClient.getInt("SELECT weed FROM users WHERE name = '" + _Username + "'");
                                        if (myWeed < 1)
                                        {
                                            sendData("BK" + "You must have a pile of weed to use this command");
                                        }
                                        else
                                        {
                                            if (roomUser.walkLock == true)
                                            {
                                                sendData("BK" + "Nice try, but you are either stunned or cuffed.");
                                            }
                                            else
                                            {
                                                if (statusManager.containsStatus(""))
                                                {
                                                    sendData("BK" + "You are already high off drugs");
                                                }
                                                else
                                                {
                                                    int myDead;
                                                    myDead = dbClient.getInt("SELECT dead FROM users WHERE name = '" + _Username + "'");
                                                    if (myDead > 0)
                                                    {
                                                        sendData("BK" + "Nice try, but you are dead");
                                                    }
                                                    else
                                                    {
                                                        int myArrested;
                                                        myArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                                                        if (myArrested > 0)
                                                        {
                                                            sendData("BK" + "Nice try, but you are arrested");
                                                        }
                                                        int myWorking;
                                                        myWorking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                                        if (str < 13)
                                                        {
                                                            sendData("BK" + "Sorry You Can't go Past 13 str by smoking weed.");
                                                        }
                                                        if (myWorking > 2)
                                                        {
                                                            sendData("BK" + "Nice try, but you are working");
                                                        }
                                                        else
                                                        {
                                                            Room.sendSaying(roomUser, "*Takes Their Packet off weed out and begings To Smoke.*");
                                                       
                                                            dbClient.runQuery("UPDATE users SET health = health - '2' WHERE name = '" + _Username + "'");
                                                            dbClient.runQuery("UPDATE users SET weed = weed - '1' WHERE name = '" + _Username + "'");
                                                        }

                                                        iCount++;

                                                        if (iCount > 15)
                                                        {
                                                            dbClient.runQuery("UPDATE users SET str = str + '1' WHERE name = '" + _Username + "'");
                                                            dbClient.runQuery("UPDATE users SET health = health + '15' WHERE name = '" + _Username + "'");
                                                            
                                                            _Mission = "[Civilian] High off Drugs  ";
                                                            refreshAppearance(false, true, true);




                                                           }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            break;
                        }
                    #endregion
I think I got Pretty Much Except, The 15 Minutes or 15 seconds. I haven't Tested. Please tell me how it works. ;D
 

Al-Santoro

New Member
Jan 20, 2011
29
5
Thanks for the command, it seems like it can be functional enough to work. ;] I'll test it out soon as I can.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,905
PHP:
#region :smokeweed <drug>
                    case "smoke":
                        {
                            string Drug = stringManager.wrapParameters(args, 1);
                            {
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    if (Drug == "weed")
                                    {
                                        int myWeed;
                                        myWeed = dbClient.getInt("SELECT weed FROM users WHERE name = '" + _Username + "'");
                                        if (myWeed < 1)
                                        {
                                            sendData("BK" + "You must have a pile of weed to use this command");
                                        }
                                        else
                                        {
                                            if (roomUser.walkLock == true)
                                            {
                                                sendData("BK" + "Nice try, but you are either stunned or cuffed.");
                                            }
                                            else
                                            {
                                                if (statusManager.containsStatus(""))
                                                {
                                                    sendData("BK" + "You are already high off drugs");
                                                }
                                                else
                                                {
                                                    int myDead;
                                                    myDead = dbClient.getInt("SELECT dead FROM users WHERE name = '" + _Username + "'");
                                                    if (myDead > 0)
                                                    {
                                                        sendData("BK" + "Nice try, but you are dead");
                                                    }
                                                    else
                                                    {
                                                        int myArrested;
                                                        myArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                                                        if (myArrested > 0)
                                                        {
                                                            sendData("BK" + "Nice try, but you are arrested");
                                                        }
                                                        int myWorking;
                                                        myWorking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                                        if (str < 13)
                                                        {
                                                            sendData("BK" + "Sorry You Can't go Past 13 str by smoking weed.");
                                                        }
                                                        if (myWorking > 2)
                                                        {
                                                            sendData("BK" + "Nice try, but you are working");
                                                        }
                                                        else
                                                        {
                                                            Room.sendSaying(roomUser, "*Takes Their Packet off weed out and begings To Smoke.*");
                                                       
                                                            dbClient.runQuery("UPDATE users SET health = health - '2' WHERE name = '" + _Username + "'");
                                                            dbClient.runQuery("UPDATE users SET weed = weed - '1' WHERE name = '" + _Username + "'");
                                                        }

                                                        iCount++;

                                                        if (iCount > 15)
                                                        {
                                                            dbClient.runQuery("UPDATE users SET str = str + '1' WHERE name = '" + _Username + "'");
                                                            dbClient.runQuery("UPDATE users SET health = health + '15' WHERE name = '" + _Username + "'");
                                                            
                                                            _Mission = "[Civilian] High off Drugs  ";
                                                            refreshAppearance(false, true, true);




                                                           }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            break;
                        }
                    #endregion
I think I got Pretty Much Except, The 15 Minutes or 15 seconds. I haven't Tested. Please tell me how it works. ;D

1) Why bother with iCounts?
2) The iCount wouldn't work.
3) Bools, ints and strings should be used rather than all the queries.
4) "Str" isn't even included.
5) You also have it set to lessthan, rather than morethan?
6) "if (myWorking > 2)" - What? how would that workout?

But yeah, nice try, hopefully you will take what I have said into mind :).
 

Mango2735

The Sexy One.
Oct 13, 2010
288
3
Constructive Critism, Lol Love it. Live it. Deal with it.

Also I have str included. Ik i got some of the lessthan arrows wrong I did this command rather fast.

I didn't beta test. As im not on My PC. ;D Or Else I would have Fixed it Up.

But Thanks Craig.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,905
Alright, thread cleaned, anymore spam = auto infraction, most of you should of have a good total of infractions,but I've just cleaned the thread for now, only requests and releases can be shown / bug fixes.
 
Status
Not open for further replies.

Users who are viewing this thread

Top