LoT_PRC8/_module/nss/pgs_build_actvty.nss
Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

36 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name: pgs_build_actvty
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
This script will build a list of all the
recent events that have occured between guilds.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_gsystem"
int StartingConditional()
{
object oPlayer = GetPCSpeaker();
int iCount = 1;
SetLocalInt (oPlayer, "List_Built", 4); /*List being built.*/
//--------------------------------------------
//Build recent guild activity list for DMs.
//--------------------------------------------
for (; iCount <= 8; iCount++)
{
if (GetModuleRecentPGSActivity (iCount) != "")
SetLocalInt (oPlayer, "Temp_List_Position" + IntToString (iCount),
iCount);
else
SetLocalInt (oPlayer, "Temp_List_Position" + IntToString (iCount), 0);
}
return TRUE; /*Conditional.*/
}