Code:
internal static int CreateTicket = 2875;//CS7
2875 is the packet id for CreateTicket. If the emulator receives a packet with the header id 2875, it knows that it should ruin the function CreateTicket.
Error in packet [475]
This does NOT mean that the packet is wrong. It means that it's get handled incorrectly.
In this case it gives this error:
Code:
System.NullReferenceException: Object reference not set to an instance of an object.
at Silverwave.HabboHotel.Items.Interactor.InteractorWired.OnTrigger(GameClient Session, RoomItem Item, Int32 Request, Boolean HasRights) in C:\Users\Administrator\Desktop\WonderHotel - Copy\Plus Emulator\HabboHotel\Items\Interactor\InteractorWired.cs:line 45
at Silverwave.Messages.GameClientMessageHandler.TriggerItem() in C:\Users\Administrator\Desktop\WonderHotel - Copy\Plus Emulator\Messages\Requests\Rooms.cs:line 2540
at Silverwave.Messages.StaticMessageHandlers.SharedPacketLib.TriggerItem(GameClientMessageHandler handler) in C:\Users\Administrator\Desktop\WonderHotel - Copy\Plus Emulator\Messages\StaticMessageHandlers\SharedPacketLib.cs:line 540
at Silverwave.Messages.StaticMessageHandlers.StaticClientMessageHandler.HandlePacket(GameClientMessageHandler handler, ClientMessage message) in C:\Users\Administrator\Desktop\WonderHotel - Copy\Plus Emulator\Messages\StaticMessageHandlers\StaticClientMessageHandler.cs:line 33
at Silverwave.Messages.GameClientMessageHandler.HandleRequest(ClientMessage request) in C:\Users\Administrator\Desktop\WonderHotel - Copy\Plus Emulator\Messages\GameClientMessageHander.cs:line 43
at Silverwave.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientMessage Message) in C:\Users\Administrator\Desktop\WonderHotel - Copy\Plus Emulator\HabboHotel\GameClients\GameClient.cs:line 81
C:\Users\Administrator\Desktop\WonderHotel - Copy\Plus Emulator\HabboHotel\Items\Interactor\InteractorWired.cs:line 45 <- The error happens here.
System.NullReferenceException: Object reference not set to an instance of an object. <- It's trying to use something that is null (not set).
I'm not sure what version of Plus you're using, so I can't help you with fixing the problem.
But take a look yourself - what is being done on line 45? And why isn't the variable set? Make a null check or look for possible errors.