Skip to main content
Deno 2 is finally here 🎉️
Learn more
method MailSendService.prototype.sendDirectNpcMessageToPlayer
Re-export
import { MailSendService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";

Send a message from an NPC (e.g. prapor) to the player with or without items using direct message text, do not look up any locale

Parameters

sessionId: string

The session ID to send the message to

trader: Traders

The trader sending the message

messageType: MessageType

What type the message will assume (e.g. QUEST_SUCCESS)

message: string

Text to send to the player

optional
items: Item[]

Optional items to send to player

optional
maxStorageTimeSeconds: any

Optional time to collect items before they expire

optional
systemData: any
optional
ragfair: any