Habbo Club Center FIX but not 100%
Hi community, i want to share my little "fix" for the Habbo Club Center but it isn't 100% fixed...
1) Open Plus Project and Search : GetHabboClubWindowsEvent.cs
2) You see :
PHP Code:
Session.SendNotification("Habbo Club is free for all members, enjoy!");
replace with
PHP Code:
//Session.SendNotification("Habbo Club is free for all members, enjoy!");
3) Insert bottom of step 2 :
PHP Code:
Session.SendMessage(new HabboClubCenterInfoMessageComposer());
4) Go to Plus/Communication/Packets/Outgoing/Inventory/Purse and create a new class (.cs) and rename it HabboClubCenterInfoMessageComposer.cs and clean all and insert this code:
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Plus.Communication.Packets.Outgoing.Inventory.Purse
{
class HabboClubCenterInfoMessageComposer : ServerPacket
{
public HabboClubCenterInfoMessageComposer() : base(ServerPacketHeader.HabboClubCenterInfoMessageComposer)
{
base.WriteInteger(0);
base.WriteString("13-11-2015"); //Date of purchasing or join to HC
base.WriteInteger(1069128089);
base.WriteInteger(-1717986918);
base.WriteInteger(0); //?
base.WriteInteger(0); //?
base.WriteInteger(0); //Credits spent for buy (you can change this)
base.WriteInteger(0); //Extra Credits for Series (you can change this)
base.WriteInteger(0); //% Of Bonus (you can change this)
base.WriteInteger(0); //Minutes (you can change this)
}
}
}
5) Search: public const int ClubGiftsMessageComposer and change the number with 2751
6) Enjoy. :ott:
Re: Habbo Club Center FIX but not 100%
Your structure is wrong, the right one is :
PHP Code:
base.WriteInteger(5);//streakduration in days
base.WriteString("01-01-1970");//joindate
base.WriteInteger(0); base.WriteInteger(0);//this should be a double
base.WriteInteger(0);//unused
base.WriteInteger(0);//unused
base.WriteInteger(10);//spentcredits
base.WriteInteger(20);//streakbonus
base.WriteInteger(10);//spentcredits
base.WriteInteger(60);//next pay in minutes
Re: Habbo Club Center FIX but not 100%
Thank you for publishing your structure @Tyrex :ott:
Re: Habbo Club Center FIX but not 100%
Thanks @Sicily94 and @Tyrex, work prflty
Re: Habbo Club Center FIX but not 100%
Thanks @Tyrex, godfather in packets since some time (hahahaa)... Now only need change the static join Date by likely, User Registration date.
Re: Habbo Club Center FIX but not 100%
@ovflowd good idea :w00t: probabely can be this the HC Center modified ... (i think that it is wrong)
Quote:
using Plus.Database.Interfaces;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Plus.Communication.Packets.Outgoing.Inventory.Purse
{
class HabboClubCenterInfoMessageComposer : ServerPacket
{
public HabboClubCenterInfoMessageComposer() : base(ServerPacketHeader.HabboClubCenterInfoMessageComposer)
{
DataRow Query = null;
using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
dbClient.SetQuery("SELECT `account_created` FROM `users`");
Query = dbClient.getRow();
}
base.WriteInteger(0);
base.WriteString(Convert.ToString(Math.Ceiling((PlusEnvironment.GetUnixTimestamp() - Convert.ToDouble(Query["account_created"])) / 60)));
base.WriteInteger(1069128089);
base.WriteInteger(-1717986918);
base.WriteInteger(0);
base.WriteInteger(0);
base.WriteInteger(0); //Credits spent for buying
base.WriteInteger(0); //Extra Credits for Series
base.WriteInteger(0); //Total credits received
base.WriteInteger(0); //Minutes for wait
}
Re: Habbo Club Center FIX but not 100%
Quote:
Originally Posted by
Sicily94
@
ovflowd good idea :w00t: probabely can be this the HC Center modified ... (i think that it is wrong)
U missed two }, testing right now
Re: Habbo Club Center FIX but not 100%
@Sicily94 you don't need create a query. Pick directly from userInfo ;)
Re: Habbo Club Center FIX but not 100%
Okay, thank you @ovflowd :w00t: