HiddenTradition_PRC8/_module/nss/bbs_show_next.nss
2024-06-20 15:47:42 -04:00

12 lines
364 B
Plaintext

int StartingConditional()
{
object oBBS = GetLocalObject(GetModule(), "BBS_" + GetTag(OBJECT_SELF));
int PageSize = GetLocalInt(oBBS, "PageSize");
int PageIndex = GetLocalInt(GetPCSpeaker(), "PageIndex");
int TotalItems = GetCampaignInt("DB_BBS",GetTag(oBBS) + "#C");
if (TotalItems > (PageIndex + 1) * PageSize) {
return TRUE;
}
return FALSE;
}