update packets

This commit is contained in:
dank074 2021-10-24 20:00:45 -05:00
parent ec818935f5
commit cccd20db89
10 changed files with 78 additions and 46 deletions

View File

@ -1,5 +1,5 @@
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration'; import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, CloseIssueDefaultActionMessageComposer, CloseIssuesMessageComposer, ClubGiftNotificationEvent, ControlYoutubeDisplayPlaybackMessageComposer, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCfhChatlogMessageComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetForumsListMessageComposer, GetForumStatsMessageComposer, GetGiftMessageComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetMessagesMessageComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetThreadMessageComposer, GetThreadsMessageComposer, GetUnreadForumsCountMessageComposer, GetUserSongDisksMessageComposer, GetYoutubeDisplayStatusMessageComposer, GoToFlatMessageComposer, GroupBadgesComposer, GroupBadgesEvent, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, ModerateMessageMessageComposer, ModerateThreadMessageComposer, ModToolPreferencesComposer, ModToolSanctionComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PickIssuesMessageComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PostMessageMessageComposer, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, ReleaseIssuesMessageComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, ResetPhoneNumberStateMessageComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetPhoneNumberVerificationStatusMessageComposer, SetTargetedOfferStateComposer, SetYoutubeDisplayPlaylistMessageComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, TryPhoneNumberMessageComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UpdateForumReadMarkerMessageComposer, UpdateForumSettingsMessageComposer, UpdateThreadMessageComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VerifyCodeMessageComposer, VoteForRoomMessageComposer, WardrobeMessageEvent } from './messages'; import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, CallForHelpMessageComposer, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, CloseIssueDefaultActionMessageComposer, CloseIssuesMessageComposer, ClubGiftNotificationEvent, ControlYoutubeDisplayPlaybackMessageComposer, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCfhChatlogMessageComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetForumsListMessageComposer, GetForumStatsMessageComposer, GetGiftMessageComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetMessagesMessageComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetThreadMessageComposer, GetThreadsMessageComposer, GetUnreadForumsCountMessageComposer, GetUserSongDisksMessageComposer, GetYoutubeDisplayStatusMessageComposer, GoToFlatMessageComposer, GroupBadgesComposer, GroupBadgesEvent, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, ModerateMessageMessageComposer, ModerateThreadMessageComposer, ModToolPreferencesComposer, ModToolSanctionComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PickIssuesMessageComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PostMessageMessageComposer, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, ReleaseIssuesMessageComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, ResetPhoneNumberStateMessageComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetPhoneNumberVerificationStatusMessageComposer, SetTargetedOfferStateComposer, SetYoutubeDisplayPlaylistMessageComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, TryPhoneNumberMessageComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UpdateForumReadMarkerMessageComposer, UpdateForumSettingsMessageComposer, UpdateThreadMessageComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VerifyCodeMessageComposer, VoteForRoomMessageComposer, WardrobeMessageEvent } from './messages';
import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent'; import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent';
import { BotAddedToInventoryEvent, BotInventoryMessageEvent, BotReceivedMessageEvent, BotRemovedFromInventoryEvent } from './messages/incoming/bots'; import { BotAddedToInventoryEvent, BotInventoryMessageEvent, BotReceivedMessageEvent, BotRemovedFromInventoryEvent } from './messages/incoming/bots';
import { CfhSanctionMessageEvent, CfhTopicsInitEvent, SanctionStatusEvent } from './messages/incoming/callforhelp'; import { CfhSanctionMessageEvent, CfhTopicsInitEvent, SanctionStatusEvent } from './messages/incoming/callforhelp';
@ -295,7 +295,6 @@ import { GroupSettingsComposer } from './messages/outgoing/group/GroupSettingsCo
import { AuthenticationMessageComposer } from './messages/outgoing/handshake/AuthenticationMessageComposer'; import { AuthenticationMessageComposer } from './messages/outgoing/handshake/AuthenticationMessageComposer';
import { InfoRetrieveBaseMessageComposer } from './messages/outgoing/handshake/InfoRetrieveBaseMessageComposer'; import { InfoRetrieveBaseMessageComposer } from './messages/outgoing/handshake/InfoRetrieveBaseMessageComposer';
import { SecurityTicketComposer } from './messages/outgoing/handshake/SecurityTicketComposer'; import { SecurityTicketComposer } from './messages/outgoing/handshake/SecurityTicketComposer';
import { TalentTrackComposer } from './messages/outgoing/helper/TalentTrackComposer';
import { RequestBadgesComposer } from './messages/outgoing/inventory/badges/RequestBadgesComposer'; import { RequestBadgesComposer } from './messages/outgoing/inventory/badges/RequestBadgesComposer';
import { SetActivatedBadgesComposer } from './messages/outgoing/inventory/badges/SetActivatedBadgesComposer'; import { SetActivatedBadgesComposer } from './messages/outgoing/inventory/badges/SetActivatedBadgesComposer';
import { GetBotInventoryComposer } from './messages/outgoing/inventory/bots/GetBotInventoryComposer'; import { GetBotInventoryComposer } from './messages/outgoing/inventory/bots/GetBotInventoryComposer';
@ -437,6 +436,7 @@ import { UpdateActionMessageComposer } from './messages/outgoing/roomevents/Upda
import { UpdateConditionMessageComposer } from './messages/outgoing/roomevents/UpdateConditionMessageComposer'; import { UpdateConditionMessageComposer } from './messages/outgoing/roomevents/UpdateConditionMessageComposer';
import { UpdateTriggerMessageComposer } from './messages/outgoing/roomevents/UpdateTriggerMessageComposer'; import { UpdateTriggerMessageComposer } from './messages/outgoing/roomevents/UpdateTriggerMessageComposer';
import { GetSoundSettingsComposer } from './messages/outgoing/sound/GetSoundSettingsComposer'; import { GetSoundSettingsComposer } from './messages/outgoing/sound/GetSoundSettingsComposer';
import { TalentTrackComposer } from './messages/outgoing/talent/TalentTrackComposer';
import { CatalogGroupsComposer } from './messages/outgoing/user/CatalogGroupsComposer'; import { CatalogGroupsComposer } from './messages/outgoing/user/CatalogGroupsComposer';
import { GetIgnoredUsersComposer } from './messages/outgoing/user/data/GetIgnoredUsersComposer'; import { GetIgnoredUsersComposer } from './messages/outgoing/user/data/GetIgnoredUsersComposer';
import { IgnoreUserComposer } from './messages/outgoing/user/data/IgnoreUserComposer'; import { IgnoreUserComposer } from './messages/outgoing/user/data/IgnoreUserComposer';
@ -962,6 +962,9 @@ export class NitroMessages implements IMessageConfiguration
this._composers.set(OutgoingHeader.UPDATE_FORUM_SETTINGS, UpdateForumSettingsMessageComposer); this._composers.set(OutgoingHeader.UPDATE_FORUM_SETTINGS, UpdateForumSettingsMessageComposer);
this._composers.set(OutgoingHeader.FORUM_UPDATE_THREAD, UpdateThreadMessageComposer); this._composers.set(OutgoingHeader.FORUM_UPDATE_THREAD, UpdateThreadMessageComposer);
// HELP
this._composers.set(OutgoingHeader.CALL_FOR_HELP, CallForHelpMessageComposer);
// CLIENT // CLIENT
this._composers.set(OutgoingHeader.CLIENT_PONG, ClientPongComposer); this._composers.set(OutgoingHeader.CLIENT_PONG, ClientPongComposer);
this._composers.set(OutgoingHeader.RELEASE_VERSION, ClientReleaseVersionComposer); this._composers.set(OutgoingHeader.RELEASE_VERSION, ClientReleaseVersionComposer);
@ -1279,7 +1282,7 @@ export class NitroMessages implements IMessageConfiguration
this._composers.set(OutgoingHeader.GET_USER_SONG_DISKS, GetUserSongDisksMessageComposer); this._composers.set(OutgoingHeader.GET_USER_SONG_DISKS, GetUserSongDisksMessageComposer);
this._composers.set(OutgoingHeader.REMOVE_JUKEBOX_DISK, RemoveJukeboxDiskComposer); this._composers.set(OutgoingHeader.REMOVE_JUKEBOX_DISK, RemoveJukeboxDiskComposer);
// HELPER // TALENT
this._composers.set(OutgoingHeader.HELPER_TALENT_TRACK, TalentTrackComposer); this._composers.set(OutgoingHeader.HELPER_TALENT_TRACK, TalentTrackComposer);
} }

View File

@ -118,7 +118,7 @@ export class OutgoingHeader
public static PET_MOVE = 3449; public static PET_MOVE = 3449;
public static RECYCLER_PRIZES = 398; public static RECYCLER_PRIZES = 398;
public static RELEASE_VERSION = 4000; public static RELEASE_VERSION = 4000;
public static REPORT = 1691; public static CALL_FOR_HELP = 1691;
public static ROOM_AMBASSADOR_ALERT = 2996; public static ROOM_AMBASSADOR_ALERT = 2996;
public static ROOM_BAN_GIVE = 1477; public static ROOM_BAN_GIVE = 1477;
public static ROOM_BAN_LIST = 2267; public static ROOM_BAN_LIST = 2267;

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class CallForHelpMessageComposer implements IMessageComposer<any>
{
private _data: any;
constructor(message:string, topicIndex:number, reportedUserId:number, reportedRoomId:number, chatEntries:(string|number)[])
{
this._data = [message, topicIndex, reportedUserId, reportedRoomId, chatEntries.length / 2, ...chatEntries];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1 @@
export * from './CallForHelpMessageComposer';

View File

@ -12,7 +12,7 @@ export * from './gifts';
export * from './group'; export * from './group';
export * from './groupforums'; export * from './groupforums';
export * from './handshake'; export * from './handshake';
export * from './helper'; export * from './help';
export * from './inventory'; export * from './inventory';
export * from './landingview'; export * from './landingview';
export * from './marketplace'; export * from './marketplace';
@ -24,4 +24,5 @@ export * from './quest';
export * from './room'; export * from './room';
export * from './roomevents'; export * from './roomevents';
export * from './sound'; export * from './sound';
export * from './talent';
export * from './user'; export * from './user';

View File

@ -5,9 +5,9 @@ export class GetCfhChatlogMessageComposer implements IMessageComposer<Constructo
{ {
private _data: ConstructorParameters<typeof GetCfhChatlogMessageComposer>; private _data: ConstructorParameters<typeof GetCfhChatlogMessageComposer>;
constructor(k: number) constructor(issueId: number)
{ {
this._data = [k]; this._data = [issueId];
} }
public getMessageArray() public getMessageArray()

View File

@ -20,30 +20,33 @@ export class IssueInfoMessageParser implements IMessageParser
public parse(k:IMessageDataWrapper): boolean public parse(k:IMessageDataWrapper): boolean
{ {
const _local_2: number = k.readInt(); const issueId: number = k.readInt();
const _local_3: number = k.readInt(); const state: number = k.readInt();
const _local_4: number = k.readInt(); const categoryId: number = k.readInt();
const _local_5: number = k.readInt(); const reportedCategoryId: number = k.readInt();
const _local_6: number = k.readInt(); const issueAgeInMs: number = k.readInt();
const _local_7: number = k.readInt(); const priority: number = k.readInt();
const _local_8: number = k.readInt(); const groupingId: number = k.readInt();
const _local_9: number = k.readInt(); const reporterUserId: number = k.readInt();
const _local_10: string = k.readString(); const reporterUsername: string = k.readString();
const _local_11: number = k.readInt(); const reportedUserId: number = k.readInt();
const _local_12: string = k.readString(); const reportedUsername: string = k.readString();
const _local_13: number = k.readInt(); const pickerUserId: number = k.readInt();
const _local_14: string = k.readString(); const pickerUsername: string = k.readString();
const _local_15: string = k.readString(); const message: string = k.readString();
const _local_16: number = k.readInt(); const chatRecordId: number = k.readInt();
const _local_17: number = k.readInt();
const _local_18:PatternMatchData[] = []; const patternsCount: number = k.readInt();
let _local_19 = 0; const patterns:PatternMatchData[] = [];
while(_local_19 < _local_17)
for(let i = 0; i < patternsCount; i++)
{ {
_local_18.push(new PatternMatchData(k)); patterns.push(new PatternMatchData(k));
_local_19++;
} }
this._issueData = new IssueMessageData(_local_2, _local_3, _local_4, _local_5, _local_6, _local_7, _local_8, _local_9, _local_10, _local_11, _local_12, _local_13, _local_14, _local_15, _local_16, _local_18);
this._issueData = new IssueMessageData(issueId, state, categoryId, reportedCategoryId, issueAgeInMs,
priority, groupingId, reporterUserId, reporterUsername, reportedUserId, reportedUsername,
pickerUserId, pickerUsername, message, chatRecordId, patterns);
return true; return true;
} }
} }

View File

@ -26,24 +26,27 @@ export class IssueMessageData
private _disposed: boolean = false; private _disposed: boolean = false;
private _creationTimeInMilliseconds: number; private _creationTimeInMilliseconds: number;
constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: number, _arg_5: number, _arg_6: number, _arg_7: number, _arg_8: number, _arg_9: string, _arg_10: number, _arg_11: string, _arg_12: number, _arg_13: string, _arg_14: string, _arg_15: number, _arg_16:PatternMatchData[]) constructor(issueId: number, state: number, categoryId: number, reportedCategoryId: number,
issueAgeinMs: number, priority: number, groupingId: number, reporterUserId: number, reporterUsername: string,
reportedUserId: number, reportedUsername: string, pickerUserId: number, pickerUsername: string, message: string,
chatRecordId: number, patterns:PatternMatchData[])
{ {
this._issueId = k; this._issueId = issueId;
this._state = _arg_2; this._state = state;
this._categoryId = _arg_3; this._categoryId = categoryId;
this._reportedCategoryId = _arg_4; this._reportedCategoryId = reportedCategoryId;
this._issueAgeInMilliseconds = _arg_5; this._issueAgeInMilliseconds = issueAgeinMs;
this._priority = _arg_6; this._priority = priority;
this._groupingId = _arg_7; this._groupingId = groupingId;
this._reporterUserId = _arg_8; this._reporterUserId = reporterUserId;
this._reporterUserName = _arg_9; this._reporterUserName = reporterUsername;
this._reportedUserId = _arg_10; this._reportedUserId = reportedUserId;
this._reportedUserName = _arg_11; this._reportedUserName = reportedUsername;
this._pickerUserId = _arg_12; this._pickerUserId = pickerUserId;
this._pickerUserName = _arg_13; this._pickerUserName = pickerUsername;
this._message = _arg_14; this._message = message;
this._chatRecordId = _arg_15; this._chatRecordId = chatRecordId;
this._patterns = _arg_16; this._patterns = patterns;
this._creationTimeInMilliseconds = Nitro.instance.time; //getTimer() this._creationTimeInMilliseconds = Nitro.instance.time; //getTimer()
} }