Hi all,
RELEASE63-201405071257-197450526
A very easy and small fix to patch these "bots" everybody is releasing now these days.
I don't know if Habbo uses the same packet ID for these things. But as the most of you know there is packet with number 340. This will send the variables.txt location which you are currently using.
Bots do not have external_variables, bots are being send on another way. There for you can use this packet in order to check your variables link.
How do I install it?
Browse to "Events.cs" and Add the following packet in the list:
Now browse to StaticClientMessageHandler.cs and Search for:Code:internal static int ClientVars = 340;
Paste the following rule after this line:Code:handlers.Add(Incoming.LoadProfile, new StaticRequestHandler(SharedPacketLib.LoadProfile));
Now go to "Requests->Users.cs" and find "GetBalance()". Paste this new internal void there.Code:handlers.Add(Incoming.ClientVars, new StaticRequestHandler(SharedPacketLib.CheckClientVars));
Also add this to your sharedlib:Code:internal void CheckClientVars() { string unnecessaryJunk = Request.PopFixedString(); string RequestedVariables = Request.PopFixedString(); if (RequestedVariables == "" || !RequestedVariables.Contains("external_variables.txt")) { Silverwave.Core.Logging.WriteLine("[ClientMgr] User tried to authenticate without the real external variables from this hotel - request has been blocked."); Session.Disconnect(); return; } }
Make sure your variables "contains" ..../external_variables.txt" or change the "Contains" part in the "void CheckClientVars()".Code:internal static void ClientVars(GameClientMessageHandler handler) { handler.ClientVars(); }
Credits to:
@Mextur -> Teaching me .NET in the first place.
@EvilCoder {me} (I like to mess around with unused packets. I found this one during my unhandled packetlog)
@Bjork (Finding the necassery structure (not 1 string, but 2) thx).
Don't forget the thx button ++ This is not a permanent fix. But the released bots for now are patched!
Kind regards,
Mikey


Reply With Quote![Patch bots [Plus Emulator]](http://ragezone.com/hyper728.png)



