generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
21
_module/nss/pu_bobolist.nss
Normal file
21
_module/nss/pu_bobolist.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
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.");
|
||||
}
|
Reference in New Issue
Block a user