2025/07/31 Early Update
Put PEPS in server mode. Full compile.
This commit is contained in:
parent
ebbcd1efa3
commit
b4eedf1df2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -18,7 +18,7 @@ const string PHILOS_VERSION = "Philos' Enhancing Player System (PEPS) version:07
|
|||||||
// This will only work if you are using the PEPS menu system.
|
// This will only work if you are using the PEPS menu system.
|
||||||
const int AI_DEBUG = FALSE;
|
const int AI_DEBUG = FALSE;
|
||||||
// Defines if we are compiling for single player or a server. Always on for servers!
|
// Defines if we are compiling for single player or a server. Always on for servers!
|
||||||
const int AI_SERVER = FALSE;
|
const int AI_SERVER = TRUE;
|
||||||
// The number of classes allowed for a creature to take in the server/module.
|
// The number of classes allowed for a creature to take in the server/module.
|
||||||
const int AI_MAX_CLASSES_PER_CHARACTER = 8;
|
const int AI_MAX_CLASSES_PER_CHARACTER = 8;
|
||||||
// Taunts cool down time before the AI attemps another Taunt.
|
// Taunts cool down time before the AI attemps another Taunt.
|
||||||
|
@ -22,21 +22,6 @@ const string NWNX_DISCORD_URL = "/api/webhooks/1187525263693725706/oRFVnrx9qq7mx
|
|||||||
|
|
||||||
void SetTlkOverrideForMaximumLevel(object oPC);
|
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()
|
void main()
|
||||||
{
|
{
|
||||||
//:: Declare Major Variables
|
//:: Declare Major Variables
|
||||||
@ -54,17 +39,18 @@ void main()
|
|||||||
|
|
||||||
//:: NUI Magic by Daz
|
//:: NUI Magic by Daz
|
||||||
//Examine_DisablePanels(oPC);
|
//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);
|
SetLocalInt(oPC,"stables",1);
|
||||||
GPA_HorseOCL(oPC);
|
GPA_HorseOCL(oPC);
|
||||||
|
|
||||||
//:: Fix XP display for 40+ lvl PCs
|
|
||||||
SetTlkOverrideForMaximumLevel(oPC);
|
|
||||||
|
|
||||||
// Make sure PC isn't set to Plot, for reasons
|
// Make sure PC isn't set to Plot, for reasons
|
||||||
SetPlotFlag(oPC, FALSE);
|
SetPlotFlag(oPC, FALSE);
|
||||||
|
|
||||||
@ -73,6 +59,12 @@ void main()
|
|||||||
|
|
||||||
//:: KillSpells (oPC,oPCLoc);
|
//:: KillSpells (oPC,oPCLoc);
|
||||||
RebuildJournalQuestEntries(GetEnteringObject());
|
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))
|
/* if (GetIsPC(oPC))
|
||||||
{
|
{
|
||||||
@ -114,9 +106,18 @@ void main()
|
|||||||
else // They have to wait the full amount if they left in mid-combat.
|
else // They have to wait the full amount if they left in mid-combat.
|
||||||
SetLocalInt(oPC,"LastTimeRested",GetLocalInt(GetModule(),"SecondCount")); */
|
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);
|
void SetTlkOverrideForMaximumLevel(object oPC)
|
||||||
|
{
|
||||||
ExecuteScript("0e_onclientload", 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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user