Re: [SOURCE] BcStorm - The whole caboodle.
Which cms is running on Novahotel.org?
Re: [SOURCE] BcStorm - The whole caboodle.
Phoenix > Bcstorm DB.
Users table converter?
Re: [SOURCE] BcStorm - The whole caboodle.
anyone know why the icon for the stream thingy is not showing up? (used fiddler2 to locate a problem but nothing found!)
Re: [SOURCE] BcStorm - The whole caboodle.
Very good release brother, i will maybe use it :thumbup1:
Re: [SOURCE] BcStorm - The whole caboodle.
Any people is hacking my hotel and use commands like :masscredits :pixels, etc how to resolve?
Re: [SOURCE] BcStorm - The whole caboodle.
as download this version edited for you Leon
which is now in novahotel.org
Re: [SOURCE] BcStorm - The whole caboodle.
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?
Re: [SOURCE] BcStorm - The whole caboodle.
Quote:
Originally Posted by
Mininova
Diamonds ;):
Code:
Search for:
internal int ActivityPoints;
Add after:
internal int Crystals;
Search for:
internal Habbo(uint Id, string Username, string RealName, uint Rank, string Motto, string Look, string Gender, int Credits, int ActivityPoints, double LastActivityPointsUpdate, bool Muted, uint HomeRoom, int Respect, int DailyRespectPoints, int DailyPetRespectPoints, bool MutantPenalty, bool HasFriendRequestsDisabled, DataRow groupRow, int achievementPoints, string LastOnline, string quests, string queststates, bool canchangename, int favoriteGroup, bool PassedQuiz, int pointsOnline)
{
Edit to:
internal Habbo(uint Id, string Username, string RealName, uint Rank, string Motto, string Look, string Gender, int Credits, int ActivityPoints, int Crystals, double LastActivityPointsUpdate, bool Muted, uint HomeRoom, int Respect, int DailyRespectPoints, int DailyPetRespectPoints, bool MutantPenalty, bool HasFriendRequestsDisabled, DataRow groupRow, int achievementPoints, string LastOnline, string quests, string queststates, bool canchangename, int favoriteGroup, bool PassedQuiz, int pointsOnline)
{
Search for:
this.ActivityPoints = ActivityPoints;
Add after:
this.Crystals = Crystals;
Search for:
internal void UpdateActivityPointsBalance(int NotifAmount)
{
Edit Function to:
internal void UpdateActivityPointsBalance(int NotifAmount)
{
if (((this.mClient != null) && (this.mClient.GetMessageHandler() != null)) && (this.mClient.GetMessageHandler().GetResponse() != null))
{
this.mClient.GetMessageHandler().GetResponse().Init(Outgoing.ActivityPoints);
this.mClient.GetMessageHandler().GetResponse().AppendInt32(2);
this.mClient.GetMessageHandler().GetResponse().AppendInt32(0);
this.mClient.GetMessageHandler().GetResponse().AppendInt32(this.ActivityPoints);
this.mClient.GetMessageHandler().GetResponse().AppendInt32(105);
this.mClient.GetMessageHandler().GetResponse().AppendInt32(this.Crystals);
this.mClient.GetMessageHandler().SendResponse();
}
}
Search for:
return new Habbo(id, username, realName, rank, motto, look, gender, credits, activityPoints, lastActivityPointsUpdate, muted, homeRoom, respect, dailyRespectPoints, dailyPetRespectPoints, mutantPenalty, hasFriendRequestsDisabled, group, achievementPoints, lastOnline, quests, queststates, canchangename, favoriteGroup, passedQuiz, (int) dRow["points_online"]);
Edit to:
return new Habbo(id, username, realName, rank, motto, look, gender, credits, activityPoints, (int)dRow["crystals"], lastActivityPointsUpdate, muted, homeRoom, respect, dailyRespectPoints, dailyPetRespectPoints, mutantPenalty, hasFriendRequestsDisabled, group, achievementPoints, lastOnline, quests, queststates, canchangename, favoriteGroup, passedQuiz, (int) dRow["points_online"]);
Edit:
Now it works, it was 105 ;)
Where should i add it?
Re: [SOURCE] BcStorm - The whole caboodle.
Quote:
Originally Posted by
Joshuwar
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?
Re: [SOURCE] BcStorm - The whole caboodle.
Quote:
Originally Posted by
Cloudflare
This doesn't work?
Did you import anything in your database at table room_swearword_filter =p?
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 :)
Re: [SOURCE] BcStorm - The whole caboodle.
Quote:
Originally Posted by
prodigy007
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??
Re: [SOURCE] BcStorm - The whole caboodle.
Thank's gonna use this on My hotel.. got it working 100% :)