Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Well people... I've fixed two new things in Swift Emulator:
Mannequin
HabboWheel
I'll improve the Mannequin... For now remains fix when the save Mannequin Save the Name of Mannequin too !
More Later or tomorrow i post the Mannequin Fix :)
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
I think i have find 2 bug.
1. When you use actions/signs, and then goes afk it does use it automatic and make other players that have used actions/signs in the room use it without click it.
2. Room settings to walk trough users does not save.
Or maybe that's just me.
IAM NOT ASKING FOR HELP!
04-08-13
jales
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
It would be nice if every update made to the emulator you've put up for download as open source, and some codes did not work on mine.
Sorry my english, I'm Brazilian.
04-08-13
rafa95123
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by jales
It would be nice if every update made to the emulator you've put up for download as open source, and some codes did not work on mine.
Sorry my english, I'm Brazilian.
what codes don't work with you ?
04-08-13
Psherk
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by jales
It would be nice if every update made to the emulator you've put up for download as open source, and some codes did not work on mine.
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by rafa95123
Well people... I've fixed two new things in Swift Emulator:
Mannequin
HabboWheel
I'll improve the Mannequin... For now remains fix when the save Mannequin Save the Name of Mannequin too !
More Later or tomorrow i post the Mannequin Fix :)
using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { adapter.runFastQuery(string.Concat(new object[] { "UPDATE items SET base_id = '", row["item_id"], "' WHERE item_id = ", item.Id }));
adapter.setQuery(string.Concat(new object[] { "UPDATE items_extradata SET data = '" + row["extradata"] + "' WHERE item_id = " + item.Id })); adapter.addParameter("extradata", row["extradata"]); adapter.runQuery();
adapter.runFastQuery("DELETE FROM user_gifts WHERE gift_id = " + item.Id); }
string s = item.GetBaseItem().Type.ToString().ToLower(); string extraData = row["extradata"].ToString(); item.BaseItem = Convert.ToUInt32(row["item_id"]); item.refreshItem(); item.ExtraData = extraData; if (!room.GetRoomItemHandler().SetFloorItem(this.Session, item, item.GetX, item.GetY, item.Rot, true, false, true)) { this.Session.SendNotif("Failed to create your gift!"); } else { this.Response.Init(Outgoing.OpenGift); this.Response.AppendString(item2.Type.ToString()); this.Response.AppendInt32(item2.SpriteId); this.Response.AppendString(item2.Name); this.Response.AppendInt32(item.Id); this.Response.AppendString(s); this.Response.AppendBoolean(true); this.Response.AppendString(extraData); this.SendResponse(); } } else { room.GetRoomItemHandler().RemoveFurniture(this.Session, item.Id); using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { adapter.runFastQuery("DELETE FROM user_gifts WHERE gift_id = " + item.Id); } this.Session.GetMessageHandler().GetResponse().Init(Outgoing.SendPurchaseAlert); this.Session.GetMessageHandler().GetResponse().AppendInt32(1); int i = 2; if (item2.Type.ToString().ToLower().Equals("s")) { if (item2.InteractionType == InteractionType.pet) { i = 3; } else { i = 1; } } this.Session.GetMessageHandler().GetResponse().AppendInt32(i); List<UserItem> list = ButterflyEnvironment.GetGame().GetCatalog().DeliverItems(this.Session, item2, (int)row["amount"], (string)row["extradata"], 0, 0); this.Session.GetMessageHandler().GetResponse().AppendInt32(list.Count); foreach (UserItem item3 in list) { this.Session.GetMessageHandler().GetResponse().AppendInt32(item3.Id); } this.Session.GetMessageHandler().SendResponse(); this.Session.GetHabbo().GetInventoryComponent().UpdateItems(true); //this.Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary); //this.Session.GetMessageHandler().SendResponse(); } } } } this.Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary); this.Session.GetMessageHandler().SendResponse(); }
To enable the gift purchase, edit this:
In Incoming.cs,
Search by: Incoming.PurchaseGift = 0x0901
Replace by: Incoming.PurchaseGift = 0x0900
Sorry my english, i'm brazilian..
|
|
V
For the present don't bug stay in inventory and when placing it on the ground, do this:
In: GameClientMessageHandler.cs, Search by: internal void PlaceItem()
And, replace all void PlaceItem, by:
if (strArray[1].StartsWith(":")) { try { WallCoordinate wallCoord = new WallCoordinate(":" + str.Split(new char[] { ':' })[1]); item2 = new RoomItem(item.Id, pRoom.RoomId, item.BaseItem, item.ExtraData, wallCoord, pRoom, item.Group_data, item.RareId, item.placedBy); if (pRoom.GetRoomItemHandler().SetWallItem(this.Session, item2)) { this.Session.GetHabbo().GetInventoryComponent().RemoveItem(id, true); } } catch { } } else { try { int x = int.Parse(strArray[1]); int y = int.Parse(strArray[2]); int rot = int.Parse(strArray[3]); if (this.Session.GetHabbo().forceRot > -1) { rot = this.Session.GetHabbo().forceRot; } item2 = new RoomItem(item.Id, pRoom.RoomId, item.BaseItem, item.ExtraData, x, y, 0.0, rot, pRoom, item.Group_data, item.RareId, item.placedBy); if (pRoom.GetRoomItemHandler().SetFloorItem(this.Session, item2, x, y, rot, true, false, true)) { this.Session.GetHabbo().GetInventoryComponent().RemoveItem(id, true); } if (WiredUtillity.TypeIsWired(item.GetBaseItem().InteractionType)) { WiredSaver.HandleDefaultSave(item.Id, pRoom); } } catch (Exception ex) { Logging.LogCriticalException(ex.ToString()); } } } } this.Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary); this.Session.GetMessageHandler().SendResponse(); }
Done!
If you don't have table user_gifts, add USE MY USER_GIFTS TABLE:
PHP Code:
CREATE TABLE IF NOT EXISTS `user_gifts` ( `gift_id` int(10) NOT NULL AUTO_INCREMENT, `page_id` int(10) unsigned NOT NULL DEFAULT '5', `item_id` mediumint(10) NOT NULL, `extradata` varchar(50) NOT NULL DEFAULT '', `amount` int(11) NOT NULL DEFAULT '1', `target_name` varchar(50) NOT NULL, `by_userid` int(50) NOT NULL, `message` varchar(115) NOT NULL DEFAULT '', `ribbon` tinyint(1) NOT NULL DEFAULT '0', `color` tinyint(1) NOT NULL DEFAULT '0', `gift_sprite` int(10) NOT NULL, `show_sender` tinyint(4) NOT NULL DEFAULT '1', `rare_id` int(10) NOT NULL DEFAULT '0', `inventory_id` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`gift_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=300000 ;
Uffs, By Marlon Colhado? ♥
I noticed an error in my code and fixed it ..
to tidy up the falls, below:
In: Catalog.cs Click in "EDIT" -> Go to... and digit: 1144, press Ok.
Search for: if (IsGift)
And, replace all if by:
Simple, now will not fall over when buying gifts..
Like? :D
06-08-13
vicancer
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Marlon Colhado
I noticed an error in my code and fixed it ..
to tidy up the falls, below:
In: Catalog.cs Click in "EDIT" -> Go to... and digit: 1144, press Ok.
Search for: if (IsGift)
And, replace all if by:
Simple, now will not fall over when buying gifts..
Like? :D
works perfect, but if I send a gift to yourself, I have disconnection
07-08-13
albertwitwerts
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
When you moved the wired it would reset.
a little fix:
go to Messages/GameClientMessageHandler.cs and delete:
Code:
if (item.wiredHandler != null)
{
using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
item.wiredHandler.DeleteFromDatabase(adapter);
item.wiredHandler.Dispose();
room.GetWiredHandler().RemoveFurniture(item);
}
item.wiredHandler = null;
}
if (item.wiredCondition != null)
{
using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
item.wiredCondition.DeleteFromDatabase(adapter);
item.wiredCondition.Dispose();
room.GetWiredHandler().conditionHandler.ClearTile(item.Coordinate);
}
item.wiredCondition = null;
}
It is not a big difference, but the wired wouldn't reset when you moved it.
Now, the wired will reset when the room unloads, but he saves only the selected furni and not the settings.
I would fix this coming soon.
Sorry for my bad English, I'm Dutch.
07-08-13
KeineChance
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Maybe, can you fix the infobus questions?
07-08-13
rafa95123
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Hmm.. I'll try fix this to. :)
Sorry for not be updating the topic, is that my classes started and I'm short on time, but rest assured that I will continue helping the Forum with over fix. :)
07-08-13
Otto115
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by rafa95123
Hmm.. I'll try fix this to. :)
Sorry for not be updating the topic, is that my classes started and I'm short on time, but rest assured that I will continue helping the Forum with over fix. :)
Can u post the fix of the whell and others ..?
07-08-13
Matata
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by rafa95123
Hmm.. I'll try fix this to. :)
Sorry for not be updating the topic, is that my classes started and I'm short on time, but rest assured that I will continue helping the Forum with over fix. :)
You're doing a great job man, thank you :).
07-08-13
rafa95123
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
You're welcome guys, i'm not in my computer... But tomorrow i'll post the last fix's to you :)
07-08-13
Innorman
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Thank you :) !
07-08-13
ResD
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Fix this buggs, please:
1-When I have to go to a room I have to give twice to to be loaded the furnis.
2-The inventory furnis disappear when I restart the client.
08-08-13
MichaeelS
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by ResD
Fix this buggs, please:
1-When I have to go to a room I have to give twice to to be loaded the furnis.
2-The inventory furnis disappear when I restart the client.
svuote table
08-08-13
AKllX
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Plus Emulator is better! You should start updating it. I'm working on it too
08-08-13
Bjork
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by AKllX
Plus Emulator is better! You should start updating it. I'm working on it too
Yes if it's more stable, the known bugs don't will be hard to correct with the help of the community :)
08-08-13
Leon
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Bjork
Yes if it's more stable, the known bugs don't will be hard to correct with the help of the community :)
In it's current form (the versions that have been floating around on here), it's not actually that stable. You will experience crashes if you have a decent amount of users.
Also.. Pretty strange how a perfectly fine release got deleted.. huh?
08-08-13
Joseph
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by AKllX
Plus Emulator is better! You should start updating it. I'm working on it too
What swfs do you use?
08-08-13
AKllX
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Joseph
What swfs do you use?
I'm using the latest ones released here now. But at first It was the same as HabPlus, just ripped off from their site
08-08-13
Leon
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Perfectly working SWF's, I know it's a very messy pack, it was like that when I obtained it. The correct setup is:
PHP Code:
<?php public $variables = "//habbo.vc/game/latest_v/external_variables.txt"; public $texts = "//habbo.vc/game/gamedata/b5da780fa98c6bc2fa2f70e68a9ac238/external_flash_texts.txt"; public $override_texts = "//www.habbo.vc/externals.php?type=texts&?h=180520131"; public $override_vars = "//www.habbo.vc/externals.php?type=vars&?h=180520131"; public $productdata = "//habbo.vc/game/gamedata/archive/a9c2dfebdaa0a48b66498012a2fd4612/productdata.txt"; public $furnidata = "//habbo.vc/game/gamedata/archive/a9c2dfebdaa0a48b66498012a2fd4612/furnidata.txt"; public $baseurl = "//habbo.vc/game/core/05283f046dd1073a787334bce2beb332/"; public $habbo_swf = "//habbo.vc/game/core/05283f046dd1073a787334bce2beb332/Habbo.swf";
Just change the URL. (this was taken from a hotel using IlluminaCMS).
These are for Plus Emulator, not Swift. I decided to post them here because there was chat about Plus here + the release thread got deleted. Either someone make a release thread or I will.
08-08-13
vicancer
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by AKllX
I'm using the latest ones released here now. But at first It was the same as HabPlus, just ripped off from their site
you can use with the same database?
- I have a problem in the emulator swift ddos v5
08-08-13
Clawed
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Perfectly working SWF's, I know it's a very messy pack, it was like that when I obtained it. The correct setup is:
PHP Code:
<?php public $variables = "//habbo.vc/game/latest_v/external_variables.txt"; public $texts = "//habbo.vc/game/gamedata/b5da780fa98c6bc2fa2f70e68a9ac238/external_flash_texts.txt"; public $override_texts = "//www.habbo.vc/externals.php?type=texts&?h=180520131"; public $override_vars = "//www.habbo.vc/externals.php?type=vars&?h=180520131"; public $productdata = "//habbo.vc/game/gamedata/archive/a9c2dfebdaa0a48b66498012a2fd4612/productdata.txt"; public $furnidata = "//habbo.vc/game/gamedata/archive/a9c2dfebdaa0a48b66498012a2fd4612/furnidata.txt"; public $baseurl = "//habbo.vc/game/core/05283f046dd1073a787334bce2beb332/"; public $habbo_swf = "//habbo.vc/game/core/05283f046dd1073a787334bce2beb332/Habbo.swf";
Just change the URL. (this was taken from a hotel using IlluminaCMS).
These are for Plus Emulator, not Swift. I decided to post them here because there was chat about Plus here + the release thread got deleted. Either someone make a release thread or I will.
Someone mirror me this please, habbo.vc dont work for me, but isitup says its online but not for me :(
09-08-13
EvilCoder
Re: [SwiftEmu] Fix's for NewCrypto!
Quote:
Originally Posted by Droppy
Easy fix, but thanks for who need it.
How come you've never posted it in a thread? >.>
Onthread: - Nice fixes, keep up the good work!
09-08-13
ResD
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by MichaeelS
svuote table
What?
09-08-13
Bloodraven
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
I recommend like AKIIV that you work on Plus, I am and I must admit working on a source that isn't decompiled and fixed up is much better than working on something that's so messed up its hard to understand.
09-08-13
Innorman
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Where can we found PlusEmu ? I have seen last week that Joseph has posted the emulator but I didn't found the post
09-08-13
Matata
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by zJordan
I recommend like AKIIV that you work on Plus, I am and I must admit working on a source that isn't decompiled and fixed up is much better than working on something that's so messed up its hard to understand.
Could someone please share PlusEMU again?
I didn't get it while it was there.
09-08-13
Bloodraven
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Matata
Could someone please share PlusEMU again?
I didn't get it while it was there.
Just wondering, would PlusEMU be better to use, than SwiftEMU with all the fixes in this thread?
10-08-13
Ardhmuch
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Right now we are still confused to use bcstrom or swift phoenix emu and added again with a plus emu,
I think we had better develop an emulator, but for the people prefer to use the emulator what?
But I will wait for the release of the best of all of you.
10-08-13
Bloodraven
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
PlusEmulator is the best option right now.
Or even Mango if you can be assed to write all those missing features.
10-08-13
Ardhmuch
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by zJordan
PlusEmulator is the best option right now.
Or even Mango if you can be assed to write all those missing features.
Well if you think better plus EMU and stable I will use it
10-08-13
Bloodraven
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Ardhmuch
Well if you think better plus EMU and stable I will use it
HabPlus had about 1,700 users average, that's pretty stable compared to what BcStorm and Swift can handle (100? :P)
Just use it, there is only a few bugs to iron out (I have a bug with horses, not sure if its my catalog I obtained from a friend but mehh)
And it has fare less bugs, but it does have bugs, most notably with groups.
10-08-13
vicancer
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
I like swift but not posting more fix an :/
10-08-13
KeineChance
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
We need to make a fix thread for PlusEMU
10-08-13
Matata
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by zJordan
HabPlus had about 1,700 users average, that's pretty stable compared to what BcStorm and Swift can handle (100? :P)
Just use it, there is only a few bugs to iron out (I have a bug with horses, not sure if its my catalog I obtained from a friend but mehh)
And it has fare less bugs, but it does have bugs, most notably with groups.
I do believe that it is because of your furnidata.
The hotel Sledmore is currently developing for, got horses working perfectly. And they're using PlusEMU.
10-08-13
Crak3r
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
"FilterWords" not work...
10-08-13
Laurenskedm
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
I tried the one way gate fix and it didn't work for me for some reason?
10-08-13
KeineChance
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Matata
I do believe that it is because of your furnidata.
The hotel Sledmore is currently developing for, got horses working perfectly. And they're using PlusEMU.
How are the link form "Sledmore Hotel"?
Quote:
Originally Posted by Laurenskedm
I tried the one way gate fix and it didn't work for me for some reason?
Do you have Debug the Emulator?¨
If it not works, i can give you my emulator, i have fixed whit all fixes who was posted in this thread (And more.)
10-08-13
Matata
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Two buggs:
1-The effects do not appear when shopping.
2-The profiles do not load.
With the swfs the santini clothes do not load.
Are not you put more fixs? Put fixs of Mod Tools
and the profiles, please.
11-08-13
Gaby
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
I found some bugs too:
1. When you use 'wired user says the correct word', the correct word will appear in the room instead of being whispered.
2. If you buy too many wall/flooritems and then place a wall/flooritem in your room, you will get disconnected.
3. BOTs randomly duplicate themselves after you place one in a room, pick it up again and relog.
4. You will randomly be not able to walk on a certain tile again after somebody has walked over it.
I would be very happy to see this fixed somehow. :D
11-08-13
Innovacion
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Hello guys, today I have fixed the faces of Bots in catalog...
Bots faces fix:
1. Search on Butterfly -> HabboHotel -> Catalogs -> CatalogItem:
PHP Code:
else if (Name.Contains("rentable_bot"))
{
Message.AppendString("hr-3020-34.hd-3091-2.ch-225-92.lg-3058-100.sh-3089-1338.ca-3084-78-108.wa-2005");
}
2. Replace for this:
PHP Code:
else if (this.Name.Contains("rentable_bot") || this.Name.Contains("bot_generic") || this.Name.Contains("bot_bartender"))
{
Message.AppendString(this.ExtraData);
}
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
If your hotel is gets up to and over 2,000 users, I wouldn't recommend running it in it's current form though.
12-08-13
Exonize
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Nice, release. I do not have time to read through the whole thread atm.
Do anyone know how stable this is? how many users can it hold?
12-08-13
asic
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Exonize
Nice, release. I do not have time to read through the whole thread atm.
Do anyone know how stable this is? how many users can it hold?
It's buggy but fixable. AKllX posted a screenshot with him using it with 1500 players online, and provided the info below.
Quote:
Perfomance analysis:
Fine till 1K users;
Laggy till 1.5K;
Will crash any point after that. Mostly because of BOTs is my guess.
12-08-13
Sledmore
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Matata
I do believe that it is because of your furnidata.
The hotel Sledmore is currently developing for, got horses working perfectly. And they're using PlusEMU.
Correct the horses are working on there and do in Swift by default, it is the saddles that need changing in the furnidata. Here is the furnidata we are using for saddles:
Code:
["s","4221","horse_saddle1","45508","0","1","1","","Horse Saddle","Saddle is required to ride your horse, and makes a nice decoration for","","248669","10493","true","-1","-1","false","15 4 9 0 77","16"]
Also, incorrect. That hotel is using Swift with a lot of fixes. Here is a fix for the effects inventory:
Open up the emulator.
Go to AvatarEffectsInventoryComponent.cs
Find 'internal ServerMessage Serialize()'
Under 'message.AppendInt32(effect.EffectId);'
Add 'message.AppendInt32(1);'.
Debug the emulator.
Also, you should change how you serialize the effects inventory. If you want to, do the following:
Find 'ServerMessage message7 = new ServerMessage(Outgoing.bools1);'
Just above it add the following: 'SendMessage(GetHabbo().GetAvatarEffectsInventoryComponent().Serialize());'.
12-08-13
ResD
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Sledmore
Correct the horses are working on there and do in Swift by default, it is the saddles that need changing in the furnidata. Here is the furnidata we are using for saddles:
Code:
["s","4221","horse_saddle1","45508","0","1","1","","Horse Saddle","Saddle is required to ride your horse, and makes a nice decoration for","","248669","10493","true","-1","-1","false","15 4 9 0 77","16"]
Also, incorrect. That hotel is using Swift with a lot of fixes. Here is a fix for the effects inventory:
Open up the emulator.
Go to AvatarEffectsInventoryComponent.cs
Find 'internal ServerMessage Serialize()'
Under 'message.AppendInt32(effect.EffectId);'
Add 'message.AppendInt32(1);'.
Debug the emulator.
Also, you should change how you serialize the effects inventory. If you want to, do the following:
Find 'ServerMessage message7 = new ServerMessage(Outgoing.bools1);'
Just above it add the following: 'SendMessage(GetHabbo().GetAvatarEffectsInventoryComponent().Serialize());'.
Can you explain a little better? I do not understand
12-08-13
vicancer
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Sledmore
Correct the horses are working on there and do in Swift by default, it is the saddles that need changing in the furnidata. Here is the furnidata we are using for saddles:
Code:
["s","4221","horse_saddle1","45508","0","1","1","","Horse Saddle","Saddle is required to ride your horse, and makes a nice decoration for","","248669","10493","true","-1","-1","false","15 4 9 0 77","16"]
Also, incorrect. That hotel is using Swift with a lot of fixes. Here is a fix for the effects inventory:
Open up the emulator.
Go to AvatarEffectsInventoryComponent.cs
Find 'internal ServerMessage Serialize()'
Under 'message.AppendInt32(effect.EffectId);'
Add 'message.AppendInt32(1);'.
Debug the emulator.
Also, you should change how you serialize the effects inventory. If you want to, do the following:
back to GetWardrobe, but check if its null first by doing something like:
PHP Code:
if (this.GetHabbo().GetAvatarEffectsInventoryComponent() != null) SendMessage(GetHabbo().GetAvatarEffectsInventoryComponent().Serialize());
12-08-13
ResD
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
1-The pets when I give a lot of orders, you go outside the room and clears the pet inventory.
2-No the caresses account
12-08-13
Matata
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Sledmore
Correct the horses are working on there and do in Swift by default, it is the saddles that need changing in the furnidata. Here is the furnidata we are using for saddles:
Code:
["s","4221","horse_saddle1","45508","0","1","1","","Horse Saddle","Saddle is required to ride your horse, and makes a nice decoration for","","248669","10493","true","-1","-1","false","15 4 9 0 77","16"]
Also, incorrect. That hotel is using Swift with a lot of fixes. Here is a fix for the effects inventory:
Open up the emulator.
Go to AvatarEffectsInventoryComponent.cs
Find 'internal ServerMessage Serialize()'
Under 'message.AppendInt32(effect.EffectId);'
Add 'message.AppendInt32(1);'.
Debug the emulator.
Also, you should change how you serialize the effects inventory. If you want to, do the following:
Find 'ServerMessage message7 = new ServerMessage(Outgoing.bools1);'
Just above it add the following: 'SendMessage(GetHabbo().GetAvatarEffectsInventoryComponent().Serialize());'.
Thought you were running PlusEMU, assuming you were developing for HabPlus.
Thanks for the fix tho.
12-08-13
Quentin Thomine
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Good evening, I still prefers to swit because I do not want to redo my Databass! Someone is how to have the same profile PLus Emu? Because it is really good :)
12-08-13
Sledmore
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Matata
Thought you were running PlusEMU, assuming you were developing for HabPlus.
Thanks for the fix tho.
I didn't do a whole lot on PlusEMU V4 wouldn't use it due to the respect I have for Tom and Michael or give it out, so I'm just going to work on Swift and update it I guess.
And you're welcome.
12-08-13
Marlon Colhado
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Zayn17
This EMU has some disgusting lag, I've fixed backdoors and everything but the lag is the only issue and I don't know how to sort it... Any idea anyone?
As stated, your lag is designed by MySQL, someone can help you set up ideally MySQL
EDIT¹:
Personally lately got this error when you click a group, and it does not open. GUILD PROCESS THREAD ERROR
Code with this error:
PHP Code:
try { message = new ServerMessage(Outgoing.SendAdvGroupInit); message.AppendInt32(guild.Id); message.AppendBoolean(false); message.AppendInt32(guild.Type); message.AppendString(guild.Name); message.AppendString(guild.Description); message.AppendString(guild.Image); message.AppendInt32(data.Id); message.AppendString(data.Name); if (guild.Petitions.Contains((int)this.Session.GetHabbo().Id)) { // Console.WriteLine((guild.Petitions.Contains((int)this.Session.GetHabbo().Id)).ToString()); message.AppendInt32(2); } else if (!this.Session.GetHabbo().ImGuilds.Contains(guild.Id)) { message.AppendInt32(0); } else if (this.Session.GetHabbo().ImGuilds.Contains(guild.Id)) { message.AppendInt32(1); } message.AppendInt32(guild.Members.Count); message.AppendBoolean(false); message.AppendString(guild.DateCreated);
Error in thread GUILD PROCESS THREAD ERROR: :
TokenID: 0System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Butterfly.Messages.GameClientMessageHandler.EndConfirmBuy()
I tried to fix it, and no success...
13-08-13
KyleeIsProzZ
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
It would be a good idea,
if someone could post the least emulator with every fix that's been posted so far.
for the noobs.
13-08-13
neto737
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Please post fix for backdoors..
13-08-13
Redirected
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by neto737
Please post fix for backdoors..
what backdoors? Explain please.
14-08-13
neto737
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by Redirected
what backdoors? Explain please.
In Swift emulator has many backdoors SQL Injection ..
14-08-13
Bloodraven
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by neto737
In Swift emulator has many backdoors SQL Injection ..
There are 2, the navigator search:ownername and marketplace.
14-08-13
neto737
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by zJordan
There are 2, the navigator search:ownername and marketplace.
You have the fixes for these backdoors?
14-08-13
Bloodraven
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by neto737
You have the fixes for these backdoors?
I think a fix for search:ownername was released a few pages back and I have no need for marketplace anyway.
14-08-13
Clawed
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by zJordan
I think a fix for search:ownername was released a few pages back and I have no need for marketplace anyway.
Search owner: expliot
1. Open Butterfly/HabboHotel/Navigators/Navigator.cs
2. Find internal ServerMessage SerializeSearchResults(string SearchQuery)
3. Replace with
PHP Code:
internal ServerMessage SerializeSearchResults(string SearchQuery)
{
DataTable table = new DataTable();
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
if (SearchQuery.Length > 0)
{
if (SearchQuery.StartsWith("owner:"))
{
adapter.setQuery("SELECT * FROM rooms WHERE owner LIKE @query ORDER BY id DESC LIMIT 50");
}
else if (adapter.dbType == DatabaseType.MySQL)
{
adapter.setQuery("SELECT rooms.*, room_active.active_users FROM rooms LEFT JOIN room_active ON (room_active.roomid = rooms.id) WHERE owner = @query AND roomtype = 'private' UNION ALL SELECT rooms.*, room_active.active_users FROM rooms LEFT JOIN room_active ON (room_active.roomid = rooms.id) WHERE caption = @query AND roomtype = 'private' ORDER BY active_users DESC LIMIT 50");
}
else
{
adapter.setQuery("SELECT TOP 50 rooms.*, room_active.active_users FROM rooms LEFT JOIN room_active ON (room_active.roomid = rooms.id) WHERE owner = @query AND roomtype = 'private' UNION ALL SELECT rooms.*, room_active.active_users FROM rooms LEFT JOIN room_active ON (room_active.roomid = rooms.id) WHERE caption = @query AND roomtype = 'private' ORDER BY active_users DESC");
}
table = adapter.getTable();
}
}
List<RoomData> list = new List<RoomData>();
if (table != null)
{
foreach (DataRow row in table.Rows)
{
RoomData item = ButterflyEnvironment.GetGame().GetRoomManager().FetchRoomData(Convert.ToUInt32(row["id"]), row);
list.Add(item);
}
}
ServerMessage message = new ServerMessage(Outgoing.NavigatorPacket);
message.AppendInt32(8);
message.AppendString(SearchQuery);
message.AppendInt32(list.Count);
foreach (RoomData data2 in list)
{
data2.Serialize(message, false);
}
message.AppendBoolean(false);
return message;
}
Marketplace search expliot:
1. Open Butterfly/HabboHotel/Catalogs/Marketplace.cs
2. Fine internal static ServerMessage SerializeOffers(int MinCost, int MaxCost, string SearchQuery, int FilterMode)
3. Replace with
PHP Code:
internal static ServerMessage SerializeOffers(int MinCost, int MaxCost, string SearchQuery, int FilterMode)
{
StringBuilder builder = new StringBuilder();
builder.Append("WHERE state = '1' AND timestamp >= " + FormatTimestampString());
if (MinCost >= 0)
{
builder.Append(" AND total_price > @minCost");
}
if (MaxCost >= 0)
{
builder.Append(" AND total_price < @maxCost");
}
if (SearchQuery.Length >= 1)
{
builder.Append(" AND public_name LIKE @query");
}
switch (FilterMode)
{
case 1:
builder.Append(" ORDER BY asking_price DESC");
break;
case 2:
builder.Append(" ORDER BY asking_price ASC");
break;
}
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.setQuery("SELECT * FROM catalog_marketplace_offers " + builder.ToString());
if (MinCost >= 0)
{
adapter.addParameter("minCost", MinCost);
}
if (MaxCost >= 0)
{
adapter.addParameter("minCost", MaxCost);
}
if (SearchQuery.Length >= 1)
{
adapter.addParameter("query", "%" + SearchQuery + "%");
}
DataTable table = adapter.getTable();
adapter.setQuery("SELECT COUNT(DISTINCT sprite_id) FROM catalog_marketplace_offers " + builder.ToString() + " LIMIT 250");
int i = adapter.getInteger();
int num2 = 0;
List<int> list = new List<int>();
ServerMessage message = new ServerMessage(Outgoing.GetOffers);
message.AppendInt32(i);
foreach (DataRow row in table.Rows)
{
if (!list.Contains((int) row["sprite_id"]))
{
list.Add((int) row["sprite_id"]);
int[] avarage = GetAvarage((int) row["sprite_id"]);
message.AppendInt32(int.Parse(row["offer_id"].ToString()));
message.AppendInt32(1);
message.AppendInt32(1);
message.AppendInt32((int) row["sprite_id"]);
message.AppendInt32(0);
message.AppendString("");
message.AppendInt32((int) row["total_price"]);
message.AppendInt32(0);
message.AppendInt32(avarage[0]);
message.AppendInt32(avarage[1]);
num2 += avarage[1];
}
}
message.AppendInt32(num2);
return message;
}
}
I didn't find another other expliots in search or mp.
Enjoy.
14-08-13
AKllX
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
There is one exploit in that Redeem credits function in the catalogue, I guess. If you type: ' OR 1=1-- in it you will get disconnected :p
14-08-13
Clawed
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by AKllX
There is one exploit in that Redeem credits function in the catalogue, I guess. If you type: ' OR 1=1-- in it you will get disconnected :p
Where? I don't see it:
PHP Code:
internal class VoucherHandler { internal static int GetVoucherValue(string Code) { DataRow row; using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { adapter.setQuery("SELECT value FROM credit_vouchers WHERE code = @code"); adapter.addParameter("code", Code); row = adapter.getRow(); } if (row != null) { return (int) row[0]; } return 0; }
private static bool IsValidCode(string Code) { using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { adapter.setQuery("SELECT null FROM credit_vouchers WHERE code = @code"); adapter.addParameter("code", Code); if (adapter.getRow() != null) { return true; } } return false; }
private static void TryDeleteVoucher(string Code) { using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { adapter.setQuery("DELETE FROM credit_vouchers WHERE code = @code"); adapter.addParameter("code", Code); adapter.runQuery(); } }
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Quote:
Originally Posted by AKllX
There is one exploit in that Redeem credits function in the catalogue, I guess. If you type: ' OR 1=1-- in it you will get disconnected :p
I've managed to fix the generation of the coins by the codes. But I did not realize this exploit, and I have no idea how to fix it but I'll see if I find a way here!
What do you think is not an exploit, anything you write will give disconnect.
Ya I see now. It's not an exploit, just a non-updated header conflict.
Session.SendMessage(new ServerMessage(0xd4)); ServerMessage message = new ServerMessage(0xd5);
Should be (Didn't test):
Session.SendMessage(new ServerMessage(3089));
ServerMessage message = new ServerMessage(2442);
14-08-13
Twan
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Crystals fix doesnt work here:
Code:
Error 2 'Butterfly.HabboHotel.Habbo.Users.Habbo' does not contain a definition for 'UpdateDiamondsBalance' and no extension method 'UpdateDiamondsBalance' accepting a first argument of type 'Butterfly.HabboHotel.Habbo.Users.Habbo' could be found (are you missing a using directive or an assembly reference?) C:\Users\Administrator\Downloads\Revision 5 - Alpha 3\Butterfly\HabboHotel\Misc\ChatCommandHandler.cs 742 49 Butterfly Emulator
On line 742: clientByUsername.GetHabbo().UpdateDiamondsBalance();
Also, if i type :givecrystal in my room, it doesnt work (rank 100)
15-08-13
vicancer
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
more fixes thanks!
16-08-13
Marlon Colhado
Re: [SwiftEmu] Fix's for NewCrypto! [UPDATED 01/08]
Fixing button: Mute all (Preferences of Room):
In Incoming.cs, add this:
PHP Code:
public static int RoomMuteAll;
and
PHP Code:
Incoming.RoomMuteAll = 574;//b
In Outgoing.cs, add this:
PHP Code:
public static int RoomMuteAllOut;
and
PHP Code:
Outgoing.RoomMuteAllOut = 2132;//b
In GameClientMessageHandler.cs, search by: public void MarketplaceTakeBack()
Above that, add:
PHP Code:
internal void RoomMuteAll() { Room currentRoom = this.Session.GetHabbo().CurrentRoom; if ((currentRoom != null) && currentRoom.CheckRights(this.Session)) { if (this.Session.GetHabbo().CurrentRoom.RoomMuted) { this.Session.GetHabbo().CurrentRoom.RoomMuted = false; ServerMessage Message = new ServerMessage(Outgoing.RoomMuteAllOut); Message.AppendBoolean(false); Session.SendMessage(Message); return; } else { this.Session.GetHabbo().CurrentRoom.RoomMuted = true; ServerMessage Message = new ServerMessage(Outgoing.RoomMuteAllOut); Message.AppendBoolean(true); Session.SendMessage(Message); return; } } else { this.Session.SendNotif("You need rights to this!"); } }