[SERVICE] Custom Commands Database - Request/Post Here

Page 14 of 38 FirstFirst ... 467891011121314151617181920212224 ... LastLast
Results 196 to 210 of 556
  1. #196
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

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

    Does any one have the guide command? i havevthe searcher working but i need :guide?

  2. #197
    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 -Jordan- View Post
    Does any one have the guide command? i havevthe searcher working but i need :guide?
    Er, what does it do i'l have ago at it ;'D!

  3. #198
    Account Upgraded | Title Enabled! masood104 is offline
    MemberRank
    Aug 2009 Join Date
    311Posts

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

    [quote=Habboretromaker;5754375]
    Quote Originally Posted by Habboretromaker View Post
    r you gonna need alot of stuff in emu and db colum I'll try/QUOTE]
    i Been Heres what i think will make it work

    [Test Dont
    Code:
     
    if (Item.Sprite == “one_way_door*7″)
    {
    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
    
    string toll;
    
    {
    
    toll = dbClient.getString(“SELECT one_way_door_& FROM toll WHERE id = ‘” +  _roomID + “‘”);
    db.client("UPDATE  one_way_door_7_toll" + toll + "";
    Room.sendShout(roomUser, “*Set's Green Gates Toll*”);
    
     refreshValueables(true, false);
    }
    }
    [/QOUTE]
    Thats Just The Code For One Gate And Will Need More Coding So Please Wait :)

    There is defenitley more, but a much easier way to do it, my techie coded it :p So I cant release it.

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

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

    I Know Theres More Still Being Coded The Hard Way Is The Best Way You Learn More And The More Stable Your Code It

  5. #200
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

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

    I'll code a one way gate toll system and post it on the forum later or tomorrow.

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

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

    You Came Out Of No Where O Well Only Had Few Bits Left

  7. #202
    Valued Member Maintenance is offline
    MemberRank
    Jun 2009 Join Date
    137Posts

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

    Can you code commands for r50+ ?

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

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

    If Its Uber I Cant Atm Because I Aint Seen Its Code Yet If Its Not Uber Then Yea Probs Can

  9. #204
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

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

    Should work! Just add a toll field to the end of the rooms table.

    Only one toll per room atm, ill fix to work via itemid soon.

    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")
                                        {
    
    string toll;
    toll = DB.runRead("SELECT toll FROM rooms WHERE id = '" + _roomID + "'");
    string owner;
    owner = DB.runRead("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);
                                            DB.runQuery("UPDATE users SET credits = credits - '" + toll + "' WHERE id = '" + userID + "'");
                                            DB.runQuery("UPDATE users SET credits = credits + '" + toll + "' WHERE name = '" + owner + "'");
    _User.refreshValueables;
    
                                            break;
                                        }
                                    }
                                    catch { }
                                    break;
                                }
    
    COMMAND:
    
                        case "toll":
                            {
    string rowner;
    rowner = DB.runRead("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
                                if (rowner == _Username)
                                {
                                    string amount = Text.Substring(args[0].Length + 1);
                                        DB.runQuery("UPDATE rooms SET toll = '" + amount + "' WHERE id = '" + _roomID + "'");
                                }
                                break;
                            }
    Last edited by swimoTheBig; 08-07-10 at 07:28 PM.

  10. #205
    Enthusiast Daim is offline
    MemberRank
    May 2010 Join Date
    FinlandLocation
    39Posts

    Voice command

    What is voice command?
    This command is for Holograph and it uses Shockwave Director function voiceSpeak("..") that makes possible kinda to talk in habbo retros. Command causes the specified string to be spoken by the text-to-speech engine.

    How to use it?
    In hotel type :voice "what-you-want-to-say" . You have to put the quotes and use - instead of space.

    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
    Credits for:
    - LolleroRP Coders (Daim, Fetariina)
    Last edited by Daim; 08-07-10 at 07:53 PM.

  11. #206
    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 swimoTheBig View Post
    Should work! Just add a toll field to the end of the rooms table.

    Only one toll per room atm, ill fix to work via itemid soon.

    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")
                                        {
    
    string toll;
    toll = DB.runRead("SELECT toll FROM rooms WHERE id = '" + _roomID + "'");
    string owner;
    owner = DB.runRead("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);
                                            DB.runQuery("UPDATE users SET credits = credits - '" + toll + "' WHERE id = '" + userID + "'");
                                            DB.runQuery("UPDATE users SET credits = credits + '" + toll + "' WHERE name = '" + owner + "'");
    _User.refreshValueables;
    
                                            break;
                                        }
                                    }
                                    catch { }
                                    break;
                                }
    
    COMMAND:
    
                        case "toll":
                            {
    string rowner;
    rowner = DB.runRead("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
                                if (rowner == _Username)
                                {
                                    string amount = Text.Substring(args[0].Length + 1);
                                        DB.runQuery("UPDATE rooms SET toll = '" + amount + "' WHERE id = '" + _roomID + "'");
                                }
                                break;
                            }
    Nice one swimo.

  12. #207
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

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

    Im drunk so were would i put that?

  13. #208
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

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

    Quote Originally Posted by -Jordan- View Post
    Im drunk so were would i put that?
    virtualUser.cs init blud.

  14. #209
    ส็็็็็็็ Bloodraven is offline
    MemberRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

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

    Quote Originally Posted by swimoTheBig View Post
    virtualUser.cs init blud.
    I know that, were exacly.

  15. #210
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts
    In Room Actions :P

    ------------------------------------------------

    If You Guys Want I'll Make Swimos Code To Dissi's By Changing its DB
    Last edited by RastaLulz; 09-07-10 at 03:01 PM. Reason: Merged



Advertisement