2025/07/31 Early Update
Put PEPS in server mode. Full compile.
This commit is contained in:
@@ -22,21 +22,6 @@ const string NWNX_DISCORD_URL = "/api/webhooks/1187525263693725706/oRFVnrx9qq7mx
|
||||
|
||||
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
|
||||
@@ -54,17 +39,18 @@ void main()
|
||||
|
||||
//:: NUI Magic by Daz
|
||||
//Examine_DisablePanels(oPC);
|
||||
PrintString(GetObjectUUID(oPC));
|
||||
GetObjectUUID(oPC);
|
||||
|
||||
AddJournalQuestEntry("JRNL_XPCHART", 1, oPC, FALSE, FALSE, FALSE);
|
||||
AddJournalQuestEntry("JRNL_LA_BUYOFF", 1, oPC, FALSE, FALSE, FALSE);
|
||||
AddJournalQuestEntry("JRNL_PRC8", 1, oPC, FALSE, FALSE, FALSE);
|
||||
|
||||
ExecuteScript("0e_onclientload", oPC);
|
||||
|
||||
//:: AmonBot Player Announce
|
||||
NWNX_WebHook_SendWebHookHTTPS("discordapp.com", NWNX_DISCORD_URL, sPlayerName+ " has entered the World of Amon.", "AmonBot");
|
||||
|
||||
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);
|
||||
|
||||
@@ -73,6 +59,12 @@ void main()
|
||||
|
||||
//:: KillSpells (oPC,oPCLoc);
|
||||
RebuildJournalQuestEntries(GetEnteringObject());
|
||||
|
||||
//:: AmonBot Player Announce
|
||||
NWNX_WebHook_SendWebHookHTTPS("discordapp.com", NWNX_DISCORD_URL, sPlayerName+ " has entered the World of Amon.", "AmonBot");
|
||||
|
||||
//:: Fix XP display for 40+ lvl PCs
|
||||
SetTlkOverrideForMaximumLevel(oPC);
|
||||
|
||||
/* if (GetIsPC(oPC))
|
||||
{
|
||||
@@ -114,9 +106,18 @@ void main()
|
||||
else // They have to wait the full amount if they left in mid-combat.
|
||||
SetLocalInt(oPC,"LastTimeRested",GetLocalInt(GetModule(),"SecondCount")); */
|
||||
|
||||
AddJournalQuestEntry("JRNL_XPCHART", 1, oPC, FALSE, FALSE, FALSE);
|
||||
AddJournalQuestEntry("JRNL_LA_BUYOFF", 1, oPC, FALSE, FALSE, FALSE);
|
||||
AddJournalQuestEntry("JRNL_PRC8", 1, oPC, FALSE, FALSE, FALSE);
|
||||
|
||||
ExecuteScript("0e_onclientload", 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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user