[BUTTERFLY] SAVE/LOAD Volume Fix
Here a small Fix from me to you ;)
This is for Save and Load the Volume in Butterfly :)
Authenticator.cs:
Code:
under:
int achiecvementPoints = (int)dRow["achievement_points"];
do:
int volume = (int)dRow["volume"];
from:
return new Habbo(id, username, facebook, rank, motto, look, gender, credits, activityPoints, activityPointsLastUpdate, isMuted, homeRoom, respect, dailyRespect, dailyPetRespect, mtantPenalty, blockFriends, questID, questProgress, group, achiecvementPoints, lastonline, crystals);
to:
return new Habbo(id, username, facebook, rank, motto, look, gender, credits, activityPoints, activityPointsLastUpdate, isMuted, homeRoom, respect, dailyRespect, dailyPetRespect, mtantPenalty, blockFriends, questID, questProgress, group, achiecvementPoints, lastonline, volume, crystals);
Habbo.cs
Code:
under:
internal int buyItemLoop = 1;
do:
internal int volume;
search for:
internal Habbo(UInt32 Id, string Username, string FaceBook,
uint Rank, string Motto, string Look, string Gender, Int32 Credits,
edit to:
internal Habbo(UInt32 Id, string Username, string FaceBook,
uint Rank, string Motto, string Look, string Gender, Int32 Credits,
Int32 ActivityPoints, Double LastActivityPointsUpdate, bool Muted,
UInt32 HomeRoom, Int32 Respect, Int32 DailyRespectPoints, Int32 DailyPetRespectPoints,
bool MutantPenalty, bool HasFriendRequestsDisabled, uint currentQuestID, int currentQuestProgress, DataRow groupRow, int achievementPoints,
string LastOnline, int volume, Int32 Crystals)
{
under:
this.Look = ButterflyEnvironment.FilterFigure(Look.ToLower());
do:
this.volume = volume;
Users.cs
Code:
Search for:
GetResponse().Init(Outgoing.AchievementPoints);
GetResponse().AppendInt32(Session.GetHabbo().AchievementPoints);
SendResponse();
add under this:
GetResponse().Init(89);
GetResponse().AppendInt32(Session.GetHabbo().volume);
SendResponse();
Search for:
internal void GetBalance()
{
add under this function:
internal void SaveVolume()
{
int Volume = Request.PopWiredInt32();
using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setQuery("UPDATE users SET volume = @volume WHERE id = '" + Session.GetHabbo().Id + "' LIMIT 1");
dbClient.addParameter("volume", Volume);
dbClient.runQuery();
}
}
SharedPacketLib.cs
Code:
Add:
internal static void SaveVolume(GameClientMessageHandler handler)
{
handler.SaveVolume();
}
StaticClientMessageHandler.cs
Code:
Add:
handlers.Add(2623, new StaticRequestHandler(SharedPacketLib.SaveVolume));
Credits: Mininova (ME)
Re: [BUTTERFLY] SAVE/LOAD Volume Fix
This has already been released... So this is not your fix.
http://forum.ragezone.com/f353/uber-...-100-a-853477/
Works fine on every emulator that thread. Fixxed that also for mine using that one.
Creating this thread, setting the credits to yourself is nothing more then selfish and ego.
But thanks for making a new thread.. Some people are not known with "searching" trough the forum..
BTW! That other thread is way more smaller and easyer. Maybe you should copy a little bit of that. IT also has the packethandler for Loading settings.
Re: [BUTTERFLY] SAVE/LOAD Volume Fix
First learn to Read ;)
This is for the new Crypto + Butterfly ;)
Not Uber and R63A :)
Re: [BUTTERFLY] SAVE/LOAD Volume Fix
Re: [BUTTERFLY] SAVE/LOAD Volume Fix
Looks good. I'll test this out shortly!
Re: [BUTTERFLY] SAVE/LOAD Volume Fix
Thanks for this, Any SQL? and if you don't mind release BOT's buyable ?:blush:
Re: [BUTTERFLY] SAVE/LOAD Volume Fix
mhmmmm sound settings..
http://i.imgur.com/eNahi.png
but nice work
:)
Re: [BUTTERFLY] SAVE/LOAD Volume Fix
not lack sql for column volume ?
Edit, yes, yes lack
ALTER TABLE `users` ADD COLUMN `volume` int(3) NOT NULL DEFAULT 100;
add in your db
Re: [BUTTERFLY] SAVE/LOAD Volume Fix
Quote:
Originally Posted by
=dj.matias=
I fixed this for my emulator few monts ago already. And i have bot's buyable 99% :)
Why are you going around "showing" off that emulator of yours, if you're not going to release it, why brag? Not the only person with it?
Quote:
Originally Posted by
tweeney
You as well :sleep: