31 lines
932 B
Plaintext
31 lines
932 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Mail - Mailbox Configure
|
|
//:: mail_mb_config.nss
|
|
//:: Copyright (c) 2003 Jake E. Fitch
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Setup a custom welcome message for the character's mailbox.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Jake E. Fitch (Milambus Mandragon)
|
|
//:: Created On: Jan. 6, 2004
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "mail_include"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oMailman = GetNearestObjectByTag("Mailman", oPC);
|
|
|
|
string sMessage = GetLocalString(oMailman, "mail_Spoken");
|
|
int iMailbox = GetLocalInt(oMailman, "mail_Mailbox");
|
|
|
|
SetCampaignString(DBName, "MBMessage" + IntToString(iMailbox), sMessage);
|
|
|
|
SendMessageToPC(oPC, "Your mailboxes message has been changed to:");
|
|
SendMessageToPC(oPC, sMessage);
|
|
|
|
SetListening(oMailman, FALSE);
|
|
}
|