2025/07/20 Update

Updated PEPS AI.
Full compile.
This commit is contained in:
Jaysyn904
2025-07-20 16:17:47 -04:00
parent d2a9c50615
commit b4f69b222a
100 changed files with 925 additions and 655 deletions

View File

@@ -10,9 +10,9 @@
#include "0i_actions"
void main()
{
ExecuteScript("prc_npc_disturb", OBJECT_SELF);
if(AI_DEBUG) ai_Debug("nw_c2_default8", "13", GetName(OBJECT_SELF) + " is been disturbed!");
object oCreature = OBJECT_SELF;
ExecuteScript("prc_npc_disturb", oCreature);
if(AI_DEBUG) ai_Debug("nw_c2_default8", "13", GetName(oCreature) + " is been disturbed!");
// We do nothing at the moment... lets not mess up our factions ok?
// This should be defined by the server admins and is commented out.
//if(ai_GetIsBusy(OBJECT_SELF, FALSE) || ai_Disabled()) return;
@@ -21,6 +21,6 @@ void main()
// Send the disturbed flag if appropriate.
if(GetSpawnInCondition(NW_FLAG_DISTURBED_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(EVENT_DISTURBED));
SignalEvent(oCreature, EventUserDefined(EVENT_DISTURBED));
}
}