Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-08-08 16:22:17 -04:00
parent 51a2a1286e
commit 22947ad4b6
6511 changed files with 6765205 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
//::///////////////////////////////////////////////
//:: 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), "");
}
}