Initial Upload
Initial Upload
This commit is contained in:
30
_module/nss/mail_mb_setup.nss
Normal file
30
_module/nss/mail_mb_setup.nss
Normal 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), "");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user