Project Flash V36 [SHOCKWAVE]

Status
Not open for further replies.
Heres AresCJ's source : , this is the exact same source , connects the same and the same Trade error , btw , this isnt Stable , D/c when buying items...
 
Heres AresCJ's source : , this is the exact same source , connects the same and the same Trade error , btw , this isnt Stable , D/c when buying items...

Well, you just lied, my source does NOT "Disconnect" when purchasing items, so please get your words correct.

Trading does work, and it's more stable than what you could ever have.
 
Last edited:
Kinda dumb that it isn't an open source, If it was an open source, then people could fix bugs that you guys can't fix. I don't know, it seems like a much better idea.
 
-Jordan- its been longer then 10mins, have you fixed it :P

I forgot about this, and i don't see a point in me fixing this now, il release the virtualuser.cs for you guys to get the the commands and that out:P, and i advise you to use emurelease35.

il update this post when i de-compile it, 10 mins.

And i know this thread is old but...


to save me time i just had the command region.

PHP:
private bool isSpeechCommand(string Text)
{
    string[] s = Text.Split(new char[] { ' ' });
    try
    {
        DatabaseClient client;
        string str;
        virtualUser current;
        int num2;
        int num3;
        DataTable table;
        DataRow row;
        virtualUser user3;
        Hashtable hashtable;
        ThreadStart start;
        string str5;
        int num8;
        string str6;
        int num9;
        string str8;
        int num11;
        string str12;
        IEnumerator enumerator;
        switch (s[0].ToLower())
        {
            case "poof":
                this.refreshAppearance(false, false, true);
                goto Label_271E;

            case "commands":
                if (this._Rank >= 5)
                {
                    break;
                }
                this.sendData(string.Concat(new object[] { "BKEmulator: Babbo Emulator\rServer Zeit: ", DateTime.Now.ToString(), " (GMT)\r\rUser Kommandos: \r:afk/:brb (Abwesend)\r:pickupall (Kann nur Raumbesitzer - nimmt alle M\x00c3\x00b6bel auf) \r:back (Wieder da)\r:startwork (Macht dich zum Polizisten) \r:details (Server Details)\r:cleanhand (Hand leeren)\r:no_height_limits (Unbegrenzte Bauh\x00c3\x00b6he)\r:stack_rugs (Sachen stapeln)\r:whosonline (Wer ist Online)\r:server (Server Infos)\r:reverse (Aendert dich wieder zur\x00c3\x00bcck)\r:spec (Server Maschinen Infos)\r:roomid (Zeigt die ID im aktuellen Raum) \r:red/:pink/:blue/:green (Du \x00c3\x00a4nderst dein Team) \r", Convert.ToChar(2) }));
                goto Label_271E;

            case "details":
                using (client = Eucalypt.dbManager.GetClient())
                {
                    this.sendData(string.Concat(new object[] { "BKHallo ", this._Username, ", hier findest du ein paar Statistiken des Babbo Emulators.\r\rUser Online: ", userManager.userCount, ".\rUser im Durchschnitt: ", userManager.peakUserCount, ".\rRaeume in Benutzung: ", roomManager.roomCount, ".\rRaeume im Durchschnitt: ", roomManager.peakRoomCount, ".\r", Convert.ToChar(2) }));
                }
                goto Label_271E;

            case "buy":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_0576;
                }
                return false;

            case "no_height_limits":
                if (this._noHeightLimit)
                {
                    goto Label_06A7;
                }
                this._noHeightLimit = true;
                this.sendData("BKThe height limit has been disabled for you! You can now walk in the height without any limits." + Convert.ToChar(2));
                goto Label_271E;

            case "cleanhand":
                if (!this._clean)
                {
                    goto Label_073B;
                }
                using (client = Eucalypt.dbManager.GetClient())
                {
                    client.runQuery("DELETE FROM furniture WHERE ownerid = '" + this.userID + "' AND roomid = '0'");
                }
                this.refreshHand("update");
                this._clean = false;
                goto Label_271E;

            case "blue":
                if (this._Rank >= 1)
                {
                    goto Label_07D1;
                }
                goto Label_271E;

            case "red":
                if (this._Rank >= 1)
                {
                    goto Label_0818;
                }
                goto Label_271E;

            case "pink":
                if (this._Rank >= 1)
                {
                    goto Label_085F;
                }
                goto Label_271E;

            case "green":
                if (this._Rank >= 1)
                {
                    goto Label_08A6;
                }
                goto Label_271E;

            case "groupbadge":
                if (rankManager.containsRight(this, "fuse_moderator_access", this.userID))
                {
                    goto Label_08F6;
                }
                return false;

            case "server":
                this.sendData(string.Concat(new object[] { "BKServer Information \rServer Time: ", DateTime.Now.ToString(), " (GMT)\r\r\rEmulator: Babbo Emulator by Makemake und Nlvr\rBuild: 1.0.7.1 (06/04/2010)\rDCR Support:  r36", Convert.ToChar(2) }));
                goto Label_271E;

            case "spec":
                this.sendData(string.Concat(new object[] { "BKServer System Spec  \rOSVersion: ", Environment.OSVersion, "\rProzessor: ", Environment.ProcessorCount, "\rMaschinenname: ", Environment.MachineName, "\r", Convert.ToChar(2) }));
                goto Label_271E;

            case "reverse":
                if (this._Rank >= 1)
                {
                    goto Label_0AF7;
                }
                goto Label_271E;

            case "startwork":
                if (this._Rank > 1)
                {
                    this._Figure = "hd-207-3.sh-290-110.lg-285-110.wa-2005-.ch-809-110.ca-1811-.ha-1013-110.ea-1404-110.fa-1201-.hr-115-31";
                }
                this._Mission = "Police Officer";
                this.refreshAppearance(false, true, true);
                goto Label_271E;

            case "whosonline":
                this.sendData(userManager.generateWhosOnline(rankManager.containsRight(this, "fuse_administrator_access", this.userID)));
                goto Label_271E;

            case "credits":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_0B8D;
                }
                this.sendData("BKYou do not have the required rank to use this command. ");
                return false;

            case "masswave":
                hashtable = (Hashtable) userManager._Users.Clone();
                using (enumerator = hashtable.Values.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        current = (virtualUser) enumerator.Current;
                        current.statusManager.removeStatus("dance");
                        current.statusManager.handleStatus("wave", "", Config.Statuses_Wave_waveDuration);
                    }
                }
                goto Label_271E;

            case "massdance":
                hashtable = (Hashtable) userManager._Users.Clone();
                using (enumerator = hashtable.Values.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        current = (virtualUser) enumerator.Current;
                        current.statusManager.addStatus("dance", "");
                        current.statusManager.Refresh();
                    }
                }
                goto Label_271E;

            case "givebadge":
            {
                string str4 = Text.Split(new char[] { ' ' })[2];
                if (this._Rank > 6)
                {
                    user3 = userManager.getUser(Text.Split(new char[] { ' ' })[1]);
                    using (client = Eucalypt.dbManager.GetClient())
                    {
                        client.runQuery(string.Concat(new object[] { "INSERT INTO users_badges (userid, badgeid, iscurrent) VALUES ('", user3.userID, "', '", str4, "', '0')" }));
                    }
                    user3.refreshBadges();
                }
                goto Label_271E;
            }
            case "stack_rugs":
                if (this._stackRugs)
                {
                    goto Label_0EE2;
                }
                this._stackRugs = true;
                this.sendData("BKStacking rugs has been enabled for you! You can now stack rugs by place rugs over the rugs." + Convert.ToChar(2));
                goto Label_271E;

            case "pickall":
                using (client = Eucalypt.dbManager.GetClient())
                {
                    int num7 = client.getInt("SELECT id FROM users WHERE id = '" + this._isOwner + "'");
                }
                if (this._isOwner)
                {
                    using (client = Eucalypt.dbManager.GetClient())
                    {
                        client.runQuery("UPDATE furniture SET roomid = 0 WHERE roomid = '" + this.Room.roomID + "'");
                    }
                    this.Room.sendData("DBO\r");
                }
                if (!this._isOwner)
                {
                    using (client = Eucalypt.dbManager.GetClient())
                    {
                        this.sendData("BK\x00bfpWas tust du da ??? Moebel klauen verboten !!!" + Convert.ToChar(2));
                    }
                }
                goto Label_271E;

            case "globalbadge":
                if (rankManager.containsRight(this, "fuse_moderator_access", this.userID))
                {
                    goto Label_102A;
                }
                return false;

            case "roombadge":
                if (rankManager.containsRight(this, "fuse_moderator_access", this.userID))
                {
                    goto Label_1177;
                }
                return false;

            case "brb":
                if (this.brbLooper == null)
                {
                    start = new ThreadStart(this.showBrb);
                    this.brbLooper = new Thread(start);
                    this.brbLooper.Priority = ThreadPriority.Lowest;
                    this.brbLooper.Start();
                }
                goto Label_271E;

            case "afk":
                if (this.brbLooper == null)
                {
                    start = new ThreadStart(this.showBrb);
                    this.brbLooper = new Thread(start);
                    this.brbLooper.Priority = ThreadPriority.Lowest;
                    this.brbLooper.Start();
                }
                goto Label_271E;

            case "back":
                if (this.brbLooper != null)
                {
                    this.brbLooper.Abort();
                    this.brbLooper = null;
                    this.Room.sendShout(this.roomUser, "\n\n Ich bin wieder da!\n\n                                ");
                }
                goto Label_271E;

            case "roomid":
                this.sendData(string.Concat(new object[] { "BKRoom ID: ", this._roomID, " :)", Convert.ToChar(2) }));
                goto Label_271E;

            case "masstalk":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_1399;
                }
                return false;

            case "alert":
                if (rankManager.containsRight(this, "fuse_alert", this.userID))
                {
                    goto Label_1438;
                }
                return false;

            case "roomalert":
                if (rankManager.containsRight(this, "fuse_room_alert", this.userID))
                {
                    goto Label_14E0;
                }
                return false;

            case "kick":
                if (rankManager.containsRight(this, "fuse_kick", this.userID))
                {
                    goto Label_1557;
                }
                return false;

            case "roomkick":
                if (rankManager.containsRight(this, "fuse_room_kick", this.userID))
                {
                    goto Label_1656;
                }
                return false;

            case "shutup":
                if (rankManager.containsRight(this, "fuse_mute", this.userID))
                {
                    goto Label_16E3;
                }
                return false;

            case "unmute":
                if (rankManager.containsRight(this, "fuse_mute", this.userID))
                {
                    goto Label_180B;
                }
                return false;

            case "roomshutup":
                if (rankManager.containsRight(this, "fuse_room_mute", this.userID))
                {
                    goto Label_1908;
                }
                return false;

            case "roomunmute":
                if (rankManager.containsRight(this, "fuse_room_mute", this.userID))
                {
                    goto Label_1995;
                }
                return false;

            case "ban":
                if (rankManager.containsRight(this, "fuse_ban", this.userID))
                {
                    goto Label_1A1A;
                }
                return false;

            case "superban":
                if (rankManager.containsRight(this, "fuse_superban", this.userID))
                {
                    goto Label_1C3F;
                }
                return false;

            case "ha":
            case "hw":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_1E68;
                }
                return false;

            case "offline":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_1EFC;
                }
                return false;

            case "ra":
            case "intern":
                if (rankManager.containsRight(this, "fuse_alert", this.userID))
                {
                    goto Label_1F6C;
                }
                return false;

            case "cleanroom":
                using (client = Eucalypt.dbManager.GetClient())
                {
                    if (!rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                    {
                        return false;
                    }
                    client.runQuery("DELETE FROM furniture WHERE roomid = '" + this.Room.roomID + "'");
                    this.Room.sendData("DBO\r");
                    staffManager.addStaffMessage("cleanroom", this.userID, 0, "Cleaned room " + this.Room.roomID.ToString(), "");
                }
                goto Label_271E;

            case "wheres":
                if (rankManager.containsRight(this, "fuse_moderator_access", this.userID))
                {
                    goto Label_20BB;
                }
                return false;

            case "teleport":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_2269;
                }
                return false;

            case "warp":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_22B3;
                }
                return false;

            case "spy":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_2330;
                }
                return false;

            case "pixels":
                if (rankManager.containsRight(this, "fuse_moderator_access", this.userID))
                {
                    goto Label_236C;
                }
                return false;

            case "userinfo":
                if (rankManager.containsRight(this, "fuse_moderator_access", this.userID))
                {
                    goto Label_2435;
                }
                return false;

            case "cords":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_2489;
                }
                return false;

            case "globalcredits":
                if (rankManager.containsRight(this, "fuse_moderator_access", this.userID))
                {
                    goto Label_252B;
                }
                return false;

            case "globalfurni":
                if (rankManager.containsRight(this, "fuse_administrator_access", this.userID))
                {
                    goto Label_25F6;
                }
                return false;

            default:
                return false;
        }
        this.sendData("BKModeratoren Kommandos:\r:alert <User> <Nachricht>\r:roomalert <Nachricht>\r:kick <User> <Nachricht>\r:roomkick <Nachricht>\r:shutup <User> <Nachricht>\r:unmute <User>\r:pixels \r:no_height_limits \r:ban <User> <Stunden> <Grund>\r:superban <User> <Stunden> <Grund>\r:ra <Nachricht>\r\rAdministratoren Kommandos:\r:ha <Nachricht>\r:roombadge <Badge> \r:globalbadge <Badge> \r:roomshutup <Nachricht>\r:naked \r:roomunmute\r:offline <Minuten>\r:teleport <on/off>\r:warp X Y\r:userinfo <User> \r:spy \r:globalcredits <Taleranzahl> \r:massdance \r:masswave \r:masstalk \r:credis <Name> <Taleranzahl> \r:givebadge <Name> <badge> \r:nakedis <Name> \r" + Convert.ToChar(2));
        goto Label_271E;
    Label_0576:
        str = s[1];
        string str2 = s[1];
        virtualUser user = userManager.getUser(userManager.getUserID(str));
        using (client = Eucalypt.dbManager.GetClient())
        {
            using (enumerator = userManager._Users.Values.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    current = (virtualUser) enumerator.Current;
                    num2 = 0;
                    while (num2 <= int.Parse(str2))
                    {
                        client.runQuery("INSERT INTO furniture(tid,ownerid,roomid) VALUES (" + s[1] + "," + str + ",0)");
                        num2++;
                    }
                    this.refreshHand("update");
                }
            }
        }
        goto Label_271E;
    Label_06A7:
        this._noHeightLimit = false;
        this.sendData("BKThe height limit has been enabled for you! You can not walk in the height without any limits anymore." + Convert.ToChar(2));
        goto Label_271E;
    Label_073B:;
        this.sendData(string.Concat(new object[] { "BKTEST If you want to clear your whole hand please type the command again,", Convert.ToChar(13), "this command will remove every item from your inventory.", Convert.ToChar(13), Convert.ToChar(13), "WARNING: You are unable to restore or cancel the process!", Convert.ToChar(2) }));
        this._clean = true;
        goto Label_271E;
    Label_07D1:
        this._Figure = "hr-828-60.hd-180-1.ch-210-105.lg-280-105.sh-290-105";
        this.refreshAppearance(false, true, true);
        this._Mission = "Blaues Team!";
        this.refreshAppearance(false, true, true);
        goto Label_271E;
    Label_0818:
        this._Figure = "hr-828-59.hd-180-1.ch-210-96.lg-280-96.sh-290-95";
        this.refreshAppearance(false, true, true);
        this._Mission = "Rotes Team!";
        this.refreshAppearance(false, true, true);
        goto Label_271E;
    Label_085F:
        this._Figure = "hr-828-54.hd-180-1.ch-210-97.lg-280-97.sh-290-97";
        this.refreshAppearance(false, true, true);
        this._Mission = "Pinkes Team!";
        this.refreshAppearance(false, true, true);
        goto Label_271E;
    Label_08A6:
        this._Figure = "hr-828-51.hd-180-1.ch-210-101.lg-280-101.sh-290-101";
        this.refreshAppearance(false, true, true);
        this._Mission = "Gruenes Team!";
        this.refreshAppearance(false, true, true);
        goto Label_271E;
    Label_08F6:
        num3 = int.Parse(s[1]);
        string str3 = s[2];
        using (client = Eucalypt.dbManager.GetClient())
        {
            table = client.getTable("SELECT userid FROM groups_memberships WHERE groupid = '" + num3 + "' AND is_pending = '0'");
            foreach (DataRow row in table.Rows)
            {
                current = userManager.getUser(int.Parse(row["userid"].ToString()));
                client.runQuery("INSERT INTO users_badges(userid, badgeid) VALUES('" + row["userid"].ToString() + "', '" + str3 + "')");
                try
                {
                    current.refreshBadges();
                }
                catch
                {
                }
            }
        }
        goto Label_271E;
    Label_0AF7:
        this.refreshAppearance(true, true, true);
        goto Label_271E;
    Label_0B8D:
        current = userManager.getUser(s[1]);
        user3 = userManager.getUser(s[1]);
        long num4 = int.Parse(s[2]);
        long num5 = 0L;
        using (client = Eucalypt.dbManager.GetClient())
        {
            num5 = client.getInt("SELECT credits FROM users WHERE name = '" + s[1] + "'");
        }
        long num6 = num5 + num4;
        using (client = Eucalypt.dbManager.GetClient())
        {
            client.runQuery(string.Concat(new object[] { "UPDATE users SET credits = ", num6, " WHERE name = '", s[1], "'" }));
        }
        current.refreshValueables(true, false);
        user3.sendData("BKYou have recieved " + num4 + " credits from Hotel Staff");
        this.sendData(string.Concat(new object[] { "BKThe user ", s[1], " has received ", num4, " credits" }));
        goto Label_271E;
    Label_0EE2:
        this._stackRugs = false;
        this.sendData("BKStacking rugs has been disabled for you! You can not stack rugs anymore." + Convert.ToChar(2));
        goto Label_271E;
    Label_102A:
        str3 = s[1];
        using (client = Eucalypt.dbManager.GetClient())
        {
            table = client.getTable("SELECT id FROM users");
            foreach (DataRow row in table.Rows)
            {
                client.runQuery("INSERT INTO users_badges(userid, badgeid) VALUES('" + row["id"].ToString() + "', '" + str3 + "')");
            }
        }
        foreach (virtualUser user2 in userManager._Users.Values)
        {
            user2.refreshBadges();
        }
        goto Label_271E;
    Label_1177:
        str3 = s[1];
        using (client = Eucalypt.dbManager.GetClient())
        {
            foreach (virtualRoomUser user4 in this.Room.Users)
            {
                client.runQuery(string.Concat(new object[] { "INSERT INTO users_badges(userid, badgeid) VALUES('", user4.User.userID, "', '", str3, "')" }));
                user4.User.refreshBadges();
            }
        }
        goto Label_271E;
    Label_1399:
        hashtable = (Hashtable) userManager._Users.Clone();
        foreach (virtualUser user2 in hashtable.Values)
        {
            user2.Room.sendShout(user2.roomUser, Text.Substring(8));
        }
        goto Label_271E;
    Label_1438:
        user3 = userManager.getUser(userManager.getUserID(s[1]));
        user3.sendData("B!" + stringManager.wrapParameters(s, 2) + Convert.ToChar(2));
        this.sendData("BK" + stringManager.getString("scommand_success") + Convert.ToChar(2));
        staffManager.addStaffMessage("alert", this.userID, user3.userID, s[2], "");
        goto Label_271E;
    Label_14E0:
        str5 = Text.Substring(10);
        this.Room.sendData("B!" + str5 + Convert.ToChar(2));
        staffManager.addStaffMessage("ralert", this.userID, this.Room.roomID, str5, "");
        goto Label_271E;
    Label_1557:
        user3 = userManager.getUser(userManager.getUserID(s[1]));
        if (user3._Rank < this._Rank)
        {
            str5 = "";
            if (s.Length > 2)
            {
                str5 = stringManager.wrapParameters(s, 2);
            }
            user3.Room.removeUser(user3.roomUser.roomUID, true, str5);
            this.sendData("BK" + stringManager.getString("scommand_success") + Convert.ToChar(2));
            staffManager.addStaffMessage("kick", this.userID, user3.userID, str5, "");
        }
        else
        {
            this.sendData("BK" + stringManager.getString("scommand_failed") + Convert.ToChar(2));
        }
        goto Label_271E;
    Label_1656:
        str5 = stringManager.wrapParameters(s, 1);
        this.Room.kickUsers(this._Rank, str5);
        this.sendData("BK" + stringManager.getString("scommand_success") + Convert.ToChar(2));
        staffManager.addStaffMessage("rkick", this.userID, this.Room.roomID, str5, "");
        goto Label_271E;
    Label_16E3:
        user3 = userManager.getUser(userManager.getUserID(s[1]));
        if (!((user3._Rank >= this._Rank) || user3._isMuted))
        {
            str5 = stringManager.wrapParameters(s, 2);
            user3._isMuted = true;
            user3.sendData(string.Concat(new object[] { "BK", stringManager.getString("scommand_muted"), "\r", str5, Convert.ToChar(2) }));
            this.sendData("BK" + stringManager.getString("scommand_success") + Convert.ToChar(2));
            staffManager.addStaffMessage("mute", this.userID, user3.userID, str5, "");
        }
        else
        {
            this.sendData("BK" + stringManager.getString("scommand_failed") + Convert.ToChar(2));
        }
        goto Label_271E;
    Label_180B:
        user3 = userManager.getUser(userManager.getUserID(s[1]));
        if ((user3._Rank < this._Rank) && user3._isMuted)
        {
            user3._isMuted = false;
            user3.sendData("BK" + stringManager.getString("scommand_unmuted") + Convert.ToChar(2));
            this.sendData("BK" + stringManager.getString("scommand_success") + Convert.ToChar(2));
            staffManager.addStaffMessage("unmute", this.userID, user3.userID, "", "");
        }
        else
        {
            this.sendData("BK" + stringManager.getString("scommand_failed") + Convert.ToChar(2));
        }
        goto Label_271E;
    Label_1908:
        str5 = stringManager.wrapParameters(s, 1);
        this.Room.muteUsers(this._Rank, str5);
        this.sendData("BK" + stringManager.getString("scommand_success") + Convert.ToChar(2));
        staffManager.addStaffMessage("rmute", this.userID, this.Room.roomID, str5, "");
        goto Label_271E;
    Label_1995:
        this.Room.unmuteUsers(this._Rank);
        this.sendData("BK" + stringManager.getString("scommand_success") + Convert.ToChar(2));
        staffManager.addStaffMessage("runmute", this.userID, this.Room.roomID, "", "");
        goto Label_271E;
    Label_1A1A:
        using (client = Eucalypt.dbManager.GetClient())
        {
            client.AddParamWithValue("name", s[1]);
            row = client.getRow("SELECT id,rank FROM users WHERE name = @name");
        }
        if (row.Table.Rows.Count == 0)
        {
            this.sendData(string.Concat(new object[] { "BK", stringManager.getString("modtool_actionfailed"), "\r", stringManager.getString("modtool_usernotfound"), Convert.ToChar(2) }));
        }
        else if (Convert.ToByte(row["rank"]) > this._Rank)
        {
            this.sendData(string.Concat(new object[] { "BK", stringManager.getString("modtool_actionfailed"), "\r", stringManager.getString("modtool_rankerror"), Convert.ToChar(2) }));
        }
        else
        {
            num8 = int.Parse(s[2]);
            str6 = stringManager.wrapParameters(s, 3);
            if ((num8 == 0) || (str6 == ""))
            {
                this.sendData("BK" + stringManager.getString("scommand_failed") + Convert.ToChar(2));
            }
            else
            {
                staffManager.addStaffMessage("ban", this.userID, Convert.ToInt32(row["id"]), str6, "");
                userManager.setBan(Convert.ToInt32(row["id"]), num8, str6);
                this.sendData("BK" + userManager.generateBanReport(Convert.ToInt32(row["id"])) + Convert.ToChar(2));
            }
        }
        goto Label_271E;
    Label_1C3F:
        using (client = Eucalypt.dbManager.GetClient())
        {
            client.AddParamWithValue("name", s[1]);
            row = client.getRow("SELECT id,rank,ipaddress_last FROM users WHERE name = @name");
        }
        if (row.Table.Rows.Count == 0)
        {
            this.sendData(string.Concat(new object[] { "BK", stringManager.getString("modtool_actionfailed"), "\r", stringManager.getString("modtool_usernotfound"), Convert.ToChar(2) }));
        }
        else if (Convert.ToByte(row["rank"]) > this._Rank)
        {
            this.sendData(string.Concat(new object[] { "BK", stringManager.getString("modtool_actionfailed"), "\r", stringManager.getString("modtool_rankerror"), Convert.ToChar(2) }));
        }
        else
        {
            num8 = int.Parse(s[2]);
            str6 = stringManager.wrapParameters(s, 3);
            if ((num8 == 0) || (str6 == ""))
            {
                this.sendData("BK" + stringManager.getString("scommand_failed") + Convert.ToChar(2));
            }
            else
            {
                string iP = Convert.ToString(row["ipaddress_last"]);
                staffManager.addStaffMessage("superban", this.userID, Convert.ToInt32(row["id"]), str6, "");
                userManager.setBan(Convert.ToInt32(row["id"]), num8, str6);
                this.sendData("BK" + userManager.generateBanReport(iP) + Convert.ToChar(2));
            }
        }
        goto Label_271E;
    Label_1E68:
        str5 = Text.Substring(3);
        userManager.sendData(string.Concat(new object[] { "BK", stringManager.getString("scommand_hotelalert"), "\r", str5, Convert.ToChar(2) }));
        staffManager.addStaffMessage("halert", this.userID, 0, str5, "");
        goto Label_271E;
    Label_1EFC:
        num9 = int.Parse(s[1]);
        userManager.sendData("Dc" + Encoding.encodeVL64(num9));
        staffManager.addStaffMessage("offline", this.userID, 0, "mm=" + num9, "");
        goto Label_271E;
    Label_1F6C:
        str5 = Text.Substring(3);
        userManager.sendToRank(this._Rank, false, string.Concat(new object[] { "BK", stringManager.getString("scommand_rankalert"), "\r", str5, Convert.ToChar(2) }));
        staffManager.addStaffMessage("rankalert", this.userID, this._Rank, str5, "");
        goto Label_271E;
    Label_20BB:
        str8 = s[1];
        virtualUser user5 = userManager.getUser(userManager.getUserID(str8));
        if (user5 == null)
        {
            this.sendData("BKERROR #1: \rDer Babbo ist offline oder exestiert nicht." + Convert.ToChar(2));
        }
        int num10 = user5._roomID;
        if (num10 != 0)
        {
            string str9;
            string str10;
            string str11;
            using (client = Eucalypt.dbManager.GetClient())
            {
                str10 = client.getString("SELECT name FROM rooms WHERE id = '" + num10 + "'");
                str9 = client.getString("SELECT owner FROM rooms WHERE id = '" + num10 + "'");
                str11 = client.getString("SELECT model FROM rooms WHERE id = '" + num10 + "'");
            }
            this.sendData(string.Concat(new object[] { "BKDer Babbo ", s[1], " ist im folgendem Raum:  \rRaumname: ", str10, " \rRaummodel: ", str11, " \rRaumbesitzer: ", str9, " \r\r", Convert.ToChar(2) }));
        }
        else
        {
            this.sendData(string.Concat(new object[] { "BKERROR #2: \r Der Babbo ", s[1], " ist auf dem Hotelview  \r", Convert.ToChar(2) }));
        }
        goto Label_271E;
    Label_2269:
        this.roomUser.SPECIAL_TELEPORTABLE = !this.roomUser.SPECIAL_TELEPORTABLE;
        this.refreshAppearance(false, false, true);
        goto Label_271E;
    Label_22B3:
        num11 = int.Parse(s[1]);
        int num12 = int.Parse(s[2]);
        this.roomUser.X = num11;
        this.roomUser.Y = num12;
        this.roomUser.goalX = -1;
        this.Room.Refresh(this.roomUser);
        this.refreshAppearance(false, false, true);
        goto Label_271E;
    Label_2330:
        this._Figure = "hd-0-0.sh-0-.lg-0-.ch-0-.hr-0-0";
        this.refreshAppearance(false, true, true);
        goto Label_271E;
    Label_236C:
        this._Pixels += 0x1388;
        using (client = Eucalypt.dbManager.GetClient())
        {
            client.runQuery(string.Concat(new object[] { "UPDATE users SET pixels = '", this._Pixels, "' WHERE id = '", this.userID, "' LIMIT 1" }));
        }
        this.sendData("Fv" + Encoding.encodeVL64(this._Pixels) + "I");
        goto Label_271E;
    Label_2435:
        this.sendData("BK" + userManager.generateUserInfo(userManager.getUserID(s[1]), this._Rank) + Convert.ToChar(2));
        goto Label_271E;
    Label_2489:;
        this.sendData(string.Concat(new object[] { "BKX: ", this.roomUser.X, "\rY: ", this.roomUser.Y, "\rH: ", this.roomUser.H, Convert.ToChar(2) }));
        goto Label_271E;
    Label_252B:
        num4 = int.Parse(s[1]);
        using (client = Eucalypt.dbManager.GetClient())
        {
            client.runQuery("UPDATE users SET credits = credits + '" + num4 + "'");
        }
        foreach (virtualUser user2 in userManager._Users.Values)
        {
            user2.refreshValueables(true, false);
        }
        goto Label_271E;
    Label_25F6:
        str12 = s[2];
        using (client = Eucalypt.dbManager.GetClient())
        {
            foreach (virtualUser user2 in userManager._Users.Values)
            {
                for (num2 = 0; num2 <= int.Parse(str12); num2++)
                {
                    client.runQuery(string.Concat(new object[] { "INSERT INTO furniture(tid,ownerid,roomid) VALUES (", s[1], ",", user2.userID, ",0)" }));
                }
                this.refreshHand("update");
            }
        }
    }
    catch
    {
        this.sendData("BK" + stringManager.getString("scommand_failed") + Convert.ToChar(2));
    }
Label_271E:
    return true;
}
 
Last edited:
SOURCE:


Just a babbo edit (djalexxstyles holo), wouldnt call it 2 months of work.
 
Status
Not open for further replies.
Back