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

Send a message from the player to an NPC

Parameters

sessionId: string

Player id

targetNpcId: string

NPC message is sent to

message: string

Text to send to NPC