Skip to content
Lucent
Esc
↑↓navigate↵open

ScriptEvent

Alias of ProjectionEvent. The resolved members are listed below.

type ScriptEvent = {
    readonly type: "login";
} | {
    readonly type: "logout";
} | {
    readonly type: "player-afk";
    readonly afk: boolean;
    readonly entityId: number;
    readonly username: string;
} | {
    readonly type: "join-map";
    readonly map: {
        readonly id: number;
        readonly name: string;
        readonly roomNumber: number;
    };
} | {
    readonly type: "item-drop";
    readonly item: ItemSnapshot;
} | {
    readonly type: "quest-complete";
    readonly questId: number;
} | {
    readonly type: "monster-death";
    readonly monsterMapId: number;
} | {
    readonly type: "monster-respawn";
    readonly monsterMapId: number;
} | {
    readonly type: "player-death";
    readonly entityId: number;
    readonly username: string;
} | {
    readonly type: "players-changed";
} | {
    readonly type: "aura-added";
    readonly duration?: number;
    readonly icon?: string;
    readonly name: string;
    readonly sourceId?: number;
    readonly sourceType?: "monster" | "player";
    readonly targetId: number;
    readonly targetType: "monster" | "player";
} | {
    readonly type: "aura-removed";
    readonly duration?: number;
    readonly icon?: string;
    readonly name: string;
    readonly sourceId?: number;
    readonly sourceType?: "monster" | "player";
    readonly targetId: number;
    readonly targetType: "monster" | "player";
} | {
    readonly type: "counter-attack-start";
    readonly durationMs?: number;
    readonly monsterMapId: number;
    readonly source: "aura" | "message";
    readonly triggerId: string;
    readonly triggerText: string;
} | {
    readonly type: "counter-attack-end";
    readonly monsterMapId: number;
    readonly source: "aura" | "message";
    readonly triggerId: string;
    readonly triggerText: string;
} | ({
    readonly type: "player-location";
    readonly cell: string;
    readonly entityId: number;
    readonly pad: string;
    readonly position: {
        readonly x: number;
        readonly y: number;
    };
    readonly username: string;
} & ({
    readonly destination: {
        readonly x: number;
        readonly y: number;
    };
    readonly kind: "walk";
} | {
    readonly kind: "cell" | "position";
})) | {
    readonly type: "update-message";
    readonly animation?: string;
    readonly message: string;
    readonly monsterMapId?: number;
    readonly source: "animation" | "aura";
} | {
    readonly type: "zone";
    readonly map: string;
    readonly zone: string;
}

Defined in ScriptApi.ts:106

Type preview
Open page

Last updated on September 26, 2026

Was this page helpful?