[SOURCE] BcStorm - The whole caboodle.

Page 20 of 20 FirstFirst ... 10121314151617181920
Results 476 to 485 of 485
  1. #476
    Enthusiast Cloudflare is offline
    MemberRank
    Jun 2012 Join Date
    43Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    Quote Originally Posted by Joshuwar View Post
    Wordfilter fix!:

    Go to core -> LanguageLocale.cs and replace the entire thing with this:

    Code:
    namespace Butterfly.Core
    {
        using Butterfly;
        using Database_Manager.Database.Session_Details.Interfaces;
        using System;
        using System.Collections.Generic;
        using System.Data;
        using System.IO;
        using System.Windows.Forms;
        using Database_Manager.Database;
    
        internal class LanguageLocale
        {
            private static List<string> swearwords;
            private static Dictionary<string, string> values;
            internal static string welcomeAlert;
            internal static bool welcomeAlertEnabled;
    
            internal static string FilterSwearwords(string original)
            {
                foreach (string str in swearwords)
                {
                    original = ReplaceEx(original, str, "bobba");
                }
                return original;
            }
    
            internal static string GetValue(string value)
            {
                if (!values.ContainsKey(value))
                {
                    throw new MissingLocaleException("Missing language locale for [" + value + "]");
                }
                return values[value];
            }
    
            internal static void Init()
            {
                values = IniReader.ReadFile(Path.Combine(Application.StartupPath, "System/locale.ini"));
                InitWelcomeMessage();
            }
    
            internal static void InitSwearWord()
            {
                DataTable table;
                swearwords = new List<string>();
                using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
                {
                    adapter.setQuery("SELECT word FROM room_swearword_filter");
                    table = adapter.getTable();
                }
                foreach (DataRow row in table.Rows)
                {
                    string item = (string) row[0];
                    swearwords.Add(item);
                }
            }
    
            private static void InitWelcomeMessage()
            {
                welcomeAlertEnabled = IniReader.ReadFile(Path.Combine(Application.StartupPath, "System/welcome_config.ini"))["welcome.alert.enabled"] == "true";
                if (welcomeAlertEnabled)
                {
                    welcomeAlert = File.ReadAllText(Path.Combine(Application.StartupPath, "System/welcome_message.ini"));
                }
            }
    
            private static string ReplaceEx(string original, string pattern, string replacement)
            {
                int count, position0, position1;
    
                count = position0 = position1 = 0;
    
                string upperString = original.ToUpper();
                string upperPattern = pattern.ToUpper();
                int inc = (original.Length / pattern.Length) * (replacement.Length - pattern.Length);
    
                char[] chars = new char[original.Length + Math.Max(0, inc)];
    
                while ((position1 = upperString.IndexOf(upperPattern, position0)) != -1)
                {
                    for (int i = position0; i < position1; ++i)
                        chars[count++] = original[i];
                    for (int i = 0; i < replacement.Length; ++i)
                        chars[count++] = replacement[i];
                    position0 = position1 + pattern.Length;
                }
    
                if (position0 == 0) return original;
                
                for (int i = position0; i < original.Length; ++i)
                    chars[count++] = original[i];
                return new string(chars, 0, count);
            }
        }
    }
    :)

    This doesn't work?

  2. #477
    1 + 3 + 3 = 7 EvilCoder is offline
    MemberRank
    Jul 2009 Join Date
    /home/mvdworpLocation
    334Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    Quote Originally Posted by Cloudflare View Post
    This doesn't work?
    Did you import anything in your database at table room_swearword_filter =p?

  3. #478
    Account Upgraded | Title Enabled! =dj.matias= is offline
    MemberRank
    Apr 2008 Join Date
    FinlandLocation
    381Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    This emulator works on Ubuntu and maybe others linuxs... Install this: Home - PlayOnLinux - Run your Windows applications on Linux easily! and run emulator exe. Works :)

  4. #479
    Apprentice erik k is offline
    MemberRank
    Apr 2010 Join Date
    9Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    Quote Originally Posted by prodigy007 View Post
    nvm
    Just one issue I have.
    I can create, login, and update my rank to 7. Then I try and log into the server, get thrown out if my rank isn't 1.
    Ideas?
    Got the same problem. Anyone??

  5. #480
    I use to love it more! Jmandupree is offline
    MemberRank
    Oct 2009 Join Date
    /ragezone/homeLocation
    996Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    Thank's gonna use this on My hotel.. got it working 100% :)

  6. #481
    Apprentice TheDeveloper is offline
    MemberRank
    Apr 2013 Join Date
    23Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    I'm returning to the Retro Community after leaving 2 years ago. This looks like a good place to start!

  7. #482
    Member Gwoxie is offline
    MemberRank
    May 2012 Join Date
    The NetherlandsLocation
    80Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    Client doesn't load fully

  8. #483
    Account Upgraded | Title Enabled! KyleeIsProzZ is offline
    MemberRank
    Oct 2012 Join Date
    C:Location
    548Posts

    [SOURCE] BcStorm - The whole caboodle.

    Quote Originally Posted by Gwoxie View Post
    Client doesn't load fully
    Use bcstorm by leenster march 3rd edition.

  9. #484
    idk what to put here Joseph is offline
    MemberRank
    Oct 2007 Join Date
    CanehdaLocation
    1,317Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    Quote Originally Posted by Gwoxie View Post
    Client doesn't load fully
    You're setting it up wrong then.

  10. #485
    Member Pkamara is offline
    MemberRank
    Jun 2012 Join Date
    In your houseLocation
    57Posts

    Re: [SOURCE] BcStorm - The whole caboodle.

    Admin can't go into hotel only users!



Advertisement