2025/09/24 Update
Updates from @behindflayer
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "nwnx_webhook"
|
||||
#include "nwnx_weapon"
|
||||
#include "nwnx_damage"
|
||||
#include "nwnx_events"
|
||||
|
||||
//:: AmonBot Webhook
|
||||
const string NWNX_DISCORD_URL = "/api/webhooks/1187525263693725706/oRFVnrx9qq7mxmpwOaslNgaQoaVAchTlK-NGFOHv4_2fJMdl-AIAVfpid8L_Lm3gs3Qq/slack";
|
||||
@@ -21,16 +22,23 @@ const string NWNX_DISCORD_URL = "/api/webhooks/1187525263693725706/oRFVnrx9qq7mx
|
||||
void main()
|
||||
{
|
||||
SetMaxHenchmen(2);
|
||||
|
||||
int bNWNxEE = NWNXGetIsAvailable();
|
||||
|
||||
//SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_NUI_EVENT, "mod_nui");
|
||||
//SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_TARGET, "mod_target"); <-- No
|
||||
//SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_GUIEVENT, "mod_gui");
|
||||
|
||||
NUI();
|
||||
|
||||
//:: Bypasses & replaces Devastating Critical with 10x damage
|
||||
NWNX_Weapon_SetDevastatingCriticalEventScript("on_devcrit");
|
||||
NWNX_Damage_SetAttackEventScript("on_attack");
|
||||
if (bNWNxEE)
|
||||
{
|
||||
//:: Bypasses & replaces Devastating Critical with 10x damage
|
||||
//NWNX_Weapon_SetDevastatingCriticalEventScript("on_devcrit");
|
||||
//NWNX_Damage_SetAttackEventScript("on_attack");
|
||||
|
||||
//:: Block DevCrit instant death for creatures with the "IMMUNE_DEV_CRIT" int var set
|
||||
NWNX_Events_SubscribeEvent("NWNX_ON_WEAPON_DEVASTATING_CRITICAL_BEFORE", "devcrit_block");
|
||||
}
|
||||
|
||||
if (GetGameDifficulty() == GAME_DIFFICULTY_CORE_RULES || GetGameDifficulty() == GAME_DIFFICULTY_DIFFICULT)
|
||||
{
|
||||
@@ -100,6 +108,9 @@ void main()
|
||||
SetupRespawnSystem(GetModule());
|
||||
|
||||
//:: AmonBot Announce
|
||||
NWNX_WebHook_SendWebHookHTTPS("discordapp.com", NWNX_DISCORD_URL, "Welcome to the World of Amon! [Server Loaded]", "AmonBot");
|
||||
if (bNWNxEE)
|
||||
{
|
||||
NWNX_WebHook_SendWebHookHTTPS("discordapp.com", NWNX_DISCORD_URL, "Welcome to the World of Amon! [Server Loaded]", "AmonBot");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user