import { DialogueController } from "https://deno.land/x/sptaki@1.2.0/controllers/mod.ts";
Constructors
Properties
Methods
Get messages from a specific dialog that have items not expired
Get dialog from player profile, create if doesn't exist
Return array of messages with uncollected items (includes expired)
Get the users involved in a mail between two entities
Get a count of messages with attachments from a particular dialog
Has a dialog message expired
Does array have messages with uncollected rewards (includes expired rewards)
Removes expired items from a message in player profile
Delete expired items from all messages in player profile. triggers when updating traders.
Handle client/mail/dialog/list Create array holding trader dialogs and mail interactions with player Set the content of the dialogue on the list tab.
Handle client/mail/dialog/view Handle player clicking 'messenger' and seeing all the messages they've recieved Set the content of the dialogue on the details panel, showing all the messages for the specified dialogue.
Handle client/mail/dialog/getAllAttachments Get all uncollected items attached to mail in a particular dialog
Get the content of a dialogue
Get the users involved in a dialog (player + other party)
Handle client/friend/list
Handle client/mail/dialog/remove Remove an entire dialog with an entity (trader/user)
client/mail/msg/send
Handle client/mail/dialog/pin && Handle client/mail/dialog/unpin
Handle client/mail/dialog/read Set a dialog to be read (no number alert/attachment alert)
Handle onUpdate spt event