Tweaked several areas, mobs, and added

the codi ai to some mobs.
This commit is contained in:
EpicValor
2023-09-28 23:01:25 -05:00
parent 9c38ad9c6b
commit f6270c3cb8
310 changed files with 31410 additions and 4885 deletions

38
_module/nss/no_ai_atk.nss Normal file
View File

@@ -0,0 +1,38 @@
//::///////////////////////////////////////////////
//:: On Attacked
//:: NW_C2_DEFAULT5
//:://////////////////////////////////////////////
/*
Set attacker as an enemy if they are not a friend
or enemy (ie/ neutral), and initiate combat AI if
it is not already running.
*/
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
#include "no_lib_data"
#include "no_inc"
void main()
{
object oA = GetLastAttacker();
if ( GetIsObjectValid( oA ) )
{
/*
if ( GetIsFriend( oA ) )
{
PrintString( GetName( OBJECT_SELF ) + " attacked by friend " + GetName( oA ) );
}
*/
if ( !GetIsFriend( oA ) && !GetIsEnemy( oA ) && GetMaster( OBJECT_SELF ) != oA )
{
//neutrals
SetIsTemporaryEnemy( oA, OBJECT_SELF, TRUE, 300.0 );
}
//DoQueueCombat( 8.0, 8.0 );
InitCombat();
SignalEvent(OBJECT_SELF, EventUserDefined(1005));
}
}