[PlusEMU][Addon] Christmas Calander

Core

Member
Nov 10, 2016
356
138
Where do they get the variables needed for this?
landing.view.dynamic.slot.4.conf=2016-11-25 00:00,xmas16advent
landing.view.xmas16advent.conf=caption,landing.view.xmas16advent.header;bodytext,landing.view.xmas16advent.body;internallinkbutton,landing.view.xmas16advent.button,openView/calendar
landing.view.xmas16advent.layout=bitmap.uri,${image.library.url}web_promo_small/spromo_xmas16_advent.png;bitmap.x,50;bitmap.y,0;container.height,250
landing.view.xmas16advent.widget=generic
landing.view.xmas16classic.conf=caption,landing.view.xmas16classic.header;bodytext,landing.view.xmas16classic.body;catalogbutton,landing.view.xmas16classic.button,xmas16classic
landing.view.xmas16classic.layout=
landing.view.xmas16classic.widget=generic
landing.view.xmas16clothing.conf=caption,landing.view.xmas16clothing.header;bodytext,landing.view.xmas16clothing.body;catalogbutton,landing.view.xmas16clothing.button,xmas16clothing
landing.view.xmas16clothing.layout=bitmap.uri,${image.library.url}web_promo_small/spromo_xmas16_clothes.png;bitmap.x,50;bitmap.y,0;container.height,250
landing.view.xmas16clothing.widget=generic
landing.view.xmas16furni.conf=caption,landing.view.xmas16furni.header;bodytext,landing.view.xmas16furni.body;catalogbutton,landing.view.xmas16furni.button,xmas16furni
landing.view.xmas16furni.layout=
landing.view.xmas16furni.widget=generic
landing.view.xmas16games.conf=caption,landing.view.xmas16games.header;bodytext,landing.view.xmas16games.body;internallinkbutton,landing.view.xmas16games.button,navigator/tab/official_view
landing.view.xmas16games.layout=
landing.view.xmas16office.widget=generic
landing.view.xmas16tiara.conf=caption,landing.view.xmas16tiara.header;bodytext,landing.view.xmas16tiara.body;catalogbutton,landing.view.xmas16tiara.button,xmas16tiara
landing.view.xmas16tiara.layout=bitmap.uri,${image.library.url}web_promo_small/spromo_xmas16_rare1.png;bitmap.x,50;bitmap.y,0;container.height,250
landing.view.xmas16tiara.widget=generic


I think :/ lmao
 

DJGOMEZV

New Member
Jan 23, 2014
15
0
landing.view.dynamic.slot.4.conf=2016-11-25 00:00,xmas16advent
landing.view.xmas16advent.conf=caption,landing.view.xmas16advent.header;bodytext,landing.view.xmas16advent.body;internallinkbutton,landing.view.xmas16advent.button,openView/calendar
landing.view.xmas16advent.layout=bitmap.uri,${image.library.url}web_promo_small/spromo_xmas16_advent.png;bitmap.x,50;bitmap.y,0;container.height,250
landing.view.xmas16advent.widget=generic
landing.view.xmas16classic.conf=caption,landing.view.xmas16classic.header;bodytext,landing.view.xmas16classic.body;catalogbutton,landing.view.xmas16classic.button,xmas16classic
landing.view.xmas16classic.layout=
landing.view.xmas16classic.widget=generic
landing.view.xmas16clothing.conf=caption,landing.view.xmas16clothing.header;bodytext,landing.view.xmas16clothing.body;catalogbutton,landing.view.xmas16clothing.button,xmas16clothing
landing.view.xmas16clothing.layout=bitmap.uri,${image.library.url}web_promo_small/spromo_xmas16_clothes.png;bitmap.x,50;bitmap.y,0;container.height,250
landing.view.xmas16clothing.widget=generic
landing.view.xmas16furni.conf=caption,landing.view.xmas16furni.header;bodytext,landing.view.xmas16furni.body;catalogbutton,landing.view.xmas16furni.button,xmas16furni
landing.view.xmas16furni.layout=
landing.view.xmas16furni.widget=generic
landing.view.xmas16games.conf=caption,landing.view.xmas16games.header;bodytext,landing.view.xmas16games.body;internallinkbutton,landing.view.xmas16games.button,navigator/tab/official_view
landing.view.xmas16games.layout=
landing.view.xmas16office.widget=generic
landing.view.xmas16tiara.conf=caption,landing.view.xmas16tiara.header;bodytext,landing.view.xmas16tiara.body;catalogbutton,landing.view.xmas16tiara.button,xmas16tiara
landing.view.xmas16tiara.layout=bitmap.uri,${image.library.url}web_promo_small/spromo_xmas16_rare1.png;bitmap.x,50;bitmap.y,0;container.height,250
landing.view.xmas16tiara.widget=generic


I think :/ lmao


Errors:
Error in packet [711] BODY: [0]xmas16[0][0][0]:
System.InvalidCastException: La conversi?n especificada no es v?lida.
en Cloud.HabboHotel.LandingView.LandingViewManager.GenerateCalendarItem(Habbo Habbo, String eventName, Int32 eventDate, Item& newItem)
en Cloud.Communication.Packets.Incoming.LandingView.OpenCalendarBoxEvent.Parse(GameClient Session, ClientPacket Packet)
en Cloud.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet)
en Cloud.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message)


Error in packet [711] BODY: [0]xmas16[0][0][0]:
System.InvalidCastException: La conversi?n especificada no es v?lida.
en Cloud.HabboHotel.LandingView.LandingViewManager.GenerateCalendarItem(Habbo Habbo, String eventName, Int32 eventDate, Item& newItem)
en Cloud.Communication.Packets.Incoming.LandingView.OpenCalendarBoxEvent.Parse(GameClient Session, ClientPacket Packet)
en Cloud.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet)
en Cloud.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message)
 

Core

Member
Nov 10, 2016
356
138
Errors:
Error in packet [711] BODY: [0]xmas16[0][0][0]:
System.InvalidCastException: La conversi?n especificada no es v?lida.
en Cloud.HabboHotel.LandingView.LandingViewManager.GenerateCalendarItem(Habbo Habbo, String eventName, Int32 eventDate, Item& newItem)
en Cloud.Communication.Packets.Incoming.LandingView.OpenCalendarBoxEvent.Parse(GameClient Session, ClientPacket Packet)
en Cloud.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet)
en Cloud.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message)


Error in packet [711] BODY: [0]xmas16[0][0][0]:
System.InvalidCastException: La conversi?n especificada no es v?lida.
en Cloud.HabboHotel.LandingView.LandingViewManager.GenerateCalendarItem(Habbo Habbo, String eventName, Int32 eventDate, Item& newItem)
en Cloud.Communication.Packets.Incoming.LandingView.OpenCalendarBoxEvent.Parse(GameClient Session, ClientPacket Packet)
en Cloud.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet)
en Cloud.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message)

It's likely null. Make sure db table is correct :p
 

DJGOMEZV

New Member
Jan 23, 2014
15
0
It's likely null. Make sure db table is correct :p
Error in packet [711] BODY: [0]xmas16[0][0][0]:
System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
en Cloud.HabboHotel.Users.HabboStats.addOpenedGift(Int32 eventDate)
en Cloud.Communication.Packets.Incoming.LandingView.OpenCalendarBoxEvent.Parse(GameClient Session, ClientPacket Packet)
en Cloud.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet)
en Cloud.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message)
 

Core

Member
Nov 10, 2016
356
138
Error in packet [711] BODY: [0]xmas16[0][0][0]:
System.NullReferenceException: Object reference not set to an instance of an object.
en Cloud.HabboHotel.Users.HabboStats.addOpenedGift(Int32 eventDate)
en Cloud.Communication.Packets.Incoming.LandingView.OpenCalendarBoxEvent.Parse(GameClient Session, ClientPacket Packet)
en Cloud.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet)
and Cloud.HabboHotel.GameClients.GameClient.parser_onNewPacket (Client Packet Message) [/ QUOTE]

Likely because you've not initialized the int list for openedGifts.
 

DJGOMEZV

New Member
Jan 23, 2014
15
0
f6vJbF1.png

When you click, give this error:
Error in packet [711] BODY: [0]xmas16[0][0][0]:
System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
en Cloud.HabboHotel.Users.HabboStats.addOpenedGift(Int32 eventDate)
en Cloud.Communication.Packets.Incoming.LandingView.OpenCalendarBoxEvent.Parse(GameClient Session, ClientPacket Packet)
en Cloud.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet)
en Cloud.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message)
 

Core

Member
Nov 10, 2016
356
138
f6vJbF1.png

When you click, give this error:
Error in packet [711] BODY: [0]xmas16[0][0][0]:
System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
en Cloud.HabboHotel.Users.HabboStats.addOpenedGift(Int32 eventDate)
en Cloud.Communication.Packets.Incoming.LandingView.OpenCalendarBoxEvent.Parse(GameClient Session, ClientPacket Packet)
en Cloud.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet)
en Cloud.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message)

Try changing
public List<int> openedGifts { get; private set; }

to

public List<int> openedGifts { get; private set; } = new List<int>();

I think you must of missed a bit of tutorial or i did, dunno xD


Edit; You need this.
Code:
this.openedGifts = new List<int>();
            foreach (string subStr in openedGifts.Split(','))
            {
                int openedDay = 0;
                if (int.TryParse(subStr, out openedDay))
                {
                    this.openedGifts.Add(openedDay);
                }
            }
 

DJGOMEZV

New Member
Jan 23, 2014
15
0
Try changing
public List<int> openedGifts { get; private set; }

to

public List<int> openedGifts { get; private set; } = new List<int>();

I think you must of missed a bit of tutorial or i did, dunno xD


Edit; You need this.
Code:
this.openedGifts = new List<int>();
            foreach (string subStr in openedGifts.Split(','))
            {
                int openedDay = 0;
                if (int.TryParse(subStr, out openedDay))
                {
                    this.openedGifts.Add(openedDay);
                }
            }
Thanks, solved!
 
Did you make the HC for plus emulator?
 

Vexq

New Member
Feb 18, 2012
3
3
Should it open automatic? Because everything is coded but isn't opening.. Already added the variables.
 
Last edited:

DJGOMEZV

New Member
Jan 23, 2014
15
0
Check your error logs and double check over the tutorial. Also! Make sure you're on the same build as the tutorial


Yeah, I have HC working?
I am trying to bring it from the old version of Plus (Revision 2) and I can not, you will not be able to pass the code?
 

Etrion

?
Dec 22, 2016
108
32
@Core do you mind making a staff chat too?
Would make it much easier to chat with other staffs in other rooms then just spam ":sa" or whisper like crazy.
 

Core

Member
Nov 10, 2016
356
138
@Core do you mind making a staff chat too?
Would make it much easier to chat with other staffs in other rooms then just spam ":sa" or whisper like crazy.

I have started something recently and have done this in the past with role play emulators so won't take long.
However, today is Christmas (Happy Christmas!). It's a very busy day for me as I have a large family etc, so I will do this for you tomorrow xD!
 

Sly

I don't break the rules I bend them.
Oct 28, 2016
246
38
Will this work on PRODUCTION-201602082203-712976078
 
I literally followed every single step of this tutorial, but nothing happened...
 

Etrion

?
Dec 22, 2016
108
32
Read first page pls, made it eaier for you so look in picture :p
Pic:
Maybe it would work for 201602 Productions if you change headers, dunno about it tho :I
 

Sly

I don't break the rules I bend them.
Oct 28, 2016
246
38
Will work, I'll get the headers for you in a bit and post them here. Just got home.
Hey Damiens thanks for that while your getting the headers, can you tell me why this is happening why I try to add a command. --> Pic below
 

Core

Member
Nov 10, 2016
356
138
Thank you very much, Merry christmas my friend<3_<3
and have a nice day

Sorry about late reply! I will do this for you now just got in. Send me your team viewer details and we will do it in your emulator. I cba making a tutorial xD and I don't need this in my emu.

Hey Damiens thanks for that while your getting the headers, can you tell me why this is happening why I try to add a command. --> Pic below

Looks like the SmokeWeed class doesn't match the command interface.
 

Users who are viewing this thread

Top