Tried to add a ScriptDialog event...
It's currently not working, not sure what I missed.
This commit is contained in:
@@ -7,7 +7,8 @@ import {
|
||||
InstantMessageEvent,
|
||||
InventoryOfferedEvent,
|
||||
LureEvent,
|
||||
TeleportEvent
|
||||
TeleportEvent,
|
||||
ScriptDialogEvent
|
||||
} from '..';
|
||||
|
||||
|
||||
@@ -26,4 +27,5 @@ export class ClientEvents
|
||||
onGroupChatSessionJoin: Subject<GroupChatSessionJoinEvent> = new Subject<GroupChatSessionJoinEvent>();
|
||||
onGroupChatAgentListUpdate: Subject<GroupChatSessionAgentListEvent> = new Subject<GroupChatSessionAgentListEvent>();
|
||||
onFriendResponse: Subject<FriendResponseEvent> = new Subject<FriendResponseEvent>();
|
||||
onScriptDialog: Subject<ScriptDialogEvent> = new Subject<ScriptDialogEvent>();
|
||||
}
|
||||
|
||||
14
lib/events/ScriptDialogEvent.ts
Normal file
14
lib/events/ScriptDialogEvent.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {UUID, Vector3} from '..';
|
||||
|
||||
export class ScriptDialogEvent
|
||||
{
|
||||
ObjectID: UUID;
|
||||
FirstName: string;
|
||||
LastName: string;
|
||||
ObjectName: Vector3;
|
||||
Message: string;
|
||||
ChatChannel: number;
|
||||
ImageID: UUID;
|
||||
Buttons: string;
|
||||
OwnerID: UUID;
|
||||
}
|
||||
@@ -41,6 +41,7 @@ import {CompressedFlags} from './enums/CompressedFlags';
|
||||
import {DecodeFlags} from './enums/DecodeFlags';
|
||||
import {ParcelInfoFlags} from './enums/ParcelInfoFlags';
|
||||
import {ParcelInfoReplyEvent} from './events/ParcelInfoReplyEvent';
|
||||
import {ScriptDialogEvent} from './events/ScriptDialogEvent';
|
||||
|
||||
export {
|
||||
Bot,
|
||||
@@ -85,5 +86,6 @@ export {
|
||||
MapInfoReplyEvent,
|
||||
ParcelInfoReplyEvent,
|
||||
RegionInfoReplyEvent,
|
||||
TeleportEvent
|
||||
TeleportEvent,
|
||||
ScriptDialogEvent
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user