Fixed XP display for characters over 39th level
Fixed XP display for characters over 39th level. Full compile.
This commit is contained in:
@@ -13,12 +13,30 @@
|
||||
#include "enterinc"
|
||||
#include "pqj_inc"
|
||||
#include "nwnx_webhook"
|
||||
#include "nwnx_player"
|
||||
#include "inc_examine"
|
||||
#include "inc_gennui"
|
||||
|
||||
//:: AmonBot Webhook
|
||||
const string NWNX_DISCORD_URL = "/api/webhooks/1187525263693725706/oRFVnrx9qq7mxmpwOaslNgaQoaVAchTlK-NGFOHv4_2fJMdl-AIAVfpid8L_Lm3gs3Qq/slack";
|
||||
|
||||
void SetTlkOverrideForMaximumLevel(object oPC);
|
||||
|
||||
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 main()
|
||||
{
|
||||
//:: Declare Major Variables
|
||||
@@ -43,6 +61,9 @@ void main()
|
||||
|
||||
SetLocalInt(oPC,"stables",1);
|
||||
GPA_HorseOCL(oPC);
|
||||
|
||||
//:: Fix XP display for 40+ lvl PCs
|
||||
SetTlkOverrideForMaximumLevel(oPC);
|
||||
|
||||
// Make sure PC isn't set to Plot, for reasons
|
||||
SetPlotFlag(oPC, FALSE);
|
||||
|
Reference in New Issue
Block a user