//:://///////////////////////////////////////////// //:: 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), ""); } }