[SERVICE] Custom Commands Database - Request/Post Here

Page 11 of 38 FirstFirst ... 34567891011121314151617181921 ... LastLast
Results 151 to 165 of 556
  1. #151
    Enthusiast Javvy is offline
    MemberRank
    May 2010 Join Date
    27Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    hmm, could anyone try and code a region with clothes commands as so:

    :hat ID
    :torso ID
    :trousers ID
    :feet ID

    or something like that, where when the ID is input they get this. I'd do it using the change appearance but I don't know how to just change part of the apperance if someone could tell me that or code this it'd be smashing.

    Thanks :)

  2. #152
    Rip Akaruz pixelpro321 is offline
    MemberRank
    Dec 2007 Join Date
    InternetLocation
    1,427Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Quote Originally Posted by Habboretromaker View Post
    Since Im Free From My Working On My Emulator Is There Any Commands You Guys Need

    ---------- Post added at 04:59 PM ---------- Previous post was at 04:47 PM ----------

    RP Poof
    Code:
    #region :poof
                        case "poof": // Refreshes users look
                            {
                                int isWorking;
                                int isDead;
                                int isArrested;
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    isWorking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                    isDead = dbClient.getInt("SELECT dead FROM users WHERE name = '" + _Username + "'");
                                    isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                                }
                                if (isWorking == 0 && isDead == 0 && isArrested == 0)
                                {
                                    refreshAppearance(true, true, true);
                                }
                                break;
                            }
                        #endregion
    Code:
    #region :hotelalert
                        case "hotelalert": // Broadcoasts a message to all virtual users (hotel alert)
                            {
                                if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                    return false;
                                else
                                {
                                    string Message = Text.Substring(3);
                                    userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + Message);
                                    staffManager.addStaffMessage("halert", userID, 0, Message, "");
                                }
                            }
                            break; 
                        #endregion
    Arrest

    Code:
    #region :arrest <user> <time>
                        case "arrest":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                    if (isworking == 1)
                                    {
                                        {
                                            int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
                                            int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
    
                                            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))
                                            {
                                                if (canarrest == 1)
                                                {
                                                    if (User.roomUser.walkLock == false)
                                                    {
                                                        Room.sendSaying(roomUser, "*attempts to arrest " + User._Username + ", but notices that he is not cuffed*");
                                                    }
                                                    else
                                                    {
                                                        int time = int.Parse(args[2]);
                                                        if (time > 60 || time < 1)
                                                        {
                                                            sendData("BK" + "What exactly are you trying to do?");
                                                        }
                                                        else
                                                        {
                                                            dbClient.runQuery("UPDATE users SET arrested = '1', arrests = arrests + '1', time_jail = '" + args[2] + "' WHERE name = '" + User._Username + "'");
    
                                                            int fine = time * 5;
                                                            dbClient.runQuery("UPDATE users SET credits = credits - '" + fine + "' WHERE name = '" + User._Username + "'");
                                                            refreshValueables(true, false);
    
                                                            Room.sendSaying(roomUser, "*arrests " + User._Username + " for " + time + " minutes, and fines them " + fine + " credits*");
    
                                                            User.sendData("D^" + "H" + Encoding.encodeVL64(150));
                                                            User.sendData("BK" + "You have been arrested by " + _Username + ", and fined " + fine + " credits!");
    
                                                            ThreadStart jailStarter = new ThreadStart(User.jailTime);
                                                            User.jailLooper = new Thread(jailStarter);
                                                            User.jailLooper.Priority = ThreadPriority.Lowest;
                                                            User.jailLooper.Start();
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                                break;
                            }
                        #endregion

    Use Rastas DB Well Just Use His DB :P

    Credits: Rasta Me For Hotelalet

    ---------- Post added at 05:02 PM ---------- Previous post was at 04:59 PM ----------

    Code:
    #region :colour <colour>
                        case "colour red":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-59";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour blue":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-60";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour yellow":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-50";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour pink":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-54";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour black":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                _Figure = "hd-180-601";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour purple":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-56";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour green":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-101";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "restore": //Retoues Normal Colour
                            refreshAppearance(true, true, true);
                            refreshBadges();
                            break;
                        #endregion
    Credits Just And Me Well Just Changed A Bit
    I need that fro Dissi's edit not RP

  3. #153
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    That Is For Dissi Since You Asked For Arrest I Thought you Need It For A RP Plus They Already In Dissis Expect Arrest But One I Gave You Was RP
    Last edited by Zak©; 19-06-10 at 08:35 PM.

  4. #154
    Apprentice smartguy88 is offline
    MemberRank
    May 2008 Join Date
    13Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Purchase command like off habborp

  5. #155
    Member 1zinzanzin is offline
    MemberRank
    Jun 2010 Join Date
    61Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    um i cant find :override alows player to passthrough other players and walk other anystanding furni

    ---------- Post added at 08:42 PM ---------- Previous post was at 08:37 PM ----------

    Quote Originally Posted by Habboretromaker View Post
    Since Im Free From My Working On My Emulator Is There Any Commands You Guys Need

    ---------- Post added at 04:59 PM ---------- Previous post was at 04:47 PM ----------

    RP Poof
    Code:
    #region :poof
                        case "poof": // Refreshes users look
                            {
                                int isWorking;
                                int isDead;
                                int isArrested;
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    isWorking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                    isDead = dbClient.getInt("SELECT dead FROM users WHERE name = '" + _Username + "'");
                                    isArrested = dbClient.getInt("SELECT arrested FROM users WHERE name = '" + _Username + "'");
                                }
                                if (isWorking == 0 && isDead == 0 && isArrested == 0)
                                {
                                    refreshAppearance(true, true, true);
                                }
                                break;
                            }
                        #endregion
    Code:
    #region :hotelalert
                        case "hotelalert": // Broadcoasts a message to all virtual users (hotel alert)
                            {
                                if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                    return false;
                                else
                                {
                                    string Message = Text.Substring(3);
                                    userManager.sendData("BK" + stringManager.getString("scommand_hotelalert") + "\r" + Message);
                                    staffManager.addStaffMessage("halert", userID, 0, Message, "");
                                }
                            }
                            break; 
                        #endregion
    Arrest

    Code:
    #region :arrest <user> <time>
                        case "arrest":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    int isworking = dbClient.getInt("SELECT working FROM users WHERE name = '" + _Username + "'");
                                    if (isworking == 1)
                                    {
                                        {
                                            int me_secure_id = dbClient.getInt("SELECT secure_id FROM users WHERE name = '" + _Username + "'");
                                            int canarrest = dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" + me_secure_id + "'");
    
                                            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))
                                            {
                                                if (canarrest == 1)
                                                {
                                                    if (User.roomUser.walkLock == false)
                                                    {
                                                        Room.sendSaying(roomUser, "*attempts to arrest " + User._Username + ", but notices that he is not cuffed*");
                                                    }
                                                    else
                                                    {
                                                        int time = int.Parse(args[2]);
                                                        if (time > 60 || time < 1)
                                                        {
                                                            sendData("BK" + "What exactly are you trying to do?");
                                                        }
                                                        else
                                                        {
                                                            dbClient.runQuery("UPDATE users SET arrested = '1', arrests = arrests + '1', time_jail = '" + args[2] + "' WHERE name = '" + User._Username + "'");
    
                                                            int fine = time * 5;
                                                            dbClient.runQuery("UPDATE users SET credits = credits - '" + fine + "' WHERE name = '" + User._Username + "'");
                                                            refreshValueables(true, false);
    
                                                            Room.sendSaying(roomUser, "*arrests " + User._Username + " for " + time + " minutes, and fines them " + fine + " credits*");
    
                                                            User.sendData("D^" + "H" + Encoding.encodeVL64(150));
                                                            User.sendData("BK" + "You have been arrested by " + _Username + ", and fined " + fine + " credits!");
    
                                                            ThreadStart jailStarter = new ThreadStart(User.jailTime);
                                                            User.jailLooper = new Thread(jailStarter);
                                                            User.jailLooper.Priority = ThreadPriority.Lowest;
                                                            User.jailLooper.Start();
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                                break;
                            }
                        #endregion

    Use Rastas DB Well Just Use His DB :P

    Credits: Rasta Me For Hotelalet

    ---------- Post added at 05:02 PM ---------- Previous post was at 04:59 PM ----------

    Code:
    #region :colour <colour>
                        case "colour red":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-59";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour blue":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-60";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour yellow":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-50";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour pink":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-54";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour black":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                _Figure = "hd-180-601";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour purple":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-56";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "colour green":
                            {
                                virtualUser User = userManager.getUser(args[1]);
                                User._Figure = "hd-180-101";
                                refreshAppearance(false, false, true);
                                break;
                            }
                        case "restore": //Retoues Normal Colour
                            refreshAppearance(true, true, true);
                            refreshBadges();
                            break;
                        #endregion
    Credits Just And Me Well Just Changed A Bit
    cheers for color command m8

  6. #156
    Apprentice Jones11 is offline
    MemberRank
    Jun 2010 Join Date
    17Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Um thanks for telling us that you will be helping people code commands its really not a tut unless your gonna tell us how to code commands.

  7. #157
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Erm Well Saves Time Im Keeping This Active
    I Will Soon Release My RP Emulator Based Of Handyandys Edit
    Ontopic: OK Ready For Some Requests

    ---------- Post added at 10:44 PM ---------- Previous post was at 10:43 PM ----------

    I Dunno About the Overide Command Will Try To Code Later Ps For Uber Dissi Etc

  8. #158
    Proficient Member Marlon Colhado is offline
    MemberRank
    Jan 2009 Join Date
    BrazilLocation
    178Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Hello, I wanted the command to add the pixels UBEREMU
    Could someone help me? someone who has the code?

    Thank you Thank you in advance!
    -Marlon Colhado

  9. #159
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Sorry I Aint Started Coding With Uber So Im Not Used To It For Know Just Edit it Via DB

  10. #160
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Quote Originally Posted by kiddoidao3d View Post
    Hello, I wanted the command to add the pixels UBEREMU
    Could someone help me? someone who has the code?

    Thank you Thank you in advance!
    -Marlon Colhado
    I believe there is one, its just :pixels name amount, Worked for me anyways, but if you don't have it then here,

    PHP Code:
                        case "pixels":
                            if (
    Session.GetHabbo().Rank >= 4)
                            {
                                
    TargetClient UberEnvironment.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
                                if (
    TargetClient != null)
                                {
                                    
    int creditsToAdd;
                                    if (
    int.TryParse(Params[2], out creditsToAdd))
                                    {
                                        
    TargetClient.GetHabbo().ActivityPoints TargetClient.GetHabbo().ActivityPoints creditsToAdd;
                                        
    TargetClient.GetHabbo().UpdateActivityPointsBalance(true);
                                        
    TargetClient.SendNotif(Session.GetHabbo().Username " has awarded you " creditsToAdd.ToString() + " Pixels!");
                                        
    Session.SendNotif("Pixels balance updated successfully.");
                                        return 
    true;
                                    }
                                    else
                                    {
                                        
    Session.SendNotif("Please send a valid amount of pixels.");
                                        return 
    false;
                                    }
                                }
                                else
                                {
                                    
    Session.SendNotif("User could not be found.");
                                    return 
    false;
                                }
                            }
                            return 
    false
    Enjoy.

  11. #161
    Enthusiast Jive is offline
    MemberRank
    Jun 2010 Join Date
    CanadaLocation
    37Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Anyone know how to change what comes out of a vending machine?

    I'm adding custom ones to my hotel but they just throw out carrots?

    Many thanks.

  12. #162
    yerro Adde is offline
    MemberRank
    Feb 2010 Join Date
    none ur bizzLocation
    2,731Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Emulator: Vista4Life's & Shine-Away's V26 Source

    Commands I want: :whosonline (Shows whosonline not coded into server)
    :brb (the brb command)
    :back (Says that ur back
    :logout (Logging out from the hotel)
    :slap (Slapping a user, a user getting up a message; u have been slapped by (username)
    :givecredits (Gives credit to user, not coded into the server)
    :teleport (Teleports you admins only. Not coded into server)
    :speedhack (Super speed)


    I know i requested many but my emu almost got none.

    Thanks guys.

  13. #163
    Old Man Storm Watch is offline
    MemberRank
    Oct 2007 Join Date
    260Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Quote Originally Posted by What? View Post
    Emulator: Vista4Life's & Shine-Away's V26 Source

    Commands I want: :whosonline (Shows whosonline not coded into server)
    :brb (the brb command)
    :back (Says that ur back
    :logout (Logging out from the hotel)
    :slap (Slapping a user, a user getting up a message; u have been slapped by (username)
    :givecredits (Gives credit to user, not coded into the server)
    :teleport (Teleports you admins only. Not coded into server)
    :speedhack (Super speed)


    I know i requested many but my emu almost got none.

    Thanks guys.
    Logout:
    Code:
    #region :logout
    case "logout":
    {
    Room.sendShout(roomUser, "- Auto-Logoff in 15 seconds -");
    Room.removeUser(roomUser.roomUID, false, "");
    Thread.Sleep(15000);
    User.Disconnect();
    break;
    }
    #endregion

  14. #164
    yerro Adde is offline
    MemberRank
    Feb 2010 Join Date
    none ur bizzLocation
    2,731Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Quote Originally Posted by Jared_Car View Post
    Logout:
    Code:
    #region :logout
    case "logout":
    {
    Room.sendShout(roomUser, "- Auto-Logoff in 15 seconds -");
    Room.removeUser(roomUser.roomUID, false, "");
    Thread.Sleep(15000);
    User.Disconnect();
    break;
    }
    #endregion
    Thanks. But i changed emu to Dissis. But does it still work?

  15. #165
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [SERVICE] Making Holograph Emulator commands [SERVICE]

    Quote Originally Posted by What? View Post
    Thanks. But i changed emu to Dissis. But does it still work?
    Command made for Rasta's
    Rasta's made off of Dissi's should work.


    Also could anyone do that rocket command?
    that they have in RP?

    also what puppettempo is Habbo usually on?
    Last edited by Makarov; 30-06-10 at 06:54 PM.



Advertisement