Rune_PRC8/_module/nss/opw_conv_kills.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

41 lines
1.4 KiB
Plaintext

////////////////////////////////////////////////////////////////////////////////
//
// Olander's Player Stat's
// opw_conv_kills
// By:Don Anderson
// dandersonru@msn.com
//
// This is called from the Rest Menu
//
////////////////////////////////////////////////////////////////////////////////
#include "nbde_inc"
#include "opw_inc_pstat"
void main()
{
object oPC = GetPCSpeaker();
//Name of Player Character
string sPC = GetName(oPC);
DelayCommand(1.0,FloatingTextStringOnCreature(BLUISHG+"Stats for "+BLUISHR+sPC,oPC,FALSE));
DelayCommand(1.5,FloatingTextStringOnCreature("",oPC,FALSE));
//Player Character Total NPC Kills
string sNPCKills = GetTotalNPCKills(oPC);
DelayCommand(2.0,FloatingTextStringOnCreature(GRAY+"Total NPC Kills: "+WHITE+sNPCKills,oPC,FALSE));
//Player Character Total PC Kills
string sPCKills = GetTotalPCKills(oPC);
DelayCommand(3.0,FloatingTextStringOnCreature(GRAY+"Total Player Kills: "+WHITE+sPCKills,oPC,FALSE));
//Player Character Average Kill CR
string sCCRating = GetAverageCRofPlayersKills(oPC);
DelayCommand(4.0,FloatingTextStringOnCreature(GRAY+"Average Kill CR: "+WHITE+sCCRating,oPC,FALSE));
//Player Character Strongest Kill
string sHighestCR = GetHighestCR(oPC);
string sStrongestC = GetStrongestCreatureName(oPC);
DelayCommand(5.0,FloatingTextStringOnCreature(GRAY+"Strongest Kill: "+WHITE+sStrongestC+" CR: "+sHighestCR,oPC,FALSE));
}