diff --git a/src/nitro/communication/NitroMessages.ts b/src/nitro/communication/NitroMessages.ts index ce735ef3..cb76d426 100644 --- a/src/nitro/communication/NitroMessages.ts +++ b/src/nitro/communication/NitroMessages.ts @@ -1,5 +1,5 @@ import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration'; -import { ApproveNameMessageComposer, CatalogApproveNameResultEvent, SellablePetPalettesEvent } from './messages'; +import { ApproveNameMessageComposer, CatalogApproveNameResultEvent, RoomUnitGiveHandItemPetComposer, SellablePetPalettesEvent } from './messages'; import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent'; import { CatalogClubEvent } from './messages/incoming/catalog/CatalogClubEvent'; import { CatalogClubGiftsEvent } from './messages/incoming/catalog/CatalogClubGiftsEvent'; @@ -918,6 +918,7 @@ export class NitroMessages implements IMessageConfiguration this._composers.set(OutgoingHeader.UNIT_DANCE, RoomUnitDanceComposer); this._composers.set(OutgoingHeader.UNIT_DROP_HAND_ITEM, RoomUnitDropHandItemComposer); this._composers.set(OutgoingHeader.UNIT_GIVE_HANDITEM, RoomUnitGiveHandItemComposer); + this._composers.set(OutgoingHeader.UNIT_GIVE_HANDITEM_PET, RoomUnitGiveHandItemPetComposer); this._composers.set(OutgoingHeader.UNIT_LOOK, RoomUnitLookComposer); this._composers.set(OutgoingHeader.UNIT_SIGN, RoomUnitSignComposer); this._composers.set(OutgoingHeader.UNIT_POSTURE, RoomUnitPostureComposer); diff --git a/src/nitro/communication/messages/outgoing/OutgoingHeader.ts b/src/nitro/communication/messages/outgoing/OutgoingHeader.ts index 52a7906d..bf00374a 100644 --- a/src/nitro/communication/messages/outgoing/OutgoingHeader.ts +++ b/src/nitro/communication/messages/outgoing/OutgoingHeader.ts @@ -232,4 +232,5 @@ export class OutgoingHeader public static MARKETPLACE_BUY_OFFER = 1603; public static CATALOG_REQUESET_PET_BREEDS = 1756; public static APPROVE_NAME = 2109; + public static UNIT_GIVE_HANDITEM_PET = 2768; } diff --git a/src/nitro/communication/messages/outgoing/room/unit/RoomUnitGiveHandItemPetComposer.ts b/src/nitro/communication/messages/outgoing/room/unit/RoomUnitGiveHandItemPetComposer.ts new file mode 100644 index 00000000..7d3378e5 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/room/unit/RoomUnitGiveHandItemPetComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer'; + +export class RoomUnitGiveHandItemPetComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(unitId: number) + { + this._data = [ unitId ]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/room/unit/index.ts b/src/nitro/communication/messages/outgoing/room/unit/index.ts index c080bffd..52a7296a 100644 --- a/src/nitro/communication/messages/outgoing/room/unit/index.ts +++ b/src/nitro/communication/messages/outgoing/room/unit/index.ts @@ -3,6 +3,7 @@ export * from './RoomUnitActionComposer'; export * from './RoomUnitDanceComposer'; export * from './RoomUnitDropHandItemComposer'; export * from './RoomUnitGiveHandItemComposer'; +export * from './RoomUnitGiveHandItemPetComposer'; export * from './RoomUnitLookComposer'; export * from './RoomUnitPostureComposer'; export * from './RoomUnitSignComposer';