Aantioch_Infernum/_module/nss/mail_mb_setup.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

31 lines
972 B
Plaintext

//::///////////////////////////////////////////////
//:: Mailbox Setup
//:: mail_mb_setup.nss
//:: Copyright (c) 2003 Jake E. Fitch
//:://////////////////////////////////////////////
/*
Setup a mailbox for this character.
*/
//:://////////////////////////////////////////////
//:: Created By: Jake E. Fitch (Milambus Mandragon)
//:: Created On: Jan. 6, 2003
//:://////////////////////////////////////////////
#include "mail_include"
void main()
{
object oPC = GetPCSpeaker();
if (GetIsPC(oPC)) {
// Get the Last ID, increment it, and update the DB.
int iMBID = GetCampaignInt(DBName, "LastMailbox") + 1;
SetCampaignInt(DBName, "LastMailbox", iMBID);
// Setup the Mailbox.
SetCampaignString(DBName, "MBOwner" + IntToString(iMBID), GetName(oPC));
SetCampaignString(DBName, "MBCDKey" + IntToString(iMBID), GetPCPublicCDKey(oPC));
SetCampaignString(DBName, "MBMessage" + IntToString(iMBID), "");
}
}