Added Corrected Char Sheet XP script by -=HA=-

Added Corrected Char Sheet XP script by -=HA=-.  Updated a few NPC onDeath scripts to use point at the correct XP scripts.  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-10-21 15:19:44 -04:00
parent 3e6f2fee03
commit 6685b7ca0d
31 changed files with 395 additions and 318 deletions

View File

@@ -9,10 +9,24 @@ Created On: 3/03/09
Intergrated SimTools to the OnPlayerLevelUp Event
----------------------------------------------------------*/
#include "nwnx_player"
//Required Include for SimTools
//#include "fky_chat_inc"
void SetTlkOverrideForMaximumLevel(object oPC)
{
int nLevel = GetHitDice(oPC);
if (nLevel < 40)
{
NWNX_Player_SetTlkOverride(oPC, 315, "");
}
else
{
NWNX_Player_SetTlkOverride(oPC, 315, "Next Level: " + IntToString((nLevel + 1) * nLevel * 500) + "\n");
}
}
void SendMessageToAllPC(string sMessage)
{
object oPC = GetFirstPC();
@@ -25,11 +39,14 @@ void SendMessageToAllPC(string sMessage)
void main()
{
ExecuteScript("prc_levelup", OBJECT_SELF);
object oPC = GetPCLevellingUp();
int nHD = GetHitDice(oPC);
location lSaved = GetLocation(oPC);
int MULTI_PLAYER = GetLocalInt(GetModule(), "multi");
ExecuteScript("prc_levelup", OBJECT_SELF);
object oPC = GetPCLevellingUp();
int nHD = GetHitDice(oPC);
location lSaved = GetLocation(oPC);
int MULTI_PLAYER = GetLocalInt(GetModule(), "multi");
SetTlkOverrideForMaximumLevel(GetPCLevellingUp());
///////LOCATION SAVING OPTION////////
//Delete the /* above to activate