40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Mail - Conversation, Show Next Message button.
|
||
|
//:: mail_conv_shownm.nss
|
||
|
//:: Copyright (c) 2003 Jake E. Fitch
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Jake E. Fitch (Milambus Mandragon)
|
||
|
//:: Created On: Jan. 6, 2004
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
#include "mail_include"
|
||
|
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oMailman = GetNearestObjectByTag("Mailman", oPC);
|
||
|
|
||
|
int iOption = GetLocalInt(oMailman, "mail_LastOption") + 1;
|
||
|
int iMessage = GetLocalInt(oMailman, "mail_LastMessage") - 1;
|
||
|
int iMB = GetLocalInt(oMailman, "mail_Mailbox");
|
||
|
|
||
|
if (iMessage < 0) iMessage = GetCampaignInt(DBName, "LastMessage");
|
||
|
if ((iOption < 1) || (iOption > 10)) iOption = 1;
|
||
|
|
||
|
while ((iMB != GetCampaignInt(DBName, "T" + IntToString(iMessage))) && (iMessage > 0)) {
|
||
|
|
||
|
iMessage--;
|
||
|
}
|
||
|
|
||
|
if (iMessage > 0) {
|
||
|
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
return FALSE;
|
||
|
}
|