[SERVICE] Custom Commands Database - Request/Post Here

Page 15 of 38 FirstFirst ... 5789101112131415161718192021222325 ... LastLast
Results 211 to 225 of 556
  1. #211
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Dissi edit:

    Code:
                            case "Ch": // Ch + ONE-WAY-DOOR-FURNI-ID (answer: Dx + WIRE(FURNI-ID) + I + WIRE(ROOM-UID-OF-CLICKER)) (sprite: 'one_way_door*#)
                                {
                                    if (Room == null || roomUser == null || _inPublicroom)
                                        return;
    
                                    int itemID = Encoding.decodeVL64(currentPacket.Substring(2));
                                    Rooms.Items.floorItem Item = Room.floorItemManager.getItem(itemID); // Find the item.
                                    try
                                    {
                                        if (Room.floorItemManager.containsItem(itemID) && stringManager.getStringPart(Item.Sprite, 0, 12) == "one_way_door")
                                        {
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
    string toll;
    toll = dbClient.getString("SELECT toll FROM rooms WHERE id = '" + _roomID + "'");
    string owner;
    owner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
                                     }
    
                                            Room.sendData("Dx" + Encoding.encodeVL64(itemID) + "I" + Encoding.encodeVL64(Room.roomID)); // Opens the gate, with green light
                                            Room.setSquareState(Item.X, Item.Y, 1, 1, virtualRoom.squareState.Open);
    
                                            roomUser.walkLock = true;
                                            switch (Item.Z) // Walk into the item
                                            {
                                                case 0: roomUser.goalY = Room.sqSTATE[Item.X, Item.Y + 1] == virtualRoom.squareState.Blocked ? Item.Y : Item.Y + 1; roomUser.goalX = Item.X; break;
                                                case 2: roomUser.goalX = Room.sqSTATE[Item.X - 1, Item.Y] == virtualRoom.squareState.Blocked ? Item.X : Item.X - 1; roomUser.goalY = Item.Y; break;
                                                case 4: roomUser.goalY = Room.sqSTATE[Item.X, Item.Y - 1] == virtualRoom.squareState.Blocked ? Item.Y : Item.Y - 1; roomUser.goalX = Item.X; break;
                                                case 6: roomUser.goalX = Room.sqSTATE[Item.X + 1, Item.Y] == virtualRoom.squareState.Blocked ? Item.X : Item.X + 1; roomUser.goalY = Item.Y; break;
                                            }
                                            roomUser.walkLock = false;
    
                                            while (true)
                                                if (roomUser.statusManager.containsStatus("mv"))
                                                    break;
    
                                            Room.sendData("Dx" + Encoding.encodeVL64(itemID) + "H" + Encoding.encodeVL64(Room.roomID), 1000);
                                            Room.setSquareState(Item.X, Item.Y, 1, 1, virtualRoom.squareState.Blocked);
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
                                            dbClient.runQuery("UPDATE users SET credits = credits - '" + toll + "' WHERE id = '" + userID + "'");
                                            dbClient.runQuery("UPDATE users SET credits = credits + '" + toll + "' WHERE name = '" + owner + "'");
                                     }
    _User.refreshValueables;
    
                                            break;
                                        }
                                    }
                                    catch { }
                                    break;
                                }
    
    COMMAND:
    
                        case "toll":
                            {
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
    string rowner;
    rowner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
                                if (rowner == _Username)
                                {
                                    string amount = Text.Substring(args[0].Length + 1);
                                        dbClient.runQuery("UPDATE rooms SET toll = '" + amount + "' WHERE id = '" + _roomID + "'");
                                }
    }
                                break;
                            }
    Should work, if not tell me wot error there is and ill fix it up.

  2. #212
    Member Mikas17 is offline
    MemberRank
    Apr 2008 Join Date
    PortugalLocation
    83Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    :poof
    <dissis TDP>
    Refresh habbo looks.

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

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Quote Originally Posted by Mikas17 View Post
    :poof
    <dissis TDP>
    Refresh habbo looks.
    PHP 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 == && isDead == && isArrested == 0)
                                {
                                    
    refreshAppearance(truetruetrue);
                                }
                                break;
                            }
                        
    #endregion 
    Already requested.

  4. #214
    Member Mikas17 is offline
    MemberRank
    Apr 2008 Join Date
    PortugalLocation
    83Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Massbadge

    Offer all users connected credits.

    Example:
    :masscredits 500

    Dissi's Source
    Last edited by Mikas17; 09-07-10 at 06:39 PM.

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

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Code:
                        #region :massbadge
                        case "massbadge":
                            {
                                if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                {
                                    return false;
                                }
                                {
                                    foreach (virtualUser User in userManager._Users.Values)
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
                                        dbClinet.runQuery("INSERT INTO users_badges(userid,badgeid) VALUES (" + User.userID + "," + args[1] + ")");
                                        User.refreshBadges();
                                    }
                                }
                                break;
                            }
                        #endregion
    Enjoy Swimo Leave me some fun :P
    Last edited by Zak©; 09-07-10 at 10:48 PM.

  6. #216
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Can you code that :voice command for emurelease35? :D

    ( http://forum.ragezone.com/f353/emure...ql-r35-660273/ )
    Last edited by PEjump2; 09-07-10 at 11:11 PM.

  7. #217
    Account Upgraded | Title Enabled! Just is offline
    MemberRank
    Oct 2009 Join Date
    EnglandLocation
    548Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    /closedeadthread.

  8. #218
    Account Upgraded | Title Enabled! Idiotic is offline
    MemberRank
    Jun 2010 Join Date
    MG, BrazilLocation
    228Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Quote Originally Posted by Just View Post
    /closedeadthread.
    Seriously, you look like an idiot. Close dead thread? This thread is dead? Sure, the thread starter is dead, but the thread isn't. People like Habboretromaker are still making commands, so the thread isn't dead. What went through your mind while writing this? Did you think of anything when you clicked "Submit Reply"?

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

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Quote Originally Posted by PEjump2 View Post
    Can you code that :voice command for emurelease35? :D

    ( http://forum.ragezone.com/f353/emure...ql-r35-660273/ )
    Code:
                        #region :voice <"text"> You need to put the quotes, Example: :voice "Welcome-everyone"
                        case "voice":
                        {
                                string text = args[1];
                                statusManager.carryItem("voiceSpeak(" + text + ")");
                                Thread.Sleep(1000);
                                {
                                    statusManager.carryItem("voiceStop");
                                }
                        }
                        break;
                        #endregion
    Same One Released Before It Should Work With Emu35 And Thanks Idiotic for Explaining to him

  10. #220
    Account Upgraded | Title Enabled! Idiotic is offline
    MemberRank
    Jun 2010 Join Date
    MG, BrazilLocation
    228Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Quote Originally Posted by What? View Post
    PHP 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 == && isDead == && isArrested == 0)
                                {
                                    
    refreshAppearance(truetruetrue);
                                }
                                break;
                            }
                        
    #endregion 
    Already requested.
    That's for RP. This will cause errors cause it's fetching data which doesn't exist (Holograph doesn't have the row "working", etc). Nice try from copying from your emulator, but next time, think.

    PHP Code:
    case "poof":
    {
        
    refreshAppearance(truetruetrue);
        
    refreshBadges();
        break;

    Am I correct?
    Last edited by Idiotic; 10-07-10 at 01:10 AM.

  11. #221
    Novice MentaL_JNR is offline
    MemberRank
    Jul 2010 Join Date
    3Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Are any of these Commands for UberCMS R50-R54, if there not can anyone make commands for Ubercms ?

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

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    SSorry Holograph Emulator Only And Idiotic is working Is That You Cant try to Work If Your Arrested

  13. #223
    Account Upgraded | Title Enabled! Idiotic is offline
    MemberRank
    Jun 2010 Join Date
    MG, BrazilLocation
    228Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Quote Originally Posted by MentaL_JNR View Post
    Are any of these Commands for UberCMS R50-R54, if there not can anyone make commands for Ubercms ?
    I'll download uberEmulator and check it out.


    Quote Originally Posted by Habboretromaker View Post
    SSorry Holograph Emulator Only And Idiotic is working Is That You Cant try to Work If Your Arrested
    Sorry, I didn't understand what word you said. I said What?'s poof command wouldn't work for normal holograph sources. In his poof command it runs a query checking if the user is working, arrested, etc but in normal holograph it doesn't have working, arresting, etc.

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

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    Quote Originally Posted by Idiotic View Post
    I'll download uberEmulator and check it out.
    Wouldnt waste your time, most don't lol.

  15. #225
    Account Upgraded | Title Enabled! HFTB is offline
    MemberRank
    May 2007 Join Date
    The netherlandsLocation
    332Posts

    Re: [SERVICE] Custom Commands Database - Request/Post Here

    I wants some codes:

    *Shoot down [USERNAME]*
    It will shoot down the target user and cut down 500 credits and 10 hp(row in db:
    hp
    version:Lost_Memory edition v26



Advertisement