Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Mercury Emulator V2.3 [Plus] [New RSA] [Love Locks] [Group Forums] [ETC]

Status
Not open for further replies.
Newbie Spellweaver
Joined
Sep 17, 2014
Messages
29
Reaction score
3
Your CMS is not saving SSO tickets in auth_ticket column (in users table)...
Well how do I fix that?
Sometimes it loads till 100% and then redirects me to me.php page,
and sometimes it gets stuck at 87%
Thanks
@MrPudding
 

PR0

Legendary Battlemage
Joined
Mar 3, 2007
Messages
690
Reaction score
85
How users will react, depends on your users and what main build you are currently on. Would suggest you just ask your players like "hey waddaya think of this" lol

Yeah but I don't want to get into something that looks good on the outside, but when you open it it's a can of worms and a big head ache. I was/am hoping for a prognosis on the bugs and errors.

Thanks though :)
 
R.I.P Millercent
Loyal Member
Joined
Nov 6, 2012
Messages
2,230
Reaction score
314
Yeah but I don't want to get into something that looks good on the outside, but when you open it it's a can of worms and a big head ache. I was/am hoping for a prognosis on the bugs and errors.

Thanks though :)

Well it all depends. If you're willing to commit you can fix the bugs easily. Stability wise it will be fine on 2gb RAM server deciding all other specs are decent.

As for bugs, there's a few but nothing game breaking. Ones I've noticed are;
- can't rotate furni with users on it
- Making too big a room in floor plan edit throws a packet error (why not limit the size you can make?)
- teleport command is buggy (there's a thread regarding it in the help section)
- Some wired's aren't coded yet (not a bug, just not done)
- horse saddle is derped out. (you sit behind the horse, not on it)
- You can pets to build up achievements very easily and quickly

That's all I see/have not ironed out yet.
 
  • Like
Reactions: PR0

PR0

Legendary Battlemage
Joined
Mar 3, 2007
Messages
690
Reaction score
85
Well it all depends. If you're willing to commit you can fix the bugs easily. Stability wise it will be fine on 2gb RAM server deciding all other specs are decent.

As for bugs, there's a few but nothing game breaking. Ones I've noticed are;
- can't rotate furni with users on it
- Making too big a room in floor plan edit throws a packet error (why not limit the size you can make?)
- teleport command is buggy (there's a thread regarding it in the help section)
- Some wired's aren't coded yet (not a bug, just not done)
- horse saddle is derped out. (you sit behind the horse, not on it)
- You can pets to build up achievements very easily and quickly

That's all I see/have not ironed out yet.

Ah that's perfect. I love this new version so I'm super happy that it can be smoothly played already. I'm going to have fun with this ^.^

Cheers!
 
Newbie Spellweaver
Joined
May 9, 2013
Messages
92
Reaction score
2
Providing more information about your problem and how you solved it would help other people experiencing the same problems.

In the external_variables it leads to another hotel so you need to switch that around and then in your client.php you need to change the var BaseUrl and the /Habbo.swf to Habbo.swf like so
Code:
            var BaseUrl = "http://HIDDEN UNTIL OPEN DAY/game/gordon/RELEASE63-201408141029-609065162/";      
            "base" : BaseUrl + "/",
                "allowScriptAccess" : "always",
                "menu" : "false"                
            };
            swfobject.embedSWF(BaseUrl + "Habbo.swf", "client", "100%", "100%", "10.0.0", "http://wabbo.co//expressInstall.swf", flashvars, params, null);

What I've done there is removed the "/" that begins at Habbo.swf and added it to the BaseUrl, if you get on the client after changing the external_variables you will see why but this was also the problem because I could connected after adding a slash and not removing it from Habbo.swf allowing SOME to work so really it's a simple fix by adding and removing one slash at the end.
 
git bisect -m
Loyal Member
Joined
Sep 2, 2011
Messages
2,171
Reaction score
916
BUILDERS CLUB - BETA

Builders Club Feature Codes:
Outgoing.cs
PHP:
internal static int BuildersHowManyFurniHave = 3171;//1499; //bi0s
Incoming.cs
PHP:
internal static int BuildersClubHowManyItemsHave = 3178; //bi0s
internal static int PlaceBuildersFurniture = 1638; //bi0s
Catalog.cs After:
PHP:
internal Dictionary<uint, ServerMessage> CachedIndexes;
Add
PHP:
nternal Dictionary<uint, ServerMessage> CachedIndexesBuilders;
Replace(and the code below of that code)
PHP:
CachedIndexes = new Dictionary<uint, ServerMessage>();
To
PHP:
CachedIndexes = new Dictionary<uint, ServerMessage>();
            CachedIndexesBuilders = new Dictionary<uint, ServerMessage>();
            for (uint i = 1; i < 9; i++)
            {
                	CachedIndexes.Add(i, CatalogPacket.ComposeIndex(i));
                	CachedIndexesBuilders.Add(i, CatalogPacket.ComposeIndexBuilders(i));
            }
After that "if"
PHP:
if (catalogPage.Layout == "vip_buy" || catalogPage.Layout == "club_buy" || HabboClubItems.Contains(item))
Add
PHP:
 if (catalogPage.Layout == "builders_club_addons")
                    {
                        string[] array = item.Name.Split(new char[]
				{
					'_'
				});
                        int dayLength;
                        if (item.Name.Contains("45furnis"))
                        {
                            dayLength = 45;
                        }
                        else
                        {
                            if (item.Name.Contains("250furnis"))
                            {
                               dayLength = 250;
                            }
                            else
                            {
                                if (item.Name.Contains("600furnis"))
                                {
                                    dayLength = 600;
                                }
                                else
                                {
                                    dayLength = 31;
                                }
                            }
                        }
                        Session.GetHabbo().GetSubscriptionManager().AddSubscriptionBuilders(dayLength);
                       
                        return;
                    }
                }

On CatalogPackets.cs Add
PHP:
internal static ServerMessage ComposeIndexBuilders(uint Rank)
        {
            var Pages = MercuryEnvironment.GetGame().GetCatalog().Categories.Values.OfType<CatalogPage>();
            ServerMessage Message = new ServerMessage(Outgoing.CatalogueIndexMessageComposer);
            var SortedPages = Pages.Where(x => x.ParentId == -2 && x.MinRank <= Rank).OrderBy(x => x.OrderNum);

            Message.AppendBoolean(true);
            Message.AppendInt32(0);
            Message.AppendInt32(-1);
            Message.AppendString("root");
            Message.AppendString(string.Empty);
            Message.AppendInt32(0);
            Message.AppendInt32(SortedPages.Count());
            foreach (CatalogPage Cat in SortedPages)
            {
                Message.AppendBoolean(Cat.Visible);
                Message.AppendInt32(Cat.IconImage);
                Message.AppendInt32(Cat.PageId);
                Message.AppendString(Cat.CodeName);
                Message.AppendString(Cat.Caption);
                Message.AppendInt32(Cat.FlatOffers.Count);
                foreach (int i in Cat.FlatOffers.Keys)
                {
                    Message.AppendInt32(i);
                }

                var SortedSubPages = Pages.Where(x => x.ParentId == Cat.PageId && x.MinRank <= Rank).OrderBy(x => x.Caption);
                Message.AppendInt32(SortedSubPages.Count());

                foreach (CatalogPage SubCat in SortedSubPages)
                {
                    Message.AppendBoolean(SubCat.Visible);
                    Message.AppendInt32(SubCat.IconImage);
                    Message.AppendInt32(SubCat.PageId);
                    Message.AppendString(SubCat.CodeName);
                    Message.AppendString(SubCat.Caption);
                    Message.AppendInt32(SubCat.FlatOffers.Count);
                    foreach (int i2 in SubCat.FlatOffers.Keys)
                    {
                        Message.AppendInt32(i2);
                    }
                    Message.AppendInt32(0);
                }
            }
            Message.AppendBoolean(false);
            Message.AppendString("BUILDERS_CLUB");

            return Message;
        }
And
PHP:
      internal static ServerMessage ComposePageBuilders(CatalogPage Page)
        {
            ServerMessage Message = new ServerMessage(Outgoing.CataloguePageMessageComposer);
            Message.AppendInt32(Page.PageId);
            Message.AppendString("BUILDERS_CLUB");

            switch (Page.Layout)
            {
                case "builders_3x3":
                    Message.AppendString("default_3x3_color_grouping");
                    Message.AppendInt32(3);
                    Message.AppendString(Page.LayoutHeadline);
                    Message.AppendString(Page.LayoutTeaser);
                    Message.AppendString(Page.LayoutSpecial);
                    Message.AppendInt32(3);
                    Message.AppendString(Page.Text1);
                    Message.AppendString(Page.TextDetails.Replace("[10]", Convert.ToChar(10).ToString()).Replace("[13]", Convert.ToChar(13).ToString()));
                    Message.AppendString(Page.TextTeaser.Replace("[10]", Convert.ToChar(10).ToString()).Replace("[13]", Convert.ToChar(13).ToString()));
                    break;

                case "builders_club_frontpage":
                    Message.AppendString("builders_club_frontpage");
                    Message.AppendInt32(0);
                    Message.AppendInt32(1);
                    Message.AppendString(Page.LayoutHeadline);
                    Message.AppendInt32(3);
                    Message.AppendInt32(8554);
                    Message.AppendString("builders_club_1_month");
                    Message.AppendString("");
                    Message.AppendInt32(2560000);
                    Message.AppendInt32(2560000);
                    Message.AppendInt32(1024);
                    Message.AppendInt32(0);
                    Message.AppendInt32(0);
                    Message.AppendBoolean(false);
                    Message.AppendInt32(8606);
                    Message.AppendString("builders_club_14_days");
                    Message.AppendString("");
                    Message.AppendInt32(2560000);
                    Message.AppendInt32(2560000);
                    Message.AppendInt32(1024);
                    Message.AppendInt32(0);
                    Message.AppendInt32(0);
                    Message.AppendBoolean(false);
                    Message.AppendInt32(8710);
                    Message.AppendString("builders_club_31_days");
                    Message.AppendString("");
                    Message.AppendInt32(2560000);
                    Message.AppendInt32(2560000);
                    Message.AppendInt32(1024);
                    Message.AppendInt32(0);
                    Message.AppendInt32(0);
                    Message.AppendBoolean(false);
                    break;

                
                case "builders_club_addons":
                    Message.AppendString("builders_club_addons");
                    Message.AppendInt32(0);
                    Message.AppendInt32(1);
                    Message.AppendString(Page.LayoutHeadline);
                    Message.AppendInt32(3);
                    Message.AppendInt32(8557);
                    Message.AppendString("builders_club_addon_45furnis");
                    Message.AppendString("");
                    Message.AppendInt32(2560);
                    Message.AppendInt32(0);
                    Message.AppendInt32(1);
                    Message.AppendInt32(0);
                    Message.AppendInt32(0);
                    Message.AppendBoolean(false);
                    Message.AppendInt32(8556);
                    Message.AppendString("builders_club_addon_250furnis");
                    Message.AppendString("");
                    Message.AppendInt32(12800);
                    Message.AppendInt32(0);
                    Message.AppendInt32(1);
                    Message.AppendInt32(0);
                    Message.AppendInt32(0);
                    Message.AppendBoolean(false);
                    Message.AppendInt32(8555);
                    Message.AppendString("builders_club_addon_600furnis");
                    Message.AppendString("");
                    Message.AppendInt32(25600);
                    Message.AppendInt32(0);
                    Message.AppendInt32(1);
                    Message.AppendInt32(0);
                    Message.AppendInt32(0);
                    Message.AppendBoolean(false);
                    break;
            }

            if (Page.Layout.StartsWith("frontpage") || Page.Layout == "vip_buy")
            {
                Message.AppendInt32(0);
            }
            else
            {
                Message.AppendInt32(Page.Items.Count);
                foreach (CatalogItem Item in Page.Items.Values)
                {
                    ComposeItem(Item, Message);
                }
            }
                

            Message.AppendInt32(-1);
            Message.AppendBoolean(false);

            return Message;
        }

on CatalogPage.cs Replace
PHP:
CachedContentsMessage = CatalogPacket.ComposePage(this);
To
PHP:
            if(CodeName == "builders_club")
            CachedContentsMessage = CatalogPacket.ComposePageBuilders(this);
            else
            CachedContentsMessage = CatalogPacket.ComposePage(this);

Add on habbofactory.cs
PHP:
            int builders_expire = (int)dRow["builders_expire"];
            int builders_items = (int)dRow["builders_items"];
            int builders_items_rest = (int)dRow["builders_items_rest"];

Replace
PHP:
return new Habbo
To
PHP:
return new Habbo(id, username, realName, ras, motto, look, gender, credits, activityPoints, lastActivityPointsUpdate, muted, homeRoom, respect, dailyRespectPoints, dailyPetRespectPoints, hasFriendRequestsDisabled, currentQuestID, currentQuestProgress, achievementPoints, regTimestamp, lastOnline, appearOffline, hideInRoom, vIP, createDate, online, citizenship, belCredits, group, favId, lastChange, tradeLocked, tradeLockExpire, NuxPassed, builders_expire, builders_items,builders_items_rest);

On habbo.cs Add
PHP:
        internal int builders_expire;
        internal int builders_items;
        internal int builders_items_rest;
Replace
PHP:
internal Habbo
To
PHP:
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 HasFriendRequestsDisabled, uint currentQuestID, int currentQuestProgress, int achievementPoints, int RegTimestamp, int LastOnline, bool AppearOffline, bool HideInRoom, bool VIP, double CreateDate, bool Online, string Citizenship, int BelCredits, HashSet<GroupUser> Groups, uint FavId, int LastChange, bool TradeLocked, int TradeLockExpire, bool NUXPassed, int builders_expire, int builders_items, int builders_items_rest)
And Add in the void:
PHP:
			this.builders_expire = builders_expire;
			this.builders_items = builders_items;
			this.builders_items_rest = builders_items_rest;

Add on SubscriptionManager.cs
PHP:
		internal void AddSubscriptionBuilders(int DayLength)
		{
			int DayLenght = DayLength;
			using (IQueryAdapter queryreactor = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
			{
				queryreactor.runFastQuery(string.Concat(new object[]
				{
				                                        	"UPDATE users SET builders_items = builders_items + " + DayLenght + " WHERE id = " + this.UserId + ";"
				}));
			}
		}

on gameClientMessageHandler
After
PHP:
Session.SendMessage(MercuryEnvironment.GetGame().GetCatalog().CachedIndexes[rank]);
Add
PHP:
Session.SendMessage(MercuryEnvironment.GetGame().GetCatalog().CachedIndexesBuilders[rank]);

on Same File add
PHP:
		internal void PlaceBuildersFurniture()
		{
			
			
		}
(In Development)
And
PHP:
		internal void BuildersClubHowManyItemsHave()
		{
		ServerMessage message = new ServerMessage(Outgoing.BuildersHowManyFurniHave);
		message.AppendInt32(Session.GetHabbo().builders_items_rest);
		Session.SendMessage(message);
		}

Replace the MessageComposer Response
PHP:
this.Response.Init(Outgoing.BuildersClubMembershipMessageComposer);
To
PHP:
this.Response.Init(Outgoing.BuildersClubMembershipMessageComposer);
            this.Response.AppendInt32(Session.GetHabbo().builders_expire);//expiry
            this.Response.AppendInt32(Session.GetHabbo().builders_items);//Furniture limit
            this.Response.AppendInt32(1);
            this.SendResponse();

Add on SharePacketLib.cs
PHP:
        internal static void BuildersClubHowManyItemsHave(GameClientMessageHandler handler)
        {
            handler.BuildersClubHowManyItemsHave();
        }
        internal static void PlaceBuildersFurniture(GameClientMessageHandler handler)
        {
            handler.PlaceBuildersFurniture();
        }

Add on StaticClientMessageHandler.cs
PHP:
            handlers.Add(Incoming.PlaceBuildersFurniture, new StaticRequestHandler(SharedPacketLib.PlaceBuildersFurniture));
            handlers.Add(Incoming.BuildersClubHowManyItemsHave, new StaticRequestHandler(SharedPacketLib.BuildersClubHowManyItemsHave));

Database:

Add on Users

Add builders_expire int(11) default 3700
Add builders_items int(11) default 100
Add builders_items_rest int(11) default 0

Add on Catalog Pages


PHP:
INSERT INTO `catalog_pages` (`id`, `parent_id`, `code_name`, `caption`, `icon_image`, `visible`, `enabled`, `min_rank`, `club_only`, `order_num`, `page_layout`, `page_headline`, `page_teaser`, `page_special`, `page_text1`, `page_text2`, `page_text_details`, `page_text_teaser`, `vip_only`, `page_link_description`, `page_link_pagename`) VALUES
(149, -2, 'builders_club', 'Blocos Builders', 2005, '1', '1', 1, '0', 3, 'builders_3x3', '', 'landing_view_blocks', '', 'Use os blocos de construção para criar estruturas legais em suas salas ! Quem sabe ... talvez você é o vencedor de um concurso .', '', '', '', '0', '', ''),
(300, -2, 'builders_club', 'Clube de Arquitetos', 193, '1', '1', 1, '0', 1, 'builders_club_frontpage', '<b><font color="#cc6600" size="16">O que é o Clube do Arquiteto?</font></b><br><br>Você sempre sonhou em construir quartos com Mobis virtualmente ilimitados? Está cansado de ter que contar moedas ou mobis para terminar um quarto? O Clube do Arquiteto é a solução!<br><br><b><font color="#cc6600" size="16">é fácil demais!</font></b><br><img src="http://images.habbo.com/c_images/catalogue/bc_instr_1.png"/><br><br><br><br><br><br><br><br><ul><li>Escolha um dos <a href="event:navigator/tab/me">seus quartos</a> (ou faça um novo).</li><li>Abra o Depósito do Clube do Arquiteto</li><li>Arraste objetos e coloque-os em seu quarto</li></ul><br><br><i>Dica: Se quiser recolher todos os Mobis do Clube do Arquiteto de uma vez, digite":pickallbc" no chat e clique em ENTER.</i><br><br>Clique aqui para mais informaçoes <a href="event:habbopages/builders-club/info">sobre as vantagens que do Clube do Arquiteto oferece.</a> Caso siga com dúvidas, visite nossas <a href="event:habbopages/builders-club/faq">FAQs</a>!', '', '', '', '', '', '', '0', '', ''),
(301, -2, 'builders_club', 'Upgrades do CA', 194, '1', '1', 1, '0', 2, 'builders_club_addons', '<b><font color="#d85b00" size="16">\r\nUpgrades do Clube do Arquiteto\r\n</font></b><br><br>\r\n<font align="justify">Você alcançou o  <b>Limite de Mobis </b> mas quer <b> continuar construindo? </b> Não há problema, faça um upgrade!\r\n                    ', '', '', '', '', '', '', '0', '', '');

Enjoy...

BUGS
- Cant Place Furni, give Packet Error
- Cant Buy Addons (The Interactor Type dont Works)..

Credits
bi0s
 
Skilled Illusionist
Joined
Jul 30, 2008
Messages
340
Reaction score
50
All my problems till now, I managed to solve but MrPudding
I'm going online, i see the hotel view, but after 2 seconds i get redirected to the (hotellink)/me page..
Help please?
I really need it now :(

This isn't a help section! All these fixes are already posted in the help section. Search there!

Damn $%^&$#$.
 
Newbie Spellweaver
Joined
Nov 3, 2013
Messages
91
Reaction score
1
Suggestion : It would work on the exclusion of an apartment, the user has to head for the door when kicker or block .
 
Joined
Apr 27, 2011
Messages
569
Reaction score
80
BUILDERS CLUB - BETA


Credits
bi0s


If you past it after this you will get error:


PHP:
if (catalogPage.Layout == "vip_buy" || catalogPage.Layout == "club_buy" || HabboClubItems.Contains(item))


                    {


                        string[] array = item.Name.Split(new char[]
				{
					'_'
				});
                        double dayLength;
                        if (item.Name.Contains("DAY"))
                        {
                            dayLength = double.Parse(array[3]);
                        }
                        else
                        {
                            if (item.Name.Contains("MONTH"))
                            {
                                double num4 = double.Parse(array[3]);
                                dayLength = Math.Ceiling((num4 * 31) - 0.205);
                            }
                            else
                            {



                                if (item.Name.Contains("YEAR"))
                                {
                                    double num5 = double.Parse(array[3]);
                                    dayLength = (num5 * 31 * 12);
                                }
                                else
                                {
                                    dayLength = 31;
                                }



                            }
                        }
                        Session.GetHabbo().GetSubscriptionManager().AddSubscription(dayLength);
                       
                        return;
                    }
                }


___________

PHP:
if (catalogPage.Layout == "builders_club_addons") 
                    { 
                        string[] array = item.Name.Split(new char[] 
                { 
                    '_' 
                }); 
                        int dayLength; 
                        if (item.Name.Contains("45furnis")) 
                        { 
                            dayLength = 45; 
                        } 
                        else 
                        { 
                            if (item.Name.Contains("250furnis")) 
                            { 
                               dayLength = 250; 
                            } 
                            else 
                            { 
                                if (item.Name.Contains("600furnis")) 
                                { 
                                    dayLength = 600; 
                                } 
                                else 
                                { 
                                    dayLength = 31; 
                                } 
                            } 
                        } 
                        Session.GetHabbo().GetSubscriptionManager().AddSubscriptionBuilders(dayLength); 
                        
                        return; 
                    } 
                }


REMOVED
 
Junior Spellweaver
Joined
Oct 29, 2013
Messages
124
Reaction score
9
Did-someone fixed the club_gift and / or single bundle?
 
Newbie Spellweaver
Joined
Jun 8, 2013
Messages
15
Reaction score
0
We have a localhost set up by RUSH for my daughter Caylee and she shut the Mercury Emulator that was working, now we cannot get it to come on, how do you make the mercury emulator work thanks ( BACK TO YOU ) Thank You Rush for taking time to help my daughter Caylee
 
Last edited:
Newbie Spellweaver
Joined
Jun 20, 2014
Messages
72
Reaction score
1
You can assign the 2.4 version of the emulator when published messages.:thumbup::thumbup::thumbup:
 
Newbie Spellweaver
Joined
Oct 20, 2013
Messages
41
Reaction score
1
Do you have the 2.4?^ If you have it, I want it :D
 
Experienced Elementalist
Joined
Dec 16, 2012
Messages
293
Reaction score
31
This is peace of unstable. Wouldn't run it.
 
Status
Not open for further replies.
Back
Top