PGCC_PRC8/_module/nss/pu_bobolist.nss
Jaysyn904 e51634d39b Initial upload
Initial upload.
2024-10-09 14:17:22 -04:00

22 lines
705 B
Plaintext

void main()
{
object oPC = GetLastUsedBy();
int nIdx;
string sName;
string sAvgDam;
if (GetCampaignString("PGC3_DATA", "BOBO_NAME_1") != "")
{
SendMessageToPC(oPC, "Best Bobo Bashers (based on highest average damage per hit):");
for (nIdx = 1; nIdx < 11; nIdx++)
{
sAvgDam = IntToString(GetCampaignInt("PGC3_DATA", "BOBO_AVGDAM_"+IntToString(nIdx)));
sName = GetCampaignString("PGC3_DATA", "BOBO_NAME_"+IntToString(nIdx));
if (sName != "") SendMessageToPC(oPC, IntToString(nIdx)+") " + sName + ", " + sAvgDam + " HP/hit");
}
}
else SendMessageToPC(oPC, "No Bobo Bashers scores available.");
}