diff --git a/_module/ncs/0e_gui_events.ncs b/_module/ncs/0e_gui_events.ncs index 91bda4db..3987af47 100644 Binary files a/_module/ncs/0e_gui_events.ncs and b/_module/ncs/0e_gui_events.ncs differ diff --git a/_module/ncs/0e_nui.ncs b/_module/ncs/0e_nui.ncs index e70f7534..51aa6480 100644 Binary files a/_module/ncs/0e_nui.ncs and b/_module/ncs/0e_nui.ncs differ diff --git a/_module/ncs/0e_nui_dm.ncs b/_module/ncs/0e_nui_dm.ncs index 479c1551..2a5fc339 100644 Binary files a/_module/ncs/0e_nui_dm.ncs and b/_module/ncs/0e_nui_dm.ncs differ diff --git a/_module/ncs/0e_onclientload.ncs b/_module/ncs/0e_onclientload.ncs index fc0ff671..c95bb1ba 100644 Binary files a/_module/ncs/0e_onclientload.ncs and b/_module/ncs/0e_onclientload.ncs differ diff --git a/_module/ncs/0e_player_target.ncs b/_module/ncs/0e_player_target.ncs index 2864f9a6..faf08994 100644 Binary files a/_module/ncs/0e_player_target.ncs and b/_module/ncs/0e_player_target.ncs differ diff --git a/_module/ncs/bank_tellerspawn.ncs b/_module/ncs/bank_tellerspawn.ncs index 6a0684ad..95af28b1 100644 Binary files a/_module/ncs/bank_tellerspawn.ncs and b/_module/ncs/bank_tellerspawn.ncs differ diff --git a/_module/ncs/di_spawner.ncs b/_module/ncs/di_spawner.ncs index 35ca362c..c098271d 100644 Binary files a/_module/ncs/di_spawner.ncs and b/_module/ncs/di_spawner.ncs differ diff --git a/_module/ncs/dv_spawner.ncs b/_module/ncs/dv_spawner.ncs index 7fcdd431..48bee00b 100644 Binary files a/_module/ncs/dv_spawner.ncs and b/_module/ncs/dv_spawner.ncs differ diff --git a/_module/ncs/item_droguesword.ncs b/_module/ncs/item_droguesword.ncs index dddbd441..88f39043 100644 Binary files a/_module/ncs/item_droguesword.ncs and b/_module/ncs/item_droguesword.ncs differ diff --git a/_module/ncs/kryxspkspwncapt.ncs b/_module/ncs/kryxspkspwncapt.ncs index b26c453e..7f876177 100644 Binary files a/_module/ncs/kryxspkspwncapt.ncs and b/_module/ncs/kryxspkspwncapt.ncs differ diff --git a/_module/ncs/mhspkspwn.ncs b/_module/ncs/mhspkspwn.ncs index 4d7707d1..d00d9db8 100644 Binary files a/_module/ncs/mhspkspwn.ncs and b/_module/ncs/mhspkspwn.ncs differ diff --git a/_module/ncs/no_spn_clr.ncs b/_module/ncs/no_spn_clr.ncs index 5405b084..e54c0593 100644 Binary files a/_module/ncs/no_spn_clr.ncs and b/_module/ncs/no_spn_clr.ncs differ diff --git a/_module/ncs/no_spn_fiend.ncs b/_module/ncs/no_spn_fiend.ncs index 21533cce..5500a067 100644 Binary files a/_module/ncs/no_spn_fiend.ncs and b/_module/ncs/no_spn_fiend.ncs differ diff --git a/_module/ncs/no_spn_ftr.ncs b/_module/ncs/no_spn_ftr.ncs index 7e5956cb..50892a6a 100644 Binary files a/_module/ncs/no_spn_ftr.ncs and b/_module/ncs/no_spn_ftr.ncs differ diff --git a/_module/ncs/no_spn_melcast2.ncs b/_module/ncs/no_spn_melcast2.ncs index 3cfece24..8ccb3b5f 100644 Binary files a/_module/ncs/no_spn_melcast2.ncs and b/_module/ncs/no_spn_melcast2.ncs differ diff --git a/_module/ncs/no_spn_melenh.ncs b/_module/ncs/no_spn_melenh.ncs index 7d273eac..d05ef7e3 100644 Binary files a/_module/ncs/no_spn_melenh.ncs and b/_module/ncs/no_spn_melenh.ncs differ diff --git a/_module/ncs/no_spn_rftrcast1.ncs b/_module/ncs/no_spn_rftrcast1.ncs index 49d6eb34..432d8dd3 100644 Binary files a/_module/ncs/no_spn_rftrcast1.ncs and b/_module/ncs/no_spn_rftrcast1.ncs differ diff --git a/_module/ncs/no_spn_rngcast3.ncs b/_module/ncs/no_spn_rngcast3.ncs index 596a9c9c..dcc56bfe 100644 Binary files a/_module/ncs/no_spn_rngcast3.ncs and b/_module/ncs/no_spn_rngcast3.ncs differ diff --git a/_module/ncs/no_spn_rog.ncs b/_module/ncs/no_spn_rog.ncs index 6599ae53..f61ca2e6 100644 Binary files a/_module/ncs/no_spn_rog.ncs and b/_module/ncs/no_spn_rog.ncs differ diff --git a/_module/ncs/no_spn_rogcast1.ncs b/_module/ncs/no_spn_rogcast1.ncs index 5add8ace..744cc8a2 100644 Binary files a/_module/ncs/no_spn_rogcast1.ncs and b/_module/ncs/no_spn_rogcast1.ncs differ diff --git a/_module/ncs/no_spn_rogtel.ncs b/_module/ncs/no_spn_rogtel.ncs index 9a41af84..f02f4285 100644 Binary files a/_module/ncs/no_spn_rogtel.ncs and b/_module/ncs/no_spn_rogtel.ncs differ diff --git a/_module/ncs/no_spn_summ.ncs b/_module/ncs/no_spn_summ.ncs index 79a35d3a..d19c4073 100644 Binary files a/_module/ncs/no_spn_summ.ncs and b/_module/ncs/no_spn_summ.ncs differ diff --git a/_module/ncs/no_spn_wiz.ncs b/_module/ncs/no_spn_wiz.ncs index dfc4cb4c..1ca02c47 100644 Binary files a/_module/ncs/no_spn_wiz.ncs and b/_module/ncs/no_spn_wiz.ncs differ diff --git a/_module/ncs/nw_c2_default1.ncs b/_module/ncs/nw_c2_default1.ncs index 1bd08b3b..f2b1ea74 100644 Binary files a/_module/ncs/nw_c2_default1.ncs and b/_module/ncs/nw_c2_default1.ncs differ diff --git a/_module/ncs/nw_ch_ac1.ncs b/_module/ncs/nw_ch_ac1.ncs index 35341336..819d12c3 100644 Binary files a/_module/ncs/nw_ch_ac1.ncs and b/_module/ncs/nw_ch_ac1.ncs differ diff --git a/_module/ncs/nw_ch_aca.ncs b/_module/ncs/nw_ch_aca.ncs index 7dc0caf2..0cb5beb1 100644 Binary files a/_module/ncs/nw_ch_aca.ncs and b/_module/ncs/nw_ch_aca.ncs differ diff --git a/_module/ncs/nw_o2_boss.ncs b/_module/ncs/nw_o2_boss.ncs index ff528bfd..586fa995 100644 Binary files a/_module/ncs/nw_o2_boss.ncs and b/_module/ncs/nw_o2_boss.ncs differ diff --git a/_module/ncs/nw_o2_generallow.ncs b/_module/ncs/nw_o2_generallow.ncs index 72b50dc8..cd69b64f 100644 Binary files a/_module/ncs/nw_o2_generallow.ncs and b/_module/ncs/nw_o2_generallow.ncs differ diff --git a/_module/ncs/nw_o2_generalmed.ncs b/_module/ncs/nw_o2_generalmed.ncs index eb2b6582..2fec0ac0 100644 Binary files a/_module/ncs/nw_o2_generalmed.ncs and b/_module/ncs/nw_o2_generalmed.ncs differ diff --git a/_module/ncs/nwn_spawn_system.ncs b/_module/ncs/nwn_spawn_system.ncs index bc03bfb3..752874a7 100644 Binary files a/_module/ncs/nwn_spawn_system.ncs and b/_module/ncs/nwn_spawn_system.ncs differ diff --git a/_module/ncs/pi_buffing.ncs b/_module/ncs/pi_buffing.ncs index e654f655..d3b00a3d 100644 Binary files a/_module/ncs/pi_buffing.ncs and b/_module/ncs/pi_buffing.ncs differ diff --git a/_module/ncs/pi_crafting.ncs b/_module/ncs/pi_crafting.ncs index 7ba191b5..cc6094f7 100644 Binary files a/_module/ncs/pi_crafting.ncs and b/_module/ncs/pi_crafting.ncs differ diff --git a/_module/ncs/pi_debug.ncs b/_module/ncs/pi_debug.ncs index 25f33de1..cee9a0ba 100644 Binary files a/_module/ncs/pi_debug.ncs and b/_module/ncs/pi_debug.ncs differ diff --git a/_module/ncs/pi_forcerest.ncs b/_module/ncs/pi_forcerest.ncs index 0466eb6e..b2cc0251 100644 Binary files a/_module/ncs/pi_forcerest.ncs and b/_module/ncs/pi_forcerest.ncs differ diff --git a/_module/ncs/scarespawn.ncs b/_module/ncs/scarespawn.ncs index 0d260ae6..ca2abe27 100644 Binary files a/_module/ncs/scarespawn.ncs and b/_module/ncs/scarespawn.ncs differ diff --git a/_module/ncs/winkiecapt1os.ncs b/_module/ncs/winkiecapt1os.ncs index df367dd5..bc1da921 100644 Binary files a/_module/ncs/winkiecapt1os.ncs and b/_module/ncs/winkiecapt1os.ncs differ diff --git a/_module/ncs/winkiecapt4os.ncs b/_module/ncs/winkiecapt4os.ncs index a54f47ac..c5a24580 100644 Binary files a/_module/ncs/winkiecapt4os.ncs and b/_module/ncs/winkiecapt4os.ncs differ diff --git a/_module/ncs/winkiecapt5os.ncs b/_module/ncs/winkiecapt5os.ncs index 1eb49120..6e243243 100644 Binary files a/_module/ncs/winkiecapt5os.ncs and b/_module/ncs/winkiecapt5os.ncs differ diff --git a/_module/ncs/winkiecapt6os.ncs b/_module/ncs/winkiecapt6os.ncs index 757fc9dd..e5a8ed2a 100644 Binary files a/_module/ncs/winkiecapt6os.ncs and b/_module/ncs/winkiecapt6os.ncs differ diff --git a/_module/ncs/witch1os.ncs b/_module/ncs/witch1os.ncs index e35ddc4d..56e95e62 100644 Binary files a/_module/ncs/witch1os.ncs and b/_module/ncs/witch1os.ncs differ diff --git a/_module/ncs/witch2os.ncs b/_module/ncs/witch2os.ncs index 9a06ef52..6f0a08d2 100644 Binary files a/_module/ncs/witch2os.ncs and b/_module/ncs/witch2os.ncs differ diff --git a/_module/ncs/witch5os.ncs b/_module/ncs/witch5os.ncs index 465ca418..4e513bf3 100644 Binary files a/_module/ncs/witch5os.ncs and b/_module/ncs/witch5os.ncs differ diff --git a/_module/ncs/witch6os.ncs b/_module/ncs/witch6os.ncs index e2a44209..b8ff4088 100644 Binary files a/_module/ncs/witch6os.ncs and b/_module/ncs/witch6os.ncs differ diff --git a/_module/ncs/witch7os.ncs b/_module/ncs/witch7os.ncs index 6f1f3487..32eaa9a7 100644 Binary files a/_module/ncs/witch7os.ncs and b/_module/ncs/witch7os.ncs differ diff --git a/_module/ncs/wp_speakspawn.ncs b/_module/ncs/wp_speakspawn.ncs index 3487810a..5314119a 100644 Binary files a/_module/ncs/wp_speakspawn.ncs and b/_module/ncs/wp_speakspawn.ncs differ diff --git a/_module/nss/0i_constants.nss b/_module/nss/0i_constants.nss index bb7dbe82..cbe1b3cd 100644 --- a/_module/nss/0i_constants.nss +++ b/_module/nss/0i_constants.nss @@ -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. const int AI_DEBUG = FALSE; // 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. const int AI_MAX_CLASSES_PER_CHARACTER = 8; // Taunts cool down time before the AI attemps another Taunt. diff --git a/_module/nss/client_enter_cs.nss b/_module/nss/client_enter_cs.nss index 1379fe17..0cff101e 100644 --- a/_module/nss/client_enter_cs.nss +++ b/_module/nss/client_enter_cs.nss @@ -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); -} \ No newline at end of file +} + +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"); + } +}