Skip to content
PeterGill800 edited this page Jan 19, 2019 · 3 revisions

A general template for a mail:

Dom.mail.give(
    "Title in mailbox",
    "NPC name displayed",
    "NPC name in camelCase (used for finding image)",
    "function to be called when opened (as a string)",
    [function parameters],
    [{item: to be given when mail is closed, quantity: optional}],
);

Text mail

Here is the template for a mail that shows Dom.text.page().

Dom.mail.give(
    "Title in mailbox",
    "NPC name displayed",
    "NPC name in camelCase (used for finding image)",
    "text.page",
    ["Title when mail is opened",
    "Text", true, [], [],
    [{item: to be given when mail is closed, quantity: optional}]],
    [{item: to be given when mail is closed, quantity: optional}],
);

Quest mail

Here is the template for a mail that shows Dom.quest.start().

Dom.mail.give(
    "Title in mailbox",
    "NPC name displayed",
    "NPC name in camelCase (used for finding image)",
    "quest.start",
    ["quest area in camelCase", id],
    [{item: to be given when mail is closed, quantity: optional}],
);
Clone this wiki locally